Merge pull request #281 from koug44/master

Update on apache configuration
This commit is contained in:
Eugen Rochko 2017-05-30 16:32:53 +02:00 committed by GitHub
commit ba27b6ed63
1 changed files with 5 additions and 4 deletions

View File

@ -207,14 +207,15 @@ Setting up Mastodon behind Apache is possible as well, although you will need to
SSLCertificateFile example.pem SSLCertificateFile example.pem
SSLCertificateKeyFile example.key SSLCertificateKeyFile example.key
<Location /assets> <LocationMatch "^/(emoji|packs|sounds|system)>
Header always set Cache-Control "public, max-age=31536000, immutable" Header always set Cache-Control "public, max-age=31536000, immutable"
</Location> </LocationMatch>
ProxyPreserveHost On ProxyPreserveHost On
RequestHeader set X-Forwarded-Proto "https" RequestHeader set X-Forwarded-Proto "https"
ProxyPass /500.html ! ProxyPass /500.html !
ProxyPass /oops.png ! ProxyPassMatch ^(/.*\.(gif|png|svg|ico)$) !
ProxyPassMatch ^/(emoji|packs|sounds|system) !
ProxyPass /api/v1/streaming/ ws://localhost:4000/ ProxyPass /api/v1/streaming/ ws://localhost:4000/
ProxyPassReverse /api/v1/streaming/ ws://localhost:4000/ ProxyPassReverse /api/v1/streaming/ ws://localhost:4000/
ProxyPass / http://localhost:3000/ ProxyPass / http://localhost:3000/