entrypoint

This commit is contained in:
2026-09-30 04:42:07 +01:00
parent 3aee14852a
commit a3fcfffef2
4 changed files with 47 additions and 2 deletions
+38
View File
@@ -0,0 +1,38 @@
#!/bin/sh
set -eu
ENV_FILE=/app/.env
cat > "$ENV_FILE" <<EOF
BASE_URL=blog.lainoa.eus
ROCKET_SECRET_KEY=${ROCKET_SECRET_KEY}
MAIL_SERVER=smtp.lainoa.eus
MAIL_USER=aitzol
MAIL_PASSWORD=${EMAIL_PASSWORD}
POSTGRES_USER=plume
POSTGRES_DB=plume
POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
DATABASE_URL=postgres://plume:passw0rd@postgres:5432/plume
MIGRATION_DIRECTORY=migrations/postgres
USE_HTTPS=1
ROCKET_ADDRESS=0.0.0.0
ROCKET_PORT=7878
LDAP_ADDR=ldaps://ldap.lainoa.eus:636
LDAP_BASE_DN=cn=users,ou=groups,dc=ldap,dc=lainoa,dc=eus
LDAP_USER_NAME_ATTR=uid
LDAP_USER_MAIL_ATTR=mail
LDAP_TLS=true
LDAP_USER=cn=readonly,dc=ldap,dc=lainoa,dc=eus
LDAP_PASSWORD=${LDAP_PASSWORD}
RUST_BACTRACE=1
EOF
chmod 600 "$ENV_FILE"
exec "$@"