Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-16 04:12:53 +01:00
Update PROXY.md
Removed: `include conf.d/proxy-confs/proxy.conf;` lines because they're specific to user (shauder) and will break nginx if copy-pasted/don't exist. Changed: Moved listen value and server_name to top as is standard for nginx configs Changed: Commented out SSL config as it's specific to user (shauder) and will break if copy-pasted/don't exist. But is still useful and a good idea for simplifying nginx config. Changed: Rearranged location blocks because OCD. First /, then /notifications/hub, then /notifications/hub/negotiate because it looks nicer in a tree where each location grows.
Dieser Commit ist enthalten in:
Ursprung
31e4237247
Commit
77d9641323
1 geänderte Dateien mit 9 neuen und 10 gelöschten Zeilen
13
PROXY.md
13
PROXY.md
|
@ -31,18 +31,13 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,6 +46,10 @@ server {
|
||||||
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren