36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
|
# Configuration for {{ pleroma_url }}
|
||
|
# vim:ft=apache:
|
||
|
|
||
|
# Accept connections from non-SNI clients
|
||
|
SSLStrictSNIVHostCheck off
|
||
|
# Need this for SSL proxying, apparently
|
||
|
SSLProxyEngine on
|
||
|
|
||
|
# Website configuration
|
||
|
<VirtualHost *:80>
|
||
|
ServerName {{ pleroma_url }}
|
||
|
Redirect permanent / https://{{ pleroma_url }}
|
||
|
</VirtualHost>
|
||
|
<VirtualHost *:443>
|
||
|
SSLEngine on
|
||
|
SSLCertificateFile /etc/pki/cert/crt/{{ pleroma_url }}.crt
|
||
|
SSLCertificateKeyFile /etc/pki/cert/private/{{ pleroma_url }}.key
|
||
|
SSLCertificateChainFile /etc/pki/cert/crt/{{ pleroma_url }}-fullchain.crt
|
||
|
SSLProtocol {{ ssl_protocol }}
|
||
|
SSLCipherSuite {{ ssl_cipher_suite }}
|
||
|
ServerName {{ pleroma_url }}
|
||
|
DocumentRoot {{ pleroma_webroot }}
|
||
|
<Directory "{{ pleroma_webroot }}">
|
||
|
Require all granted
|
||
|
AllowOverride All
|
||
|
Options MultiViews FollowSymlinks
|
||
|
</Directory>
|
||
|
ProxyPreserveHost On
|
||
|
ProxyRequests Off
|
||
|
ProxyPass / http://127.0.0.1:4000/ nocanon retry=1
|
||
|
ProxyPassReverse / https://127.0.0.1:4000/
|
||
|
|
||
|
RequestHeader set X_FORWARDED_PROTO 'https'
|
||
|
RequestHeader set X-Forwarded-Ssl on
|
||
|
</VirtualHost>
|