2
Some checks are pending
Deploy / deploy (push) Waiting to run

This commit is contained in:
ssww23
2026-03-17 02:13:35 +03:00
parent 0ee9f05416
commit f2f4e2cdd7
12 changed files with 45 additions and 41 deletions

View File

@@ -0,0 +1,46 @@
server {
listen 80;
listen [::]:80;
server_name tehnobox.shop www.tehnobox.shop;
root /var/www/tehnobox/public;
index index.php;
charset utf-8;
client_max_body_size 20m;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
location ^~ /.well-known/acme-challenge/ {
default_type "text/plain";
try_files $uri =404;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico {
access_log off;
log_not_found off;
}
location = /robots.txt {
access_log off;
log_not_found off;
}
error_page 404 /index.php;
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
fastcgi_pass unix:/run/php/php8.2-fpm.sock;
fastcgi_read_timeout 60s;
}
location ~ /\.(?!well-known).* {
deny all;
}
}