Konfiguration von media und meta als statische Sites.
This commit is contained in:
parent
3c917ce4b2
commit
b0d42a931d
6 changed files with 94 additions and 6 deletions
25
roles/web-server/static/templates/site.j2
Normal file
25
roles/web-server/static/templates/site.j2
Normal file
|
@ -0,0 +1,25 @@
|
|||
#
|
||||
# ACTHUNG:
|
||||
#
|
||||
# Wird via Ansible konfiguriert. Bitte nicht manuell ändern!
|
||||
#
|
||||
|
||||
{% for port in item[1].ports %}
|
||||
server {
|
||||
include /etc/nginx/include/no_logging.conf;
|
||||
include /etc/nginx/include/no_dotfiles.conf;
|
||||
include /etc/nginx/include/no_symlinks.conf;
|
||||
|
||||
{% if item[1].listing %}
|
||||
include /etc/nginx/include/listing.conf;
|
||||
{% endif %}
|
||||
|
||||
listen {{ port.number }}{% if port.ssl %} ssl{% endif %};
|
||||
listen [::]:{{ port.number }}{% if port.ssl %} ssl{% endif %};
|
||||
|
||||
server_name {{ item[1].domains | join(" ") }};
|
||||
|
||||
root {{ item[1].document_root.path }};
|
||||
}
|
||||
|
||||
{% endfor %}
|
Loading…
Add table
Add a link
Reference in a new issue