Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bitwarden-lite/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ ARG TARGETPLATFORM
LABEL com.bitwarden.product="bitwarden"
LABEL com.bitwarden.project="lite"
ENV ASPNETCORE_ENVIRONMENT=Production
ENV BW_ENABLE_IPV6=true
ENV BW_ENABLE_ADMIN=true
ENV BW_ENABLE_API=true
ENV BW_ENABLE_EVENTS=false
Expand Down
6 changes: 5 additions & 1 deletion bitwarden-lite/hbs/nginx-config.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
server {
listen {{{String.Coalesce env.BW_PORT_HTTP "8080"}}} default_server;
{{#if (String.Equal env.BW_ENABLE_IPV6 "true")}}
listen [::]:{{{String.Coalesce env.BW_PORT_HTTP "8080"}}} default_server;
{{/if}}
server_name {{{String.Coalesce env.BW_DOMAIN "localhost"}}};
{{#if (String.Equal env.BW_ENABLE_SSL "true")}}

Expand All @@ -9,7 +11,9 @@ server {

server {
listen {{{String.Coalesce env.BW_PORT_HTTPS "8443"}}} ssl http2;
#listen [::]:{{{String.Coalesce env.BW_PORT_HTTPS "8443"}}} ssl http2;
{{#if (String.Equal env.BW_ENABLE_IPV6 "true")}}
listen [::]:{{{String.Coalesce env.BW_PORT_HTTPS "8443"}}} ssl http2;
{{/if}}
server_name {{{String.Coalesce env.BW_DOMAIN "localhost"}}};

ssl_certificate /etc/bitwarden/{{{String.Coalesce env.BW_SSL_CERT "ssl.crt"}}};
Expand Down
3 changes: 3 additions & 0 deletions bitwarden-lite/settings.env
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ BW_INSTALLATION_KEY=xxxxxxxxxxxx
#PUID=1000
#PGID=1000

# IPV6
#BW_ENABLE_IPV6=true

# Webserver ports
#BW_PORT_HTTP=8080
#BW_PORT_HTTPS=8443
Expand Down
Loading