From 7ff7949c6c48b261358af2f5f1becc78fd874c0e Mon Sep 17 00:00:00 2001 From: Komic Date: Tue, 25 Jul 2017 00:06:54 +0200 Subject: [PATCH] Apache - Updating paths for 1.5.0rc1 (#344) --- Running-Mastodon/Alternatives.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Running-Mastodon/Alternatives.md b/Running-Mastodon/Alternatives.md index 5b42eeb9..39fc174b 100644 --- a/Running-Mastodon/Alternatives.md +++ b/Running-Mastodon/Alternatives.md @@ -207,15 +207,22 @@ Setting up Mastodon behind Apache is possible as well, although you will need to SSLCertificateFile example.pem SSLCertificateKeyFile example.key - + Header always set Cache-Control "public, max-age=31536000, immutable" ProxyPreserveHost On RequestHeader set X-Forwarded-Proto "https" + ProxyPass /500.html ! - ProxyPassMatch ^(/.*\.(gif|png|svg|ico)$) ! - ProxyPassMatch ^/(emoji|packs|sounds|system) ! + ProxyPass /sw.js ! + ProxyPass /robots.txt ! + ProxyPass /manifest.json ! + ProxyPass /browserconfig.xml ! + ProxyPass /mask-icon.svg ! + ProxyPassMatch ^(/.*\.(png|ico)$) ! + ProxyPassMatch ^/(assets|avatars|emoji|headers|packs|sounds|system|.well-known/acme-challenge) ! + ProxyPass /api/v1/streaming/ ws://localhost:4000/ ProxyPassReverse /api/v1/streaming/ ws://localhost:4000/ ProxyPass / http://localhost:3000/