vaultwarden setup
This commit is contained in:
1
vaultwarden/.env.example
Normal file
1
vaultwarden/.env.example
Normal file
@@ -0,0 +1 @@
|
||||
ADMIN_TOKEN=''
|
||||
@@ -5,11 +5,11 @@ services:
|
||||
image: vaultwarden/server:latest
|
||||
container_name: vaultwarden
|
||||
restart: always
|
||||
env_file:
|
||||
- ./.env
|
||||
environment:
|
||||
WEBSOCKET_ENABLED: "true" # Enable WebSocket notifications.
|
||||
SIGNUPS_ALLOWED: "false"
|
||||
# TODO create an admin token
|
||||
ADMIN_TOKEN: "abc"
|
||||
volumes:
|
||||
- ./vw-data:/data
|
||||
ports:
|
||||
|
||||
30
vaultwarden/vault.example.com
Normal file
30
vaultwarden/vault.example.com
Normal file
@@ -0,0 +1,30 @@
|
||||
server {
|
||||
|
||||
server_name vault.example.com;
|
||||
listen [::]:80;
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
|
||||
proxy_pass "http://127.0.0.1:50002/";
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Scheme $scheme;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
}
|
||||
location /notifications/hub {
|
||||
proxy_pass http://127.0.0.1:50003;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
location /notifications/hub/negotiate {
|
||||
proxy_pass http://127.0.0.1:50002;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
client_max_body_size 128M; # allow larger uploads
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user