GNAI-025: Fluxer-Chat-LXC CT 117 — komplett in Betrieb (fluxer.ghostnet.selfhost.eu) #21
@@ -61,8 +61,22 @@
|
||||
# volume the api self-heals via restart: unless-stopped while init runs.
|
||||
ansible.builtin.replace:
|
||||
path: "{{ fluxer_stack_compose_file }}"
|
||||
replace: "seaweedfs-init: {condition: service_started}"
|
||||
regexp: 'seaweedfs-init: \{condition: service_completed_successfully\}'
|
||||
replace: "{{ item.replace }}"
|
||||
regexp: "{{ item.regexp }}"
|
||||
loop:
|
||||
# 1. completed_successfully is never satisfied by podman-compose 1.3.0
|
||||
- regexp: 'seaweedfs-init: \{condition: service_completed_successfully\}'
|
||||
replace: 'seaweedfs-init: {condition: service_started}'
|
||||
# 2. nested ${VAR:-${INNER:-default}} refs get mangled (leftover "}:" in
|
||||
# the container env); flatten so our explicit .env values pass through
|
||||
- regexp: '\$\{FLUXER_REGISTRY:-ghcr\.io/\$\{FLUXER_REGISTRY_OWNER:-fluxerapp\}\}'
|
||||
replace: '${FLUXER_REGISTRY}'
|
||||
- regexp: '\$\{FLUXER_VAPID_EMAIL:-admin@\$\{FLUXER_DOMAIN\}\}'
|
||||
replace: '${FLUXER_VAPID_EMAIL}'
|
||||
- regexp: '\$\{FLUXER_PASSKEY_RP_ID:-\$\{FLUXER_DOMAIN\}\}'
|
||||
replace: '${FLUXER_PASSKEY_RP_ID}'
|
||||
- regexp: '\$\{FLUXER_PASSKEY_ADDITIONAL_ALLOWED_ORIGINS:-\$\{FLUXER_PUBLIC_SCHEME:-https\}://\$\{FLUXER_DOMAIN\}\}'
|
||||
replace: '${FLUXER_PASSKEY_ADDITIONAL_ALLOWED_ORIGINS}'
|
||||
when: not ansible_check_mode
|
||||
notify:
|
||||
- Restart the Fluxer stack
|
||||
|
||||
Reference in New Issue
Block a user