fixing up collabora secret

This commit is contained in:
notplants
2026-02-18 11:02:52 -05:00
parent 223a242f70
commit af25d3acc0
4 changed files with 7 additions and 8 deletions

View File

@ -8,7 +8,6 @@ set -e
[ -f /run/secrets/django_sp ] && export DJANGO_SUPERUSER_PASSWORD="$(cat /run/secrets/django_sp)"
[ -f /run/secrets/oidc_rpcs ] && export OIDC_RP_CLIENT_SECRET="$(cat /run/secrets/oidc_rpcs)"
[ -f /run/secrets/email_pass ] && export DJANGO_EMAIL_HOST_PASSWORD="$(cat /run/secrets/email_pass)"
[ -f /run/secrets/collabora_p ] && export password="$(cat /run/secrets/collabora_p)"
# if not in "env" mode, then execute the original entrypoint and command
if [ ! "$1" = "-e" ]; then

View File

@ -1,6 +1,6 @@
# Set any config versions here
# Docs: https://docs.coopcloud.tech/maintainers/handbook/#manage-configs
export ABRA_ENTRYPOINT_VERSION=v10
export ABRA_ENTRYPOINT_VERSION=v11
export NGINX_CONF_VERSION=v6
export ONLYOFFICE_CONF_VERSION=v2
export PG_BACKUP_VERSION=v3

View File

@ -283,7 +283,10 @@ services:
collabora:
image: collabora/code:25.04.9.1.1
entrypoint: ["/abra-entrypoint.sh", "/start-collabora-online.sh"]
entrypoint: >
sh -c "
export password=\"$$(cat /run/secrets/collabora_p)\" &&
exec /start-collabora-online.sh"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9980/hosting/discovery" ]
interval: 30s
@ -297,10 +300,6 @@ services:
- extra_params=--o:ssl.enable=false --o:ssl.termination=true
- username=${COLLABORA_ADMIN_USERNAME:-admin}
- server_name=${COLLABORA_DOMAIN}
configs:
- source: abra_entrypoint
target: /abra-entrypoint.sh
mode: 0555
secrets:
- collabora_p
deploy:

View File

@ -3,6 +3,7 @@
After upgrading, you must generate the new secret for collabora to work:
```
abra app secret insert <app-name> collabora_p v1 <your-password>
abra app secret generate <app-name> collabora_p
abra app config <app-name> # set SECRET_COLLABORA_P_VERSION=v1
```