Create apache2.conf

This commit is contained in:
Marius 2017-05-20 22:36:04 +02:00 committed by GitHub
parent a7950fdadb
commit 5472f66fd8
1 changed files with 20 additions and 0 deletions

20
.infra/files/apache2.conf Normal file
View File

@ -0,0 +1,20 @@
<VirtualHost *:443>
ServerAdmin XXXXXXXXXX
ServerName XXXXXXXXXX
ServerAlias XXXXXXXXXX
DocumentRoot XXXXXXXXXX
# Enable secure communication using HTTPS
SSLEngine on
SSLCertificateFile XXXXXXXXXX
SSLCertificateKeyFile XXXXXXXXXX
SSLCACertificateFile XXXXXXXXXX
# Tell tusd that the HTTPS protocol is used, in order to
# allow constructing correct upload URLs.
RequestHeader set X-Forwarded-Proto "https"
# Pass requests to tusd server
ProxyPass /files http://localhost:1080/files
ProxyPassReverse /files http://localhost:1080/files
</VirtualHost>