ansible-config/roles/hopglass-frontend/templates/nginx-site.j2

34 lines
860 B
Plaintext
Raw Normal View History

2018-11-03 00:00:16 +01:00
{% if hopglass_frontend_tls_crt is defined %}
server {
2018-11-05 21:30:34 +01:00
server_name map.hamburg.freifunk.net hopglass.hamburg.freifunk.net;
2018-11-03 00:00:16 +01:00
listen 443 ssl;
listen [::]:443 ssl;
ssl_certificate {{ hopglass_frontend_tls_crt }};
ssl_certificate_key {{ hopglass_frontend_tls_key }};
include include/no_logging.conf;
include include/ssl_common_headers.conf;
gzip on;
gzip_types application/json;
root {{ hopglass_frontend_path }}/build;
}
{% endif %}
server {
2018-11-05 21:30:34 +01:00
server_name map.hamburg.freifunk.net hopglass.hamburg.freifunk.net;
2018-11-03 00:00:16 +01:00
listen 80;
listen [::]:80;
include include/letsencrypt.conf;
include include/no_logging.conf;
{% if hopglass_frontend_tls_crt is defined %}
include include/ssl.rewrite;
{% else %}
gzip on;
gzip_types application/json;
root {{ hopglass_frontend_path }}/build;
{% endif %}
}