mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-11-29 01:19:20 +03:00
commit
8ce4c79612
1 changed files with 9 additions and 10 deletions
19
PROXY.md
19
PROXY.md
|
@ -31,26 +31,25 @@ localhost:443 {
|
||||||
## Nginx (by shauder)
|
## Nginx (by shauder)
|
||||||
```nginx
|
```nginx
|
||||||
server {
|
server {
|
||||||
include conf.d/ssl/ssl.conf;
|
|
||||||
|
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
server_name vault.*;
|
server_name vault.*;
|
||||||
|
|
||||||
location /notifications/hub/negotiate {
|
# Specify SSL config if using a shared one.
|
||||||
include conf.d/proxy-confs/proxy.conf;
|
#include conf.d/ssl/ssl.conf;
|
||||||
proxy_pass http://<SERVER>:80;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
include conf.d/proxy-confs/proxy.conf;
|
|
||||||
proxy_pass http://<SERVER>:80;
|
proxy_pass http://<SERVER>:80;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /notifications/hub {
|
location /notifications/hub {
|
||||||
proxy_pass http://<SERVER>:3012;
|
proxy_pass http://<SERVER>:3012;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /notifications/hub/negotiate {
|
||||||
|
proxy_pass http://<SERVER>:80;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue