Enable dmarc.lunch.org.uk website.
This commit is contained in:
parent
b0432f257f
commit
af6d97f676
|
@ -0,0 +1,45 @@
|
|||
<IfModule mod_ssl.c>
|
||||
|
||||
<VirtualHost *:443>
|
||||
ServerName dmarc.lunch.org.uk
|
||||
|
||||
ErrorLog /var/log/apache2/dmarc-error.log
|
||||
CustomLog /var/log/apache2/dmarc-access.log combined
|
||||
|
||||
RemoteIPProxyProtocol On
|
||||
|
||||
DocumentRoot /srv/dmarcts-report-viewer
|
||||
|
||||
<Directory /srv/dmarcts-report-viewer>
|
||||
Options FollowSymLinks
|
||||
AllowOverride All
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
Require all granted
|
||||
DirectoryIndex dmarcts-report-viewer.php
|
||||
</Directory>
|
||||
|
||||
SSLEngine on
|
||||
SSLCertificateFile /var/local/certificates/dmarc.lunch.org.uk/fullchain.pem
|
||||
SSLCertificateKeyFile /var/local/certificates/dmarc.lunch.org.uk/privkey.pem
|
||||
</VirtualHost>
|
||||
|
||||
</IfModule>
|
||||
|
||||
<VirtualHost *:80>
|
||||
ServerName dmarc.lunch.org.uk
|
||||
|
||||
ErrorLog /var/log/apache2/dmarc-error.log
|
||||
CustomLog /var/log/apache2/dmarc-access.log combined
|
||||
|
||||
RemoteIPProxyProtocol On
|
||||
|
||||
<IfModule rewrite_module>
|
||||
#
|
||||
# This redirects all accesses to the HTTPS version of the site.
|
||||
#
|
||||
RewriteEngine On
|
||||
|
||||
RewriteRule ^/?(.*) https://dmarc.lunch.org.uk/$1 [R=301,L]
|
||||
</IfModule>
|
||||
</VirtualHost>
|
|
@ -56,3 +56,22 @@ dmarcts-report-viewer-config:
|
|||
- name: /srv/dmarcts-report-viewer/dmarcts-report-viewer-config.php
|
||||
- source: salt://dmarc_reports/dmarcts-report-viewer-config.php
|
||||
- template: jinja
|
||||
|
||||
dmarc-report-viewer-web:
|
||||
file.managed:
|
||||
- require:
|
||||
- sls: apache
|
||||
- sls: certificates
|
||||
- sls: php_fpm
|
||||
- names:
|
||||
- /etc/apache2/sites-available/dmarc.lunch.org.uk.conf:
|
||||
- source: salt://dmarc_reports/dmarc.lunch.org.uk.conf
|
||||
apache_site.enabled:
|
||||
- require:
|
||||
- file: /etc/apache2/sites-available/dmarc.lunch.org.uk.conf
|
||||
- name: dmarc.lunch.org.uk
|
||||
service.running:
|
||||
- name: apache2
|
||||
- reload: true
|
||||
- watch:
|
||||
- file: /etc/apache2/sites-available/dmarc.lunch.org.uk.conf
|
||||
|
|
|
@ -16,6 +16,7 @@ gpodder_web:
|
|||
- require:
|
||||
- sls: apache
|
||||
- sls: certificates/client
|
||||
- sls: php-fpm
|
||||
- names:
|
||||
- /etc/apache2/sites-available/gpodder.lunch.org.uk.conf:
|
||||
- source: salt://gpodder/gpodder.lunch.org.uk.conf
|
||||
|
|
|
@ -23,6 +23,7 @@ base:
|
|||
- swapfile
|
||||
- certificates
|
||||
- apache
|
||||
- php_fpm
|
||||
- backup
|
||||
- backup/scabbers
|
||||
- dottes_website
|
||||
|
|
Loading…
Reference in New Issue