Automatized logging by enable_debug variable

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

View File

@ -1,12 +1,14 @@
# The configuration options can be found here:
# @see https://hub.docker.com/_/friendica
FRIENDICA_URL= https://{{domain}}
HOSTNAME= {{domain}}
FRIENDICA_NO_VALIDATION= false
FRIENDICA_NO_VALIDATION={{no_validation | lower}}
# Debugging
FRIENDICA_DEBUGGING= false
FRIENDICA_DEBUGGING= {% if enable_debug | bool %}true{% else %}false{% endif %}
FRIENDICA_LOGLEVEL= 5
FRIENDICA_LOGGER= stream
FRIENDICA_LOGFILE= php=//stdout
FRIENDICA_LOGGER= syslog
# Database Configuration
MYSQL_HOST= "{{database_host}}:{{database_port}}"

View File

@ -1,3 +1,4 @@
application_id: "friendica"
database_password: "{{friendica_database_password}}"
database_type: "mariadb"
no_validation: "{{oidc.enabled}}" # Email validation is not neccessary if OIDC is active

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

View File

@ -25,7 +25,7 @@
# Logging
#SyslogFacility AUTH
#LogLevel INFO
LogLevel {% if enable_debug | bool %}DEBUG3{% else %}INFO{% endif %}
# Authentication: