vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 77d9641323545de5b92b2ef12e1004ae30dbee28
parent 31e42372477ed9bcef82a06a3795ec4f6331604f
Author: Toucan-Sam <raharazod@gmail.com>
Date:   Thu, 25 Oct 2018 19:45:22 +1300

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.
Diffstat:
MPROXY.md | 19+++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/PROXY.md b/PROXY.md @@ -31,26 +31,25 @@ localhost:443 { ## Nginx (by shauder) ```nginx server { - include conf.d/ssl/ssl.conf; - listen 443 ssl http2; server_name vault.*; - - location /notifications/hub/negotiate { - include conf.d/proxy-confs/proxy.conf; - proxy_pass http://<SERVER>:80; - } - + + # Specify SSL config if using a shared one. + #include conf.d/ssl/ssl.conf; + location / { - include conf.d/proxy-confs/proxy.conf; proxy_pass http://<SERVER>:80; } - + location /notifications/hub { proxy_pass http://<SERVER>:3012; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } + + location /notifications/hub/negotiate { + proxy_pass http://<SERVER>:80; + } } ```