render apache config with spaces instead of tabs, as the indent filter apparently doesnt support tabs...

This commit is contained in:
s3lph 2021-04-26 02:09:22 +02:00
parent df32421381
commit 263262341a

View file

@ -3,22 +3,24 @@
{% if site.http_enabled | default(apache2_vhost_http_enabled) %}
<VirtualHost *:80>
ServerAdmin {{ site.serveradmin | default(apache2_vhost_serveradmin) }}
ServerName {{ name }}
ServerAdmin {{ site.serveradmin | default(apache2_vhost_serveradmin) }}
ServerName {{ name }}
{% for alias in site.aliases | default(apache2_vhost_serveraliases) %}
ServerAlias {{ alias }}
ServerAlias {{ alias }}
{% endfor %}
LogLevel {{ site.loglevel | default(apache2_vhost_loglevel) }}
ErrorLog {{ site.errorlog | default(apache2_vhost_errorlog) }}
CustomLog {{ site.accesslog | default(apache2_vhost_accesslog) }}
LogLevel {{ site.loglevel | default(apache2_vhost_loglevel) }}
ErrorLog {{ site.errorlog | default(apache2_vhost_errorlog) }}
CustomLog {{ site.accesslog | default(apache2_vhost_accesslog) }}
{% if site.http_redirect_to_https | default(apache2_vhost_http_redirect_to_https) %}
Redirect permanent / https://{{ name }}/
{% else %}
DocumentRoot {{ site.documentroot | default(apache2_vhost_documentroot) }}
Redirect permanent / https://{{ name }}/
{% else %}
DocumentRoot {{ site.documentroot | default(apache2_vhost_documentroot) }}
{{ site.additional_config | indent(4) }}
{{ site.additional_config | indent(8) }}
{% endif %}
</VirtualHost>
@ -28,28 +30,28 @@
{% if site.https_enabled | default(apache2_vhost_https_enabled) %}
<VirtualHost *:443>
ServerAdmin {{ site.serveradmin | default(apache2_vhost_serveradmin) }}
ServerName {{ name }}
ServerAdmin {{ site.serveradmin | default(apache2_vhost_serveradmin) }}
ServerName {{ name }}
{% for alias in site.aliases | default(apache2_vhost_serveraliases) %}
ServerAlias {{ alias }}
ServerAlias {{ alias }}
{% endfor %}
LogLevel {{ site.loglevel | default(apache2_vhost_loglevel) }}
ErrorLog {{ site.errorlog | default(apache2_vhost_errorlog) }}
CustomLog {{ site.accesslog | default(apache2_vhost_accesslog) }}
LogLevel {{ site.loglevel | default(apache2_vhost_loglevel) }}
ErrorLog {{ site.errorlog | default(apache2_vhost_errorlog) }}
CustomLog {{ site.accesslog | default(apache2_vhost_accesslog) }}
SSLEngine on
SSLEngine on
{% if certfile_exists and keyfile_exists %}
SSLCertificateFile {{ site.tls_certfile | default(apache2_tls_certfile) }}
SSLCertificateKeyFile {{ site.tls_keyfile | default(apache2_tls_keyfile) }}
SSLCertificateFile {{ site.tls_certfile | default(apache2_tls_certfile) }}
SSLCertificateKeyFile {{ site.tls_keyfile | default(apache2_tls_keyfile) }}
{% else %}
SSLCertificateFile {{ apache2_tls_noacme_fallback_certfile }}
SSLCertificateKeyFile {{ apache2_tls_noacme_fallback_keyfile }}
SSLCertificateFile {{ apache2_tls_noacme_fallback_certfile }}
SSLCertificateKeyFile {{ apache2_tls_noacme_fallback_keyfile }}
{% endif %}
DocumentRoot {{ site.documentroot | default(apache2_vhost_documentroot) }}
DocumentRoot {{ site.documentroot | default(apache2_vhost_documentroot) }}
{{ site.additional_config | indent(8) }}
{{ site.additional_config | indent(4) }}
</VirtualHost>
{% endif %}