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>
|
<VirtualHost *:80>
|
||||||
ServerName example.com
|
ServerName example.com
|
||||||
# For WebSocket
|
|
||||||
ProxyPass "/streaming" "ws://127.0.0.1:3000/streaming/"
|
RewriteEngine On
|
||||||
# Proxy to Node
|
RewriteCond %{HTTP:Upgrade} =websocket [NC]
|
||||||
ProxyPass "/" "http://127.0.0.1:3000/"
|
RewriteRule /(.*) ws://127.0.0.1:3000/$1 [P,L]
|
||||||
ProxyPassReverse "/" "http://127.0.0.1:3000/"
|
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
|
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
|
AllowEncodedSlashes On
|
||||||
|
|
||||||
|
<Location / >
|
||||||
|
Require all granted
|
||||||
|
</Location>
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
@ -1935,6 +1935,7 @@ _notification:
|
|||||||
followRequestAccepted: "Akzeptierte Follow-Anfragen"
|
followRequestAccepted: "Akzeptierte Follow-Anfragen"
|
||||||
groupInvited: "Erhaltene Gruppeneinladungen"
|
groupInvited: "Erhaltene Gruppeneinladungen"
|
||||||
app: "Benachrichtigungen von Apps"
|
app: "Benachrichtigungen von Apps"
|
||||||
|
bite: "Chomps"
|
||||||
_actions:
|
_actions:
|
||||||
followBack: "folgt dir nun auch"
|
followBack: "folgt dir nun auch"
|
||||||
reply: "Antworten"
|
reply: "Antworten"
|
||||||
|
@ -2114,6 +2114,7 @@ _notification:
|
|||||||
followRequestAccepted: "Accepted follow requests"
|
followRequestAccepted: "Accepted follow requests"
|
||||||
groupInvited: "Group invitations"
|
groupInvited: "Group invitations"
|
||||||
app: "Notifications from linked apps"
|
app: "Notifications from linked apps"
|
||||||
|
bite: "Chomps"
|
||||||
_actions:
|
_actions:
|
||||||
followBack: "followed you back"
|
followBack: "followed you back"
|
||||||
reply: "Reply"
|
reply: "Reply"
|
||||||
|
Loading…
Reference in New Issue
Block a user