1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

docker web image

This commit is contained in:
Kyle Spearrin 2017-08-07 17:08:41 -04:00
parent 9bc6ba554a
commit a281e9906d
2 changed files with 15 additions and 0 deletions

View File

@ -10,6 +10,11 @@ services:
- mssql.override.env
ports:
- '1433:1433'
web:
image: bitwarden/web
container_name: web
restart: always
api:
image: bitwarden/api

View File

@ -124,6 +124,16 @@ server {{
}
sw.WriteLine($@"
location / {{
proxy_pass http://web/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Url-Scheme $scheme;
proxy_redirect off;
}}
location /api/ {{
proxy_pass http://api/;
proxy_set_header X-Real-IP $remote_addr;