fixing up collabora secret
This commit is contained in:
@ -8,7 +8,6 @@ set -e
|
|||||||
[ -f /run/secrets/django_sp ] && export DJANGO_SUPERUSER_PASSWORD="$(cat /run/secrets/django_sp)"
|
[ -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/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/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 not in "env" mode, then execute the original entrypoint and command
|
||||||
if [ ! "$1" = "-e" ]; then
|
if [ ! "$1" = "-e" ]; then
|
||||||
|
|||||||
2
abra.sh
2
abra.sh
@ -1,6 +1,6 @@
|
|||||||
# Set any config versions here
|
# Set any config versions here
|
||||||
# Docs: https://docs.coopcloud.tech/maintainers/handbook/#manage-configs
|
# 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 NGINX_CONF_VERSION=v6
|
||||||
export ONLYOFFICE_CONF_VERSION=v2
|
export ONLYOFFICE_CONF_VERSION=v2
|
||||||
export PG_BACKUP_VERSION=v3
|
export PG_BACKUP_VERSION=v3
|
||||||
|
|||||||
@ -283,7 +283,10 @@ services:
|
|||||||
|
|
||||||
collabora:
|
collabora:
|
||||||
image: collabora/code:25.04.9.1.1
|
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:
|
healthcheck:
|
||||||
test: [ "CMD", "curl", "-f", "http://localhost:9980/hosting/discovery" ]
|
test: [ "CMD", "curl", "-f", "http://localhost:9980/hosting/discovery" ]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
@ -297,10 +300,6 @@ services:
|
|||||||
- extra_params=--o:ssl.enable=false --o:ssl.termination=true
|
- extra_params=--o:ssl.enable=false --o:ssl.termination=true
|
||||||
- username=${COLLABORA_ADMIN_USERNAME:-admin}
|
- username=${COLLABORA_ADMIN_USERNAME:-admin}
|
||||||
- server_name=${COLLABORA_DOMAIN}
|
- server_name=${COLLABORA_DOMAIN}
|
||||||
configs:
|
|
||||||
- source: abra_entrypoint
|
|
||||||
target: /abra-entrypoint.sh
|
|
||||||
mode: 0555
|
|
||||||
secrets:
|
secrets:
|
||||||
- collabora_p
|
- collabora_p
|
||||||
deploy:
|
deploy:
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
After upgrading, you must generate the new secret for collabora to work:
|
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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user