64 lines
1.6 KiB
Plaintext
Executable File
64 lines
1.6 KiB
Plaintext
Executable File
server {
|
|
server_name staging.netgescon.it;
|
|
|
|
root /var/www/netgescon/public;
|
|
index index.php index.html;
|
|
|
|
location /.well-known/acme-challenge/ {
|
|
allow all;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
|
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
|
|
fastcgi_read_timeout 300;
|
|
}
|
|
|
|
location ~ /\.(?!well-known).* {
|
|
deny all;
|
|
}
|
|
|
|
access_log /var/log/nginx/netgescon_access.log;
|
|
error_log /var/log/nginx/netgescon_error.log;
|
|
|
|
listen [::]:8443 ssl ipv6only=on;
|
|
listen 8443 ssl;
|
|
ssl_certificate /etc/letsencrypt/live/staging.netgescon.it/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/staging.netgescon.it/privkey.pem;
|
|
include /etc/letsencrypt/options-ssl-nginx.conf;
|
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
|
}
|
|
|
|
server {
|
|
server_name staging.netgescon.it;
|
|
|
|
root /var/www/netgescon/public;
|
|
index index.php index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
|
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
|
|
fastcgi_read_timeout 300;
|
|
}
|
|
|
|
location ~ /\.(?!well-known).* {
|
|
deny all;
|
|
}
|
|
|
|
access_log /var/log/nginx/netgescon_access.log;
|
|
error_log /var/log/nginx/netgescon_error.log;
|
|
|
|
listen 8088;
|
|
listen [::]:8088;
|
|
}
|