X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Fnginx_nuage_server.j2;fp=templates%2Fnginx_nuage_server.j2;h=661950a5d8e0c34666dd88cef65c555424747928;hb=0e7e1f059f943f6617400cc32d155d73b4b4b9a3;hp=3f39e05144f2dbfd1425257949615c65574280ba;hpb=1bf73a13c5876ad0d36edf6baf19a4bd2055eea4;p=lhc%2Fansible.git diff --git a/templates/nginx_nuage_server.j2 b/templates/nginx_nuage_server.j2 index 3f39e05..661950a 100644 --- a/templates/nginx_nuage_server.j2 +++ b/templates/nginx_nuage_server.j2 @@ -5,7 +5,7 @@ map $arg_v $asset_immutable { } server { listen 80; - server_name {{ SITE }}.{{ DOMAIN }}.{{ TLD }}; + server_name {{ SITE }}.{{ DOMAIN }}.{{ TLD }}; #disable_symlinks if_not_owner; # Prevent nginx HTTP Server Detection @@ -15,30 +15,30 @@ server { return 301 https://$server_name$request_uri; - access_log /home/sites/log/nginx/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/access.log main buffer=32k; - error_log /home/sites/log/nginx/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/error.log warn; + access_log /home/sites/log/nginx/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/access.log main buffer=32k; + error_log /home/sites/log/nginx/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/error.log warn; } server { listen 443 ssl http2; - server_name {{ SITE }}.{{ DOMAIN }}.{{ TLD }}; + server_name {{ SITE }}.{{ DOMAIN }}.{{ TLD }}; # Path to the root of your installation - root /home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/nextcloud; + root /home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/nextcloud; disable_symlinks if_not_owner; {% if besoin_https == 'oui' %} - ssl_certificate /etc/letsencrypt/live/{{ SITE }}.{{ DOMAIN }}.{{ TLD }}/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/{{ SITE }}.{{ DOMAIN }}.{{ TLD }}/privkey.pem; + ssl_certificate /etc/letsencrypt/live/{{ SITE }}.{{ DOMAIN }}.{{ TLD }}/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/{{ SITE }}.{{ DOMAIN }}.{{ TLD }}/privkey.pem; {% endif %} - access_log /home/sites/log/nginx/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/access.log main buffer=32k; - error_log /home/sites/log/nginx/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/error.log warn; + access_log /home/sites/log/nginx/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/access.log main buffer=32k; + error_log /home/sites/log/nginx/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/error.log warn; # Prevent nginx HTTP Server Detection server_tokens off; # HSTS settings # WARNING: Only add the preload option once you read about - # the consequences in https://hstspreload.{{ TLD }}/. This option + # the consequences in https://hstspreload.{{ TLD }}/. This option # will add the domain to a hardcoded list that is shipped # in all major browsers and getting removed from this list # could take several months. @@ -88,11 +88,11 @@ server { } location ~ /common-apps/(.*)$ { - alias /home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/common/$1; + alias /home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/common/$1; } location ~ /instance-apps/(.*)$ { - alias /home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/apps/$1; + alias /home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/apps/$1; } # Specify how to handle directories -- specifying `/index.php$request_uri` @@ -165,7 +165,7 @@ server { fastcgi_param modHeadersAvailable true; # Avoid sending the security headers twice fastcgi_param front_controller_active true; # Enable pretty urls - fastcgi_param NEXTCLOUD_CONFIG_DIR /home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/config; + fastcgi_param NEXTCLOUD_CONFIG_DIR /home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/config; fastcgi_pass unix:/run/php{{ php_version}}/fpm/php_{{ SIGLE }}_{{ SITE }}; #fastcgi_intercept_errors on;