]> jfr.im git - uguu.git/blob - templates/nginx_confs/X.Y.conf
Update README.md
[uguu.git] / templates / nginx_confs / X.Y.conf
1 server{
2 listen 443 ssl http2;
3 server_name www.X.Y X.Y;
4 ssl on;
5 ssl_certificate /etc/letsencrypt/live/X.Y/fullchain.pem;
6 ssl_certificate_key /etc/letsencrypt/live/X.Y/privkey.pem;
7 ssl_protocols TLSv1.2 TLSv1.3;
8 ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
9 ssl_ecdh_curve secp384r1;
10
11 root /var/www/uguu/dist/;
12 autoindex off;
13 access_log off;
14 index index.html index.php;
15 etag on;
16
17 location ~* \.(css|js|jpg|jpeg|gif|png|ico|xml|eot|woff|woff2|ttf|svg|otf|x-icon|avif|webp|apng|min.js|min.css)$ {
18 add_header Cache-Control "public";
19 expires 30d;
20 }
21
22 gzip on;
23 gzip_min_length 1000;
24 gzip_comp_level 6;
25 gzip_proxied any;
26 gzip_types text/css text/js text/javascript application/javascript application/x-javascript;
27
28 location ~* \.php$ {
29 fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
30 fastcgi_intercept_errors on;
31 fastcgi_index index.php;
32 fastcgi_split_path_info ^(.+\.php)(.*)$;
33 include fastcgi_params;
34 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
35 }
36
37 }