improves nginx conf to deploy on coolify

This commit is contained in:
sabelo 2024-07-29 01:26:11 -03:00
parent 8cad33e3c7
commit 24e7fad820

View File

@ -21,23 +21,24 @@ http {
tcp_nopush on; tcp_nopush on;
server_names_hash_bucket_size 128; # this seems to be required for some vhosts server_names_hash_bucket_size 128; # this seems to be required for some vhosts
server { server {
listen 80; listen 80;
server_name ggdworkshop.cmat.edu.uy; server_name localhost;
index index.php index.html index.html; index index.php index.html index.html;
error_log /var/log/nginx/ggdworkshop/error.log; add_header X-Frame-Options "SAMEORIGIN";
access_log /var/log/nginx/ggdworkshop/access.log; add_header X-Content-Type-Options "nosniff";
root /usr/share/nginx/sites/ggdworkshop/public; charset utf-8;
location / { root /app/public;
try_files $uri /index.php$is_args$args; location / {
} try_files $uri /index.php$is_args$args;
location ~ \.php$ { }
try_files $uri =404; location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$; try_files $uri =404;
fastcgi_pass 127.0.0.1:9000; fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php; fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_index index.php;
include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
} include fastcgi_params;
} }
}
} }