Automatized logging by enable_debug variable

This commit is contained in:
2025-02-12 13:36:29 +01:00
parent eaca564c6f
commit 19f6b181bc
5 changed files with 19 additions and 16 deletions

View File

@@ -39,7 +39,7 @@ services:
- "data:{{media_root}}"
- "static_root:{{static_root}}"
ports:
- "5000"
- "5000" # Exposes API just in local docker network to be used by front container
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
{% include 'templates/docker/container/networks.yml.j2' %}

View File

@@ -43,7 +43,7 @@ FUNKWHALE_HOSTNAME={{domain}}
FUNKWHALE_PROTOCOL=https
# Log level (debug, info, warning, error, critical)
LOGLEVEL=error
LOGLEVEL={% if enable_debug | bool %}debug{% else %}error{% endif %}
# Configure e-mail sending using this variale
# By default, funkwhale will output e-mails sent to stdout
@@ -106,13 +106,13 @@ DJANGO_SECRET_KEY={{funkwhale_django_secret}}
# Have a look at https://docs.funkwhale.audio/installation/ldap.html for
# detailed instructions.
LDAP_ENABLED=True
LDAP_SERVER_URI={{ldap.server.uri}}
LDAP_BIND_DN={{ldap.dn.administrator}}
LDAP_BIND_PASSWORD={{applications.ldap.administrator_database_password}}
LDAP_SEARCH_FILTER=(|(cn={0})(mail={0})) # Needs to checked
LDAP_START_TLS=False
LDAP_ROOT_DN={{ldap.dn.root}}
LDAP_ENABLED = True
LDAP_SERVER_URI = "{{ldap.server.uri}}"
LDAP_BIND_DN = "{{ldap.dn.administrator}}"
LDAP_BIND_PASSWORD = "{{applications.ldap.administrator_database_password}}"
LDAP_SEARCH_FILTER = "(|(cn={0})(mail={0}))"
LDAP_START_TLS = False
LDAP_ROOT_DN = "{{ldap.dn.root}}"
{% endif %}
FUNKWHALE_FRONTEND_PATH=/srv/funkwhale/front/dist