Update apache example to properly support notifications and files

This commit is contained in:
Crimekillz 2024-03-30 23:18:56 +01:00
parent bf750e2406
commit 727fd4a3dc
3 changed files with 38 additions and 8 deletions

View File

@ -1,13 +1,41 @@
# Replace example.com with your domain
# Replace example.com with your domain and set RemoteIPInternalProxy
<VirtualHost *:80>
ServerName example.com
# For WebSocket
ProxyPass "/streaming" "ws://127.0.0.1:3000/streaming/"
# Proxy to Node
ProxyPass "/" "http://127.0.0.1:3000/"
ProxyPassReverse "/" "http://127.0.0.1:3000/"
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://127.0.0.1:3000/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.*) http://127.0.0.1:3000/$1 [P,L]
# Here we define the path to the WebSocket
ProxyPass "/streaming" "ws://127.0.0.1:3000/streaming"
ProxyPassReverse "/streaming" "ws://127.0.0.1:3000/streaming"
ProxyRequests Off
ProxyPreserveHost On
# For files proxy
<Proxy *>
Require all granted
</Proxy>
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/
RemoteIPHeader X-Forwarded-For
RemoteIPHeader X-Real-IP
# Set this to the (internal) IP of your proxy server
RemoteIPInternalProxy 127.0.0.1
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
# Uncomment this if you are using SSL
#RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS}
AllowEncodedSlashes On
<Location / >
Require all granted
</Location>
</VirtualHost>

View File

@ -1935,6 +1935,7 @@ _notification:
followRequestAccepted: "Akzeptierte Follow-Anfragen"
groupInvited: "Erhaltene Gruppeneinladungen"
app: "Benachrichtigungen von Apps"
bite: "Chomps"
_actions:
followBack: "folgt dir nun auch"
reply: "Antworten"

View File

@ -2114,6 +2114,7 @@ _notification:
followRequestAccepted: "Accepted follow requests"
groupInvited: "Group invitations"
app: "Notifications from linked apps"
bite: "Chomps"
_actions:
followBack: "followed you back"
reply: "Reply"