meta.hamburg.freifunk.net und Umstrukturierung

This commit is contained in:
baldo 2015-08-30 17:55:05 +02:00
commit b56b258d91
8 changed files with 42 additions and 14 deletions

View file

@ -12,6 +12,14 @@
- website
- "{{ site }}"
- name: create {{ site }} root
file: path={{ document_root.path }} state=directory owner=www-data group=www-data mode=0755
when: document_root.create
tags:
- nginx
- website
- "{{ site }}"
- name: enable {{ site }} site
file: >
src=/etc/nginx/sites-available/{{ site }}

View file

@ -1,3 +1,4 @@
{% for port in ports %}
server {
include /etc/nginx/include/no_logging.conf;
include /etc/nginx/include/no_dotfiles.conf;
@ -7,11 +8,12 @@ server {
include /etc/nginx/include/listing.conf;
{% endif %}
listen 80;
listen [::]:80;
listen {{port.number}}{% if port.ssl %} ssl{% endif %};
listen [::]:{{port.number}}{% if port.ssl %} ssl{% endif %};
server_name {{ domains | join(" ") }};
root {{ document_root }};
root {{ document_root.path }};
}
{% endfor %}