2022-04-17 13:14:43 +00:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name localhost;
|
|
|
|
return 301 https://localhost$request_uri;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name filesdomain;
|
|
|
|
return 301 https://filesdomain$request_uri;
|
|
|
|
}
|
|
|
|
|
2022-04-07 09:37:49 +00:00
|
|
|
server{
|
|
|
|
|
2022-04-17 13:14:43 +00:00
|
|
|
listen 443 ssl;
|
2022-04-07 09:37:49 +00:00
|
|
|
server_name localhost;
|
2022-04-17 13:14:43 +00:00
|
|
|
ssl on;
|
|
|
|
ssl_certificate /etc/nginx/ssl/fullchain.pem;
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/privkey.pem;
|
|
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
|
|
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
|
|
|
|
ssl_ecdh_curve secp384r1;
|
2022-04-07 09:37:49 +00:00
|
|
|
|
|
|
|
root /var/www/uguu/dist/;
|
|
|
|
autoindex on;
|
|
|
|
access_log on;
|
|
|
|
index index.html index.php;
|
|
|
|
|
|
|
|
location ~* \.(css|js|jpg|jpeg|gif|png|ico|xml|eot|woff|woff2|ttf|svg|otf|x-icon|avif|webp|apng)$ {
|
|
|
|
expires 30d;
|
|
|
|
}
|
|
|
|
|
|
|
|
gzip on;
|
|
|
|
gzip_min_length 1000;
|
|
|
|
gzip_comp_level 6;
|
|
|
|
gzip_proxied any;
|
|
|
|
gzip_types text/css text/js text/javascript application/javascript application/x-javascript;
|
|
|
|
|
|
|
|
location ~* \.php$ {
|
|
|
|
fastcgi_pass unix:/var/run/php/php8.0-fpm.sock;
|
|
|
|
fastcgi_intercept_errors on;
|
|
|
|
fastcgi_index index.php;
|
|
|
|
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
|
|
|
include fastcgi_params;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
}
|
2022-04-17 13:14:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 443 ssl;
|
|
|
|
server_name filesdomain;
|
|
|
|
|
|
|
|
ssl on;
|
|
|
|
ssl_certificate /etc/nginx/ssl/fullchain.pem;
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/privkey.pem;
|
|
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
|
|
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
|
|
|
|
ssl_ecdh_curve secp384r1;
|
|
|
|
|
|
|
|
root /var/www/files/;
|
|
|
|
autoindex off;
|
|
|
|
access_log off;
|
|
|
|
index index.html;
|
|
|
|
}
|