forked from Tecnativa/doodba-copier-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.jinja
46 lines (42 loc) · 1.27 KB
/
.env.jinja
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Odoo
ODOO_MAJOR={{ "%.0f"|format(odoo_version) }}
ODOO_MINOR={{ "%.1f"|format(odoo_version) }}
INITIAL_LANG={{ odoo_initial_lang }}
{%- if odoo_oci_image %}
ODOO_IMAGE={{ odoo_oci_image }}
{%- endif %}
ODOO_PROXY_MODE={{ (odoo_proxy is not none)|string|lower }}
# Domains
DOMAIN_TEST={{ domain_test or "" }}
DOMAIN_PROD={{ domain_prod or "" }}
{%- if domain_prod_alternatives %}
{%- for domain in domain_prod_alternatives %}
DOMAIN_PROD_ALT_{{ loop.index0 }}={{ domain }}
{%- endfor %}
{%- endif %}
# Database
DB_VERSION={{ postgres_version }}
DB_USER={{ postgres_username }}
DB_FILTER={{ odoo_dbfilter }}
# Real SMTP relay
SMTP_DEFAULT_FROM={{ smtp_default_from or "" }}
{%- if smtp_relay_host %}
SMTP_REAL_MAILNAME={{ smtp_canonical_default }}
SMTP_REAL_RELAY_HOST={{ smtp_relay_host }}
SMTP_REAL_RELAY_PORT={{ smtp_relay_port }}
SMTP_REAL_RELAY_USER={{ smtp_relay_user }}
SMTP_REAL_CANONICAL_DOMAINS={{
([smtp_canonical_default] + (smtp_canonical_domains or []))
|unique|sort|join(",")
}}
SMTP_REAL_NON_CANONICAL_DEFAULT={{ smtp_canonical_default }}
{%- endif %}
{%- if backup_dst %}
# Backup
BACKUP_DST={{ backup_dst }}
{%- if smtp_relay_host %}
BACKUP_EMAIL_FROM={{ backup_email_from }}
BACKUP_EMAIL_TO={{ backup_email_to }}
{%- endif %}
BACKUP_TZ={{ backup_tz }}
{%- endif %}