]>
Commit | Line | Data |
---|---|---|
e480c0e5 GJ |
1 | server{ |
2 | ||
3 | listen 80; | |
4 | server_name 192.168.240.9; | |
5 | #ssl on; | |
6 | #ssl_certificate /etc/nginx/ssl/fullchain.pem; | |
7 | #ssl_certificate_key /etc/nginx/ssl/privkey.pem; | |
8 | #ssl_protocols TLSv1.2 TLSv1.3; | |
9 | #ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH'; | |
10 | #ssl_ecdh_curve secp384r1; | |
11 | ||
f9430618 | 12 | root /var/www/uguu/dist/public/; |
e480c0e5 GJ |
13 | autoindex on; |
14 | access_log on; | |
15 | index index.html index.php; | |
16 | ||
17 | location ~* \.(css|js|jpg|jpeg|gif|png|ico|xml|eot|woff|woff2|ttf|svg|otf|x-icon|avif|webp|apng)$ { | |
18 | expires 30d; | |
19 | } | |
20 | ||
21 | client_max_body_size 128M; | |
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/php8.0-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 | } |