blob: 92252445ddf7dacbfc9d27a6fd86b15d72e6f702 (
plain) (
tree)
|
|
# managed by Ansible
types {
{% for type in httpd__supported_types %}
{{ type }}
{% endfor %}
}
server "default" {
listen on * port 8888
log style {{ httpd__log_format }}
# acme tls challenge
location "/.well-known/acme-challenge/*" {
root "/acme"
request strip 2
}
# redirection
location * {
block return 302 "https://$HTTP_HOST$REQUEST_URI"
}
}
{% for item in httpd__rules %}
{% if item.extra.type is defined and item.extra.type == "static" %}
server "{{ item.domain }}" {
listen on localhost port {{ item.port }}
log style {{ httpd__log_format }}
root "{{ httpd_pre__chroot_sites_dir }}/{{ item.domain }}"
}
{% endif %}
{% endfor %}
{% for file in httpd__configuration_files.files %}
include "{{ file.path }}"
{% endfor %}
|