mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01:00
Update apache example to properly support notifications and files
This commit is contained in:
parent
bf750e2406
commit
727fd4a3dc
@ -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>
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user