{ {% 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 %} }, "logging": { "path": "/var/log/ghost/{{ item.name }}/", "level": "error", "rotation": { "enabled": true, "count": 15, "period": "1d" }, "transports": [ "file" ] }, "compress": true, "process": "systemd", "paths": { "contentPath": "{{ item.home }}/www/content" } }