✨: add vaultwarden
This commit is contained in:
28
roles/nginx/templates/vhosts/vault.libertus.eu.conf.j2
Normal file
28
roles/nginx/templates/vhosts/vault.libertus.eu.conf.j2
Normal file
@@ -0,0 +1,28 @@
|
||||
upstream vaultwarden-default {
|
||||
zone vaultwarden-default 64k;
|
||||
server 127.0.0.1:8000;
|
||||
keepalive 2;
|
||||
}
|
||||
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' "";
|
||||
}
|
||||
|
||||
server {
|
||||
{% include './templates/header.conf.j2' %}
|
||||
client_max_body_size 525M;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
|
||||
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 / {
|
||||
proxy_pass http://vaultwarden-default;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user