1
0
mirror of https://framagit.org/tykayn/date-poll-api synced 2023-08-25 08:23:11 +02:00
This commit is contained in:
Kayn Ty 2021-11-17 11:54:03 +01:00
commit 73555bd539
2 changed files with 11 additions and 0 deletions

View File

@ -7,6 +7,9 @@ server {
try_files $uri /index.php$is_args$args; try_files $uri /index.php$is_args$args;
} }
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
# optionally disable falling back to PHP script for the asset directories; # optionally disable falling back to PHP script for the asset directories;
# nginx will return a 404 error when files are not found instead of passing the # nginx will return a 404 error when files are not found instead of passing the
# request to Symfony (improves performance but Symfony's 404 page is not displayed) # request to Symfony (improves performance but Symfony's 404 page is not displayed)

View File

@ -91,6 +91,14 @@ server {
internal; internal;
} }
error_log /var/log/nginx/framadate-api_error.log;
access_log /var/log/nginx/framadate-api_access.log;
add_header Permissions-Policy "interest-cohort=()";
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
# return 404 for all other php files not matching the front controller # return 404 for all other php files not matching the front controller
# this prevents access to other php files you don't want to be accessible. # this prevents access to other php files you don't want to be accessible.
location ~ \.php$ { location ~ \.php$ {