@@ -4,57 +4,59 @@ server {
44 root {{NGINX_WEBROOT}}/public;
55 index index.php ;
66
7+ include {{NGINX_HEADER_FILE}};
8+
79 location / {
810 try_files $uri $uri/ /index.php?$query_string;
911 }
1012
1113 location ~ \.php$ {
12- include /etc/nginx/snippets/php-fpm.conf;
13- try_files $uri =404;
14- fastcgi_split_path_info ^(.+\.php)(/.+)$;
15- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
16- fastcgi_param SNAPPDF_EXECUTABLE_PATH '/usr/bin/chromium-browser';
17- fastcgi_index index.php;
18- include fastcgi_params;
14+ include /etc/nginx/snippets/server.available/ php-fpm/www .conf;
15+ try_files $uri =404;
16+ fastcgi_split_path_info ^(.+\.php)(/.+)$;
17+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
18+ fastcgi_param SNAPPDF_EXECUTABLE_PATH '/usr/bin/chromium-browser';
19+ fastcgi_index index.php;
20+ include fastcgi_params;
1921 }
2022
2123 location ~* \.pdf$ {
22- add_header Cache-Control no-store;
24+ add_header Cache-Control no-store;
2325 }
2426
2527 location ~* ^/storage/attachment/ {
26- expires 1M;
27- access_log off;
28- try_files $uri $uri/ /index.php?$query_string;
28+ expires 1M;
29+ access_log off;
30+ try_files $uri $uri/ /index.php?$query_string;
2931 }
3032
3133 if (!-e $request_filename) {
3234 rewrite ^(.+)$ /index.php?q= last;
3335 }
3436
3537 location ~* ^/(?:css|js)/.*\.(?:css|js)$ {
36- expires 2d;
37- access_log off;
38- add_header Cache-Control "public, must-revalidate";
38+ expires 2d;
39+ access_log off;
40+ add_header Cache-Control "public, must-revalidate";
3941 }
4042
4143 location ~* \.pdf$ {
42- add_header Cache-Control no-store;
44+ add_header Cache-Control no-store;
4345 }
4446
4547 location ~* ^/(?:css|fonts|img|installer|js|modules|[^\\\]+\..*)$ {
46- expires 1M;
47- access_log off;
48- add_header Cache-Control "public";
48+ expires 1M;
49+ access_log off;
50+ add_header Cache-Control "public";
4951 }
5052
5153 location ~ /\. {
52- deny all;
54+ deny all;
5355 }
5456
55- ### Don't edit past here
56- include /etc/nginx/snippets/site_optimization.conf;
57- include /etc/nginx/snippets/exploit_protection.conf;
57+ # ### Don't edit past here
58+ # include /etc/nginx/snippets/site_optimization.conf;
59+ # include /etc/nginx/snippets/exploit_protection.conf;
5860}
5961
6062
0 commit comments