Separate out our proxy from our frontend

This commit is contained in:
Salt 2020-06-21 10:50:59 -05:00
parent aed52c16a0
commit d457ebf213
2 changed files with 16 additions and 0 deletions

View File

@ -25,6 +25,18 @@ SSLProxyEngine on
AllowOverride All AllowOverride All
Options MultiViews FollowSymlinks Options MultiViews FollowSymlinks
</Directory> </Directory>
RequestHeader set X_FORWARDED_PROTO 'https'
RequestHeader set X-Forwarded-Ssl on
</VirtualHost>
<VirtualHost *:8448>
SSLEngine on
SSLCertificateFile /etc/pki/cert/crt/{{ gitea_url }}.crt
SSLCertificateKeyFile /etc/pki/cert/private/{{ gitea_url }}.key
SSLCertificateChainFile /etc/pki/cert/crt/{{ gitea_url }}-fullchain.crt
SSLProtocol {{ ssl_protocol }}
SSLCipherSuite {{ ssl_cipher_suite }}
ServerName {{ gitea_url }}
ProxyPreserveHost On ProxyPreserveHost On
ProxyRequests Off ProxyRequests Off
ProxyPass / http://127.0.0.1:3000/ nocanon retry=1 ProxyPass / http://127.0.0.1:3000/ nocanon retry=1

View File

@ -19,6 +19,10 @@
apt: apt:
name: name:
- "matrix-synapse-py3" - "matrix-synapse-py3"
- name: Set up MySQL
block:
- name: Create DB
- name: Set up Apache - name: Set up Apache
block: block:
- name: Enable modules - name: Enable modules