️: improve configuration for nginx

This commit is contained in:
VC
2025-02-07 16:35:43 +01:00
parent b57ed3b620
commit bdae7b1060
5 changed files with 6 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
--- ---
web_hostname: web_hostname:
- host: p.nintendojo.fr - host: p.nintendojo.fr
nginx_other_headers: false

View File

@@ -19,3 +19,5 @@ vaultwarden_admin_token: !vault |
38326263353137386437383337343964373032323535663732663639653638656266653436363063 38326263353137386437383337343964373032323535663732663639653638656266653436363063
33363662653463353965366565613531663339363563633039393234323330383430643734376436 33363662653463353965366565613531663339363563633039393234323330383430643734376436
3139313735663133366334376130353438343863343534663034 3139313735663133366334376130353438343863343534663034
nginx_other_headers: false

View File

@@ -1,3 +1,4 @@
--- ---
nginx_extra_mods: [] nginx_extra_mods: []
nginx_other_headers: true

View File

@@ -54,7 +54,7 @@ http {
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml; gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml;
include nginx.ssl.conf; include nginx.ssl.conf;
{% if inventory_hostname != 'pt1.dmz.mateu.be' %} {% if nginx_other_headers %}
include nginx.other_headers.conf; include nginx.other_headers.conf;
{% endif %} {% endif %}

View File

@@ -182,7 +182,7 @@ WEB_VAULT_FOLDER=/usr/share/vaultwarden-web-vault/
## For public server (URL with port number) ## For public server (URL with port number)
# DOMAIN=https://vw.domain.tld:8443 # DOMAIN=https://vw.domain.tld:8443
## For public server (URL with path) ## For public server (URL with path)
# DOMAIN=https://domain.tld/vw DOMAIN=https://{{ web_hostname[0].host }}
## Controls whether users are allowed to create Bitwarden Sends. ## Controls whether users are allowed to create Bitwarden Sends.
## This setting applies globally to all users. ## This setting applies globally to all users.