Merge pull request 'security upgrade' (#17) from upgrade into main
Some checks failed
continuous-integration/drone/push Build is failing

Reviewed-on: #17
Reviewed-by: decentral1se <decentral1se@noreply.git.coopcloud.tech>
This commit is contained in:
fauno 2025-04-23 19:46:19 +00:00
commit 8d23542076
4 changed files with 8 additions and 6 deletions

View File

@ -1,2 +1,2 @@
export ENTRYPOINT_CONF_VERSION=v11
export ENTRYPOINT_CONF_VERSION=v12
export PG_BACKUP_VERSION=v1

View File

@ -2,7 +2,7 @@ version: "3.8"
services:
app:
environment:
- POSTGRES_ENABLED=1
- CMD_DB_TYPE=postgres
- CMD_DB_NAME=codimd
- CMD_DB_USER=codimd
- CMD_DB_HOST=db

View File

@ -1,7 +1,7 @@
version: "3.8"
services:
app:
image: quay.io/hedgedoc/hedgedoc:1.10.1
image: quay.io/hedgedoc/hedgedoc:1.10.3
environment:
- CMD_USECDN=false
- CMD_URL_ADDPORT=false

View File

@ -22,7 +22,9 @@ file_env() {
}
load_vars() {
file_env "CMD_DB_PASSWORD"
if [ -n "${CMD_DB_PASSWORD_FILE:-""}" ] ; then
file_env "CMD_DB_PASSWORD"
fi
file_env "CMD_OAUTH2_CLIENT_SECRET"
file_env "CMD_SESSION_SECRET"
}
@ -40,8 +42,8 @@ main() {
main
if [ -n "$POSTGRES_ENABLED" ]; then
export CMD_DB_URL="postgres://$CMD_DB_USER:$CMD_DB_PASSWORD@$CMD_DB_HOST:5432/$CMD_DB_NAME"
if [ -n "${CMD_DB_PASSWORD_FILE:-""}" ] ; then
export CMD_DB_URL="${CMD_DB_TYPE}://$CMD_DB_USER:$CMD_DB_PASSWORD@$CMD_DB_HOST:5432/$CMD_DB_NAME"
fi
# 3wc: `source /docker-entrypoint.sh -e` to load CMD_DB_URL for CLI scripts