vaultwarden

This commit is contained in:
root 2022-11-08 05:12:48 -05:00
parent 8d4e13b8c3
commit 280ff759c4
2 changed files with 69 additions and 0 deletions

38
common/vaultwarden.conf Normal file
View File

@ -0,0 +1,38 @@
client_max_body_size 128M;
location / {
proxy_http_version 1.1;
proxy_set_header "Connection" "";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:8056;
}
location /notifications/hub/negotiate {
proxy_http_version 1.1;
proxy_set_header "Connection" "";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:8056;
}
location /notifications/hub {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header Forwarded $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:3012;
}
location /admin {
proxy_http_version 1.1;
proxy_set_header "Connection" "";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:8056;
}

31
conf.d/vaultwarden.conf Normal file
View File

@ -0,0 +1,31 @@
server {
listen 80;
listen [::]:80;
server_name vaultwarden.vern.cc vw.vern.cc;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name vaultwarden.vern.cc vw.vern.cc;
include snippets/lets-encrypt.conf;
include common/vaultwarden.conf;
}
server {
listen 80;
listen [::]:80;
server_name vw.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
include common/vaultwarden.conf;
}
server {
listen 11075;
listen [::]:11075;
server_name vernv3r2fudsi6yslyxmuqurx5pppfveqzmlqag5jdmek6ugibrq.b32.i2p;
include common/vaultwarden.conf;
}