53 lines
1.2 KiB
Plaintext
53 lines
1.2 KiB
Plaintext
#
|
|
# This section is commented out to make it possible to run NGINX without errors
|
|
# to generate TLS/SSL certificate via CertBot (see README.md)
|
|
#
|
|
# server {
|
|
# listen 443 default_server ssl;
|
|
# listen [::]:443 ssl default_server;
|
|
|
|
# server_name domain.zone;
|
|
|
|
# root /var/www/huesos/mirzaev/huesos/system/public;
|
|
|
|
# index index.php;
|
|
|
|
# ssl_certificate /etc/letsencrypt/live/domain.zone/fullchain.pem;
|
|
# ssl_certificate_key /etc/letsencrypt/live/domain.zone/privkey.pem;
|
|
# include /etc/letsencrypt/options-ssl-nginx.conf;
|
|
# ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
|
|
|
# location / {
|
|
# try_files $uri $uri/ /index.php?$query_string;
|
|
# }
|
|
|
|
# location /api/cdek {
|
|
# rewrite ^/api/cdek(.*)$ /$1 break;
|
|
# index cdek.php;
|
|
# }
|
|
|
|
# location ~ /(?<type>categories|products) {
|
|
# root /var/www/huesos/mirzaev/huesos/system/storage;
|
|
# try_files $uri =404;
|
|
# }
|
|
|
|
# location ~ \.php$ {
|
|
# include snippets/fastcgi-php.conf;
|
|
# fastcgi_pass unix:/run/php/php8.4-fpm.sock;
|
|
# }
|
|
# }
|
|
|
|
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
|
|
server_name domain.zone;
|
|
|
|
if ($host = domain.zone) {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
return 404;
|
|
}
|
|
|