ansible-ffibk/roles/service-nginx-openlayers/templates/openlayers_vhost.conf.j2

31 lines
870 B
Text
Raw Normal View History

2019-02-13 11:40:25 +01:00
server {
listen 80;
listen [::]:80;
server_name {{ http_openlayers_external }} {{ http_openlayers_internal }};
include /etc/nginx/snippets/gzip.conf;
include /etc/nginx/snippets/letsencrypt-acme-challenge.conf;
root {{ openlayers_path }};
location / {
autoindex on;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name {{ http_openlayers_external }} {{ http_openlayers_internal }};
ssl_certificate /etc/nginx/ssl/{{ inventory_hostname_short }}.{{ http_domain_external }}/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/{{ inventory_hostname_short }}.{{ http_domain_external }}/privkey.pem;
include /etc/nginx/snippets/gzip.conf;
include /etc/nginx/snippets/letsencrypt-acme-challenge.conf;
root {{ openlayers_path }};
location / {
autoindex on;
}
}