ghost/templates/config.production.json.j2

58 lines
1.2 KiB
Django/Jinja

{
{% if item.url is defined %}
"url": "https://{{ item.url }}",
{% else %}
"url": "https://{{ item.name }}",
{% endif %}
"server": {
"port": {{ item.ghost_port }},
"host": "{{ item.ghost_host }}"
},
"database": {
"client": "mysql",
"connection": {
"host": "{{ item.db_host }}",
"user": "{{ item.db_user }}",
"password": "{{ item.db_password }}",
"database": "{{ item.db }}"
}
},
"privacy": {
"useTinfoil": true
},
"mail": {
{% if item.email_send == True %}
"transport": "SMTP",
"from": "{{ item.email_from }}",
"options": {
"host": "{{ item.email_host }}",
"port": {{ item.email_port }},
"auth": {
"user": "{{ item.email_user }}",
"pass": "{{ item.email_pass }}"
}
}
{% else %}
"transport": "Direct"
{% endif %}
},
{% if item.custom_portal is defined %}
"portal": {
"url": "{{item.custom_portal}}",
"version": "~1.0.0"
},
{% endif %}
"logging": {
"level": "error",
"transports": [
"stdout"
]
},
"compress": true,
"paths": {
"contentPath": "{{ item.home }}/www/content"
},
"referrerPolicy": "{{ item.referrerpolicy | default('no-referrer') }}"
}