1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-09 15:18:13 -05: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

@ -11,6 +11,11 @@ services:
ports: ports:
- '1433:1433' - '1433:1433'
web:
image: bitwarden/web
container_name: web
restart: always
api: api:
image: bitwarden/api image: bitwarden/api
container_name: api container_name: api

View File

@ -124,6 +124,16 @@ server {{
} }
sw.WriteLine($@" 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/ {{ location /api/ {{
proxy_pass http://api/; proxy_pass http://api/;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;