dataset/seed/piwigo/templates/piwigo.nginx.conf

29 lines
1.1 KiB
Text
Raw Permalink Normal View History

2022-08-19 20:30:13 +02:00
# To allow POST on static pages
error_page 405 =200 $uri;
2022-05-04 10:29:03 +02:00
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains;';
add_header Referrer-Policy no-referrer always;
2022-08-19 20:30:13 +02:00
2023-06-23 08:12:05 +02:00
{% for location in general.piwigo.piwigo_locations %}
location {{ location }} {
{% if location == '/' %}
root {% if True -%}{% endif -%}
{% else %}
alias {% if True -%}{% endif -%}
{% endif %}
2022-08-19 20:30:13 +02:00
/usr/local/share/piwigo;
2022-05-04 10:29:03 +02:00
index index.php;
location ~ ^(?<script_name>.+?\.php)(?<path_info>/.*)?$ {
fastcgi_pass php-fpm;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include fastcgi_params;
2022-04-28 21:48:16 +02:00
}
}
2023-06-23 08:12:05 +02:00
{% endfor %}