websites: Add chmod777.sh
*chmod777.sh* is a simple static website, generated by Hugo. It is built and published from a Jenkins pipeline, which runs automatically when new commits are pushed to Gitea. The HTTPS certificate for this site is signed by Let's Encrypt and managed by `lego` in the `certs` submodule.
This commit is contained in:
28
roles/websites/chmod777.sh/files/chmod777.sh.httpd.conf
Normal file
28
roles/websites/chmod777.sh/files/chmod777.sh.httpd.conf
Normal file
@@ -0,0 +1,28 @@
|
||||
<VirtualHost _default_:80>
|
||||
ServerName chmod777.sh
|
||||
ServerAlias blog.chmod777.sh www.chmod777.sh
|
||||
RewriteEngine On
|
||||
RewriteRule (.*) https://chmod777.sh$1 [R=301,L]
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost _default_:443>
|
||||
ServerName chmod777.sh
|
||||
ServerAlias blog.chmod777.sh www.chmod777.sh
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{SERVER_NAME} !^chmod777\.sh
|
||||
RewriteRule (.*) https://chmod777.sh$2 [R=301,L]
|
||||
|
||||
Include conf.d/ssl.include
|
||||
SSLCertificateKeyFile /etc/pki/tls/private/chmod777.sh.key
|
||||
SSLCertificateFile /etc/pki/tls/certs/chmod777.sh.cer
|
||||
|
||||
<IfModule mod_headers.c>
|
||||
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"
|
||||
</IfModule>
|
||||
|
||||
DocumentRoot /srv/www/chmod777.sh/htdocs
|
||||
<Directory /srv/www/chmod777.sh/htdocs>
|
||||
Require all granted
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user