Updated webserver sample configs
This commit is contained in:
@@ -18,10 +18,7 @@
|
|||||||
CustomLog ${APACHE_LOG_DIR}/vaultwarden-access.log combined
|
CustomLog ${APACHE_LOG_DIR}/vaultwarden-access.log combined
|
||||||
|
|
||||||
# Reverse Proxy
|
# Reverse Proxy
|
||||||
RewriteEngine On
|
ProxyPass / http://127.0.0.1:8000/ upgrade=websocket
|
||||||
RewriteCond %{HTTP:Upgrade} =websocket [NC]
|
|
||||||
RewriteRule /notifications/hub(.*) ws://127.0.0.1:3012/$1 [P,L]
|
|
||||||
ProxyPass / http://127.0.0.1:8000/
|
|
||||||
|
|
||||||
ProxyPreserveHost On
|
ProxyPreserveHost On
|
||||||
ProxyRequests Off
|
ProxyRequests Off
|
||||||
|
|||||||
@@ -28,20 +28,10 @@ server {
|
|||||||
resolver_timeout 5s;
|
resolver_timeout 5s;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:8000;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /notifications/hub {
|
|
||||||
proxy_pass http://127.0.0.1:3012;
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection $connection_upgrade;
|
||||||
}
|
|
||||||
|
|
||||||
location /notifications/hub/negotiate {
|
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|||||||
Reference in New Issue
Block a user