Mercurial > libervia-backend
comparison sat/plugins/plugin_app_manager_docker/sat_app_weblate.yaml @ 3566:17b69a111a85
app manager (docker/weblate): use new `files` feature to set `settings-override.py`:
This file is used to set `USE_X_FORWARDED_HOST`, which is necessary to make Weblate work
correctly being an Apache (and potentially other HTTP servers) reverse proxy (otherwise we
have CSRF errors, cf. https://github.com/WeblateOrg/weblate/issues/1912).
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 12 Jun 2021 15:14:57 +0200 |
parents | c30b4b18d3b8 |
children | a240748ed686 |
comparison
equal
deleted
inserted
replaced
3565:d66a8453b02b | 3566:17b69a111a85 |
---|---|
1 type: docker-compose | 1 type: docker-compose |
2 prepare: | 2 prepare: |
3 git: https://github.com/WeblateOrg/docker-compose.git | 3 git: https://github.com/WeblateOrg/docker-compose.git |
4 files: | |
5 settings-override.py: | |
6 content: | | |
7 USE_X_FORWARDED_HOST = True | |
4 override: | 8 override: |
5 version: "3" | 9 version: "3" |
6 services: | 10 services: |
7 weblate: | 11 weblate: |
8 ports: | 12 ports: |
16 WEBLATE_SERVER_EMAIL: !sat_conf ["", "email_from", "weblate@example.com"] | 20 WEBLATE_SERVER_EMAIL: !sat_conf ["", "email_from", "weblate@example.com"] |
17 WEBLATE_DEFAULT_FROM_EMAIL: !sat_conf ["", "email_from", "weblate@example.com"] | 21 WEBLATE_DEFAULT_FROM_EMAIL: !sat_conf ["", "email_from", "weblate@example.com"] |
18 WEBLATE_SITE_DOMAIN: !sat_conf ["", "public_url"] | 22 WEBLATE_SITE_DOMAIN: !sat_conf ["", "public_url"] |
19 WEBLATE_ADMIN_PASSWORD: !sat_generate_pwd | 23 WEBLATE_ADMIN_PASSWORD: !sat_generate_pwd |
20 WEBLATE_ADMIN_EMAIL: !sat_conf ["", "email_admins_list", "", "first"] | 24 WEBLATE_ADMIN_EMAIL: !sat_conf ["", "email_admins_list", "", "first"] |
25 volumes: | |
26 - ./settings-override.py:/app/data/settings-override.py:ro | |
21 expose: | 27 expose: |
22 url_prefix: [override, services, weblate, environment, WEBLATE_URL_PREFIX] | 28 url_prefix: [override, services, weblate, environment, WEBLATE_URL_PREFIX] |
23 front_url: !sat_param [front_url, /translate] | 29 front_url: !sat_param [front_url, /translate] |
24 web_label: Translate | 30 web_label: Translate |
25 ports: | 31 ports: |