|
|
|
|
@ -110,19 +110,22 @@ server {
@@ -110,19 +110,22 @@ server {
|
|
|
|
|
proxy_pass http://localhost:5001/; |
|
|
|
|
} |
|
|
|
|
{{/if}} |
|
|
|
|
{{#if (String.Equal env.BW_ENABLE_ICONS "true")}} |
|
|
|
|
|
|
|
|
|
{{#if (String.Equal env.BW_ENABLE_ICONS "true") && !(String.Equal env.BW_ICONS_PROXY_TO_CLOUD "true")}} |
|
|
|
|
location /icons/ { |
|
|
|
|
proxy_pass http://localhost:5004/; |
|
|
|
|
} |
|
|
|
|
{{/if}} |
|
|
|
|
{{#if (String.Equal env.BW_ICONS_PROXY_TO_CLOUD "true")}} |
|
|
|
|
location /icons/ { |
|
|
|
|
proxy_pass https://icons.bitwarden.net/; |
|
|
|
|
proxy_set_header Host icons.bitwarden.net; |
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr; |
|
|
|
|
proxy_ssl_server_name on; |
|
|
|
|
{{else}} |
|
|
|
|
proxy_pass http://localhost:5004/; |
|
|
|
|
{{/if}} |
|
|
|
|
} |
|
|
|
|
{{/if}} |
|
|
|
|
|
|
|
|
|
{{/if}} |
|
|
|
|
{{#if (String.Equal env.BW_ENABLE_NOTIFICATIONS "true")}} |
|
|
|
|
|
|
|
|
|
location /notifications/ { |
|
|
|
|
|