mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-02-08 21:41:35 +00:00
Use config.json to render multiple Jinja2 templates
This commit is contained in:
7
data/conf/clamav/config.json
Normal file
7
data/conf/clamav/config.json
Normal file
@@ -0,0 +1,7 @@
|
||||
[
|
||||
{
|
||||
"template": "whitelist.ign2.j2",
|
||||
"output": "/var/lib/clamav/whitelist.ign2",
|
||||
"clean_blank_lines": true
|
||||
}
|
||||
]
|
||||
70
data/conf/dovecot/config.json
Normal file
70
data/conf/dovecot/config.json
Normal file
@@ -0,0 +1,70 @@
|
||||
[
|
||||
{
|
||||
"template": "dovecot-dict-sql-quota.conf.j2",
|
||||
"output": "/etc/dovecot/sql/dovecot-dict-sql-quota.conf"
|
||||
},
|
||||
{
|
||||
"template": "dovecot-dict-sql-userdb.conf.j2",
|
||||
"output": "/etc/dovecot/sql/dovecot-dict-sql-userdb.conf"
|
||||
},
|
||||
{
|
||||
"template": "dovecot-dict-sql-sieve_before.conf.j2",
|
||||
"output": "/etc/dovecot/sql/dovecot-dict-sql-sieve_before.conf"
|
||||
},
|
||||
{
|
||||
"template": "dovecot-dict-sql-sieve_after.conf.j2",
|
||||
"output": "/etc/dovecot/sql/dovecot-dict-sql-sieve_after.conf"
|
||||
},
|
||||
{
|
||||
"template": "mail_plugins.j2",
|
||||
"output": "/etc/dovecot/mail_plugins"
|
||||
},
|
||||
{
|
||||
"template": "mail_plugins_imap.j2",
|
||||
"output": "/etc/dovecot/mail_plugins_imap"
|
||||
},
|
||||
{
|
||||
"template": "mail_plugins_lmtp.j2",
|
||||
"output": "/etc/dovecot/mail_plugins_lmtp"
|
||||
},
|
||||
{
|
||||
"template": "global_sieve_after.sieve.j2",
|
||||
"output": "/var/vmail/sieve/global_sieve_after.sieve"
|
||||
},
|
||||
{
|
||||
"template": "global_sieve_before.sieve.j2",
|
||||
"output": "/var/vmail/sieve/global_sieve_before.sieve"
|
||||
},
|
||||
{
|
||||
"template": "dovecot-master.passwd.j2",
|
||||
"output": "/etc/dovecot/dovecot-master.passwd"
|
||||
},
|
||||
{
|
||||
"template": "dovecot-master.userdb.j2",
|
||||
"output": "/etc/dovecot/dovecot-master.userdb"
|
||||
},
|
||||
{
|
||||
"template": "sieve.creds.j2",
|
||||
"output": "/etc/sogo/sieve.creds"
|
||||
},
|
||||
{
|
||||
"template": "sogo-sso.pass.j2",
|
||||
"output": "/etc/phpfpm/sogo-sso.pass"
|
||||
},
|
||||
{
|
||||
"template": "cron.creds.j2",
|
||||
"output": "/etc/sogo/cron.creds"
|
||||
},
|
||||
{
|
||||
"template": "source_env.sh.j2",
|
||||
"output": "/source_env.sh"
|
||||
},
|
||||
{
|
||||
"template": "maildir_gc.sh.j2",
|
||||
"output": "/usr/local/bin/maildir_gc.sh"
|
||||
},
|
||||
{
|
||||
"template": "dovecot.conf.j2",
|
||||
"output": "/etc/dovecot/dovecot.conf"
|
||||
}
|
||||
]
|
||||
6
data/conf/mysql/config.json
Normal file
6
data/conf/mysql/config.json
Normal file
@@ -0,0 +1,6 @@
|
||||
[
|
||||
{
|
||||
"template": "my.cnf.j2",
|
||||
"output": "/etc/mysql/conf.d/my.cnf"
|
||||
}
|
||||
]
|
||||
22
data/conf/nginx/config.json
Normal file
22
data/conf/nginx/config.json
Normal file
@@ -0,0 +1,22 @@
|
||||
[
|
||||
{
|
||||
"template": "nginx.conf.j2",
|
||||
"output": "/etc/nginx/nginx.conf"
|
||||
},
|
||||
{
|
||||
"template": "sites-default.conf.j2",
|
||||
"output": "/etc/nginx/includes/sites-default.conf"
|
||||
},
|
||||
{
|
||||
"template": "server_name.active.j2",
|
||||
"output": "/etc/nginx/conf.d/server_name.active"
|
||||
},
|
||||
{
|
||||
"template": "listen_plain.active.j2",
|
||||
"output": "/etc/nginx/conf.d/listen_plain.active"
|
||||
},
|
||||
{
|
||||
"template": "listen_ssl.active.j2",
|
||||
"output": "/etc/nginx/conf.d/listen_ssl.active"
|
||||
}
|
||||
]
|
||||
26
data/conf/phpfpm/config.json
Normal file
26
data/conf/phpfpm/config.json
Normal file
@@ -0,0 +1,26 @@
|
||||
[
|
||||
{
|
||||
"template": "opcache-recommended.ini.j2",
|
||||
"output": "/usr/local/etc/php/conf.d/opcache-recommended.ini"
|
||||
},
|
||||
{
|
||||
"template": "pools.conf.j2",
|
||||
"output": "/usr/local/etc/php-fpm.d/z-pools.conf"
|
||||
},
|
||||
{
|
||||
"template": "other.ini.j2",
|
||||
"output": "/usr/local/etc/php/conf.d/zzz-other.ini"
|
||||
},
|
||||
{
|
||||
"template": "upload.ini.j2",
|
||||
"output": "/usr/local/etc/php/conf.d/upload.ini"
|
||||
},
|
||||
{
|
||||
"template": "session_store.ini.j2",
|
||||
"output": "/usr/local/etc/php/conf.d/session_store.ini"
|
||||
},
|
||||
{
|
||||
"template": "0081-custom-mailcow.css.j2",
|
||||
"output": "/web/css/build/0081-custom-mailcow.css"
|
||||
}
|
||||
]
|
||||
110
data/conf/postfix/config.json
Normal file
110
data/conf/postfix/config.json
Normal file
@@ -0,0 +1,110 @@
|
||||
[
|
||||
{
|
||||
"template": "aliases.j2",
|
||||
"output": "/etc/aliases"
|
||||
},
|
||||
{
|
||||
"template": "mysql_relay_ne.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_relay_ne.cf"
|
||||
},
|
||||
{
|
||||
"template": "mysql_relay_recipient_maps.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_relay_recipient_maps.cf"
|
||||
},
|
||||
{
|
||||
"template": "mysql_tls_policy_override_maps.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_tls_policy_override_maps.cf"
|
||||
},
|
||||
{
|
||||
"template": "mysql_tls_enforce_in_policy.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_tls_enforce_in_policy.cf"
|
||||
},
|
||||
{
|
||||
"template": "mysql_sender_dependent_default_transport_maps.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_sender_dependent_default_transport_maps.cf"
|
||||
},
|
||||
{
|
||||
"template": "mysql_transport_maps.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_transport_maps.cf"
|
||||
},
|
||||
{
|
||||
"template": "mysql_virtual_resource_maps.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_virtual_resource_maps.cf"
|
||||
},
|
||||
{
|
||||
"template": "mysql_sasl_passwd_maps_sender_dependent.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_sasl_passwd_maps_sender_dependent.cf"
|
||||
},
|
||||
{
|
||||
"template": "mysql_sasl_passwd_maps_transport_maps.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_sasl_passwd_maps_transport_maps.cf"
|
||||
},
|
||||
{
|
||||
"template": "mysql_virtual_alias_domain_maps.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_virtual_alias_domain_maps.cf"
|
||||
},
|
||||
{
|
||||
"template": "mysql_virtual_alias_maps.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_virtual_alias_maps.cf"
|
||||
},
|
||||
{
|
||||
"template": "mysql_recipient_bcc_maps.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_recipient_bcc_maps.cf"
|
||||
},
|
||||
{
|
||||
"template": "mysql_sender_bcc_maps.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_sender_bcc_maps.cf"
|
||||
},
|
||||
{
|
||||
"template": "mysql_recipient_canonical_maps.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_recipient_canonical_maps.cf"
|
||||
},
|
||||
{
|
||||
"template": "mysql_virtual_domains_maps.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_virtual_domains_maps.cf"
|
||||
},
|
||||
{
|
||||
"template": "mysql_virtual_mailbox_maps.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_virtual_mailbox_maps.cf"
|
||||
},
|
||||
{
|
||||
"template": "mysql_virtual_relay_domain_maps.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_virtual_relay_domain_maps.cf"
|
||||
},
|
||||
{
|
||||
"template": "mysql_virtual_sender_acl.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_virtual_sender_acl.cf"
|
||||
},
|
||||
{
|
||||
"template": "mysql_mbr_access_maps.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_mbr_access_maps.cf"
|
||||
},
|
||||
{
|
||||
"template": "mysql_virtual_spamalias_maps.cf.j2",
|
||||
"output": "/opt/postfix/conf/sql/mysql_virtual_spamalias_maps.cf"
|
||||
},
|
||||
{
|
||||
"template": "sni.map.j2",
|
||||
"output": "/opt/postfix/conf/sni.map"
|
||||
},
|
||||
{
|
||||
"template": "main.cf.j2",
|
||||
"output": "/opt/postfix/conf/main.cf"
|
||||
},
|
||||
{
|
||||
"template": "dns_blocklists.cf.j2",
|
||||
"output": "/opt/postfix/conf/dns_blocklists.cf"
|
||||
},
|
||||
{
|
||||
"template": "dns_reply.map.j2",
|
||||
"output": "/opt/postfix/conf/dns_reply.map"
|
||||
},
|
||||
{
|
||||
"template": "custom_postscreen_whitelist.cidr.j2",
|
||||
"output": "/opt/postfix/conf/custom_postscreen_whitelist.cidr"
|
||||
},
|
||||
{
|
||||
"template": "custom_transport.pcre.j2",
|
||||
"output": "/opt/postfix/conf/custom_transport.pcre"
|
||||
}
|
||||
]
|
||||
30
data/conf/rspamd/config.json
Normal file
30
data/conf/rspamd/config.json
Normal file
@@ -0,0 +1,30 @@
|
||||
[
|
||||
{
|
||||
"template": "mailcow_networks.map.j2",
|
||||
"output": "/etc/rspamd/custom/mailcow_networks.map"
|
||||
},
|
||||
{
|
||||
"template": "dovecot_trusted.map.j2",
|
||||
"output": "/etc/rspamd/custom/dovecot_trusted.map"
|
||||
},
|
||||
{
|
||||
"template": "rspamd_trusted.map.j2",
|
||||
"output": "/etc/rspamd/custom/rspamd_trusted.map"
|
||||
},
|
||||
{
|
||||
"template": "external_services.conf.j2",
|
||||
"output": "/etc/rspamd/local.d/external_services.conf"
|
||||
},
|
||||
{
|
||||
"template": "redis.conf.j2",
|
||||
"output": "/etc/rspamd/local.d/redis.conf"
|
||||
},
|
||||
{
|
||||
"template": "dqs-rbl.conf.j2",
|
||||
"output": "/etc/rspamd/custom/dqs-rbl.conf"
|
||||
},
|
||||
{
|
||||
"template": "worker-controller-password.inc.j2",
|
||||
"output": "/etc/rspamd/override.d/worker-controller-password.inc"
|
||||
}
|
||||
]
|
||||
10
data/conf/sogo/config.json
Normal file
10
data/conf/sogo/config.json
Normal file
@@ -0,0 +1,10 @@
|
||||
[
|
||||
{
|
||||
"template": "sogod.plist.j2",
|
||||
"output": "/var/lib/sogo/GNUstep/Defaults/sogod.plist"
|
||||
},
|
||||
{
|
||||
"template": "UIxTopnavToolbar.wox.j2",
|
||||
"output": "/usr/lib/GNUstep/SOGo/Templates/UIxTopnavToolbar.wox"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user