File: /var/lib/letsencrypt/backups/1729671368.8880856/sabio-new_28
server {
server_name new-sabio.foach.site;
root /var/www/sabiotrade-new/public;
index index.html index.php;
client_max_body_size 20M;
charset utf-8;
location / {
rewrite ^/lp/([^.]*[^/])$ /lp/$1/ redirect;
add_header Content-Security-Policy "default-src 'self' *.checkout.com *.sabiotrade.com www.youtube.com region1.google-analytics.com mc.yandex.ru www.google.com *.hotjar.com *.hotjar.io wss://wsp24.hotjar.com; script-src 'self' 'unsafe-inline' *.checkout.com www.youtube.com connect.facebook.net *.hotjar.io *.hotjar.com cdnjs.cloudflare.com mc.yandex.ru www.googletagmanager.com www.google.com www.gstatic.com 'unsafe-eval'; style-src 'self' fonts.googleapis.com 'unsafe-inline'; font-src 'self' fonts.gstatic.com data:; img-src 'self' www.facebook.com www.googletagmanager.com mc.yandex.ru data:;";
root /var/www/sabiotrade-new/frontend/dist;
try_files $uri $uri.html $uri/index.html index.html;
}
location /admin {
root /var/www/sabiotrade-new/public/;
rewrite ^/admin/(.*)$ /$1 break;
try_files $uri $uri/ /index.php?$args;
}
location /api {
root /var/www/sabiotrade-new/public/;
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php/php8.0-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param APPLICATION_ENV dev;
fastcgi_read_timeout 240;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /404.html;
location ~ /\.(?!well-known).* {
deny all;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/new-sabio.foach.site/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/new-sabio.foach.site/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
#server {
# if ($host = ipsremont.foach.site) {
# return 301 https://$host$request_uri;
# } # managed by Certbot
# listen 80;
# server_name ipsremont.foach.site;
# return 404; # managed by Certbot
#}
server {
if ($host = new-sabio.foach.site) {
return 301 https://$host$request_uri;
} # managed by Certbot
server_name new-sabio.foach.site;
listen 80;
return 404; # managed by Certbot
}