]> jfr.im git - uguu.git/blob - templates/nginx_confs/X.Y.conf
Update X.Y.conf
[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 ssl_buffer_size 2k;
11 ssl_session_tickets off;
12
13 root /var/www/uguu/dist/;
14 autoindex off;
15 access_log off;
16 index index.html index.php;
17 etag on;
18
19 location ~* \.(?:css|js|jpg|jpeg|gif|png|ico|xml|eot|woff|woff2|ttf|svg|otf)$ {
20 add_header Cache-Control "public";
21 expires 30d;
22 }
23
24 gzip on;
25 gzip_min_length 1000;
26 gzip_comp_level 6;
27 gzip_proxied any;
28 gzip_types text/css text/js text/javascript application/javascript application/x-javascript;
29
30 location ~* \.php$ {
31 fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
32 fastcgi_intercept_errors on;
33 fastcgi_index index.php;
34 fastcgi_split_path_info ^(.+\.php)(.*)$;
35 include fastcgi_params;
36 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
37 }
38
39 }