]>
Commit | Line | Data |
---|---|---|
89c544a9 GJ |
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 | ||
264033d1 | 18 | location ~* \.(?:css|js|jpg|jpeg|gif|png|ico|xml|eot|woff|woff2|ttf|svg|otf)$ { |
e9d9f73c GJ |
19 | add_header Cache-Control "no-cache, public, must-revalidate, proxy-revalidate"; |
20 | } | |
89c544a9 | 21 | |
e9d9f73c GJ |
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; | |
89c544a9 GJ |
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 | ||
264033d1 | 37 | } |