fix: move Authelia config files to correct Docker mount location

- Move configuration.yml and users_database.yml to authelia/config/ directory
- Ensure files are in the correct location for Docker volume mount ./authelia/config:/config
- Prevent Authelia from using default configuration instead of processed template
This commit is contained in:
EZ-Homelab Assistant
2026-01-30 19:12:49 -05:00
parent ea75ea9829
commit c6fbcb785e

View File

@@ -813,6 +813,13 @@ deploy_core() {
replace_env_placeholders "$config_file" true replace_env_placeholders "$config_file" true
done done
# Move config files to the correct location for Docker mount
debug_log "Moving Authelia config files to config directory"
mkdir -p /opt/stacks/core/authelia/config
mv /opt/stacks/core/authelia/configuration.yml /opt/stacks/core/authelia/config/
mv /opt/stacks/core/authelia/users_database.yml /opt/stacks/core/authelia/config/
sudo chown -R "$ACTUAL_USER:$ACTUAL_USER" /opt/stacks/core/authelia
# Generate shared CA for multi-server TLS # Generate shared CA for multi-server TLS
debug_log "Generating shared CA" debug_log "Generating shared CA"
log_info "Generating shared CA certificate for multi-server TLS..." log_info "Generating shared CA certificate for multi-server TLS..."