]> jfr.im git - uguu.git/blob - docker/uguu.conf
docker support added
[uguu.git] / docker / uguu.conf
1 server {
2 listen 80;
3 server_name localhost;
4 return 301 https://localhost$request_uri;
5 }
6
7 server {
8 listen 80;
9 server_name filesdomain;
10 return 301 https://filesdomain$request_uri;
11 }
12
13 server{
14
15 listen 443 ssl;
16 server_name localhost;
17 ssl on;
18 ssl_certificate /etc/nginx/ssl/fullchain.pem;
19 ssl_certificate_key /etc/nginx/ssl/privkey.pem;
20 ssl_protocols TLSv1.2 TLSv1.3;
21 ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
22 ssl_ecdh_curve secp384r1;
23
24 root /var/www/uguu/dist/;
25 autoindex on;
26 access_log on;
27 index index.html index.php;
28
29 location ~* \.(css|js|jpg|jpeg|gif|png|ico|xml|eot|woff|woff2|ttf|svg|otf|x-icon|avif|webp|apng)$ {
30 expires 30d;
31 }
32
33 gzip on;
34 gzip_min_length 1000;
35 gzip_comp_level 6;
36 gzip_proxied any;
37 gzip_types text/css text/js text/javascript application/javascript application/x-javascript;
38
39 location ~* \.php$ {
40 fastcgi_pass unix:/var/run/php/php8.0-fpm.sock;
41 fastcgi_intercept_errors on;
42 fastcgi_index index.php;
43 fastcgi_split_path_info ^(.+\.php)(.*)$;
44 include fastcgi_params;
45 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
46 }
47 }
48
49 server {
50 listen 443 ssl;
51 server_name filesdomain;
52
53 ssl on;
54 ssl_certificate /etc/nginx/ssl/fullchain.pem;
55 ssl_certificate_key /etc/nginx/ssl/privkey.pem;
56 ssl_protocols TLSv1.2 TLSv1.3;
57 ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
58 ssl_ecdh_curve secp384r1;
59
60 root /var/www/files/;
61 autoindex off;
62 access_log off;
63 index index.html;
64 }