@@ -4,11 +4,11 @@ server {
44 listen 3000 default_server;
55 listen [::]:3000 default_server;
66 location SUBFOLDER {
7- alias /usr/share/selkies/www /;
7+ alias /usr/share/selkies/web /;
88 index index.html index.htm;
99 try_files $uri $uri/ =404;
1010 }
11- location SUBFOLDERwebsocket {
11+ location /devmode {
1212 proxy_set_header Upgrade $http_upgrade;
1313 proxy_set_header Connection "upgrade";
1414 proxy_set_header Host $host;
@@ -21,9 +21,9 @@ server {
2121 proxy_connect_timeout 3600s;
2222 proxy_buffering off;
2323 client_max_body_size 10M;
24- proxy_pass http://127.0.0.1:CWS ;
24+ proxy_pass http://127.0.0.1:5173 ;
2525 }
26- location /devmode {
26+ location SUBFOLDERwebsocket {
2727 proxy_set_header Upgrade $http_upgrade;
2828 proxy_set_header Connection "upgrade";
2929 proxy_set_header Host $host;
@@ -36,17 +36,21 @@ server {
3636 proxy_connect_timeout 3600s;
3737 proxy_buffering off;
3838 client_max_body_size 10M;
39- proxy_pass http://127.0.0.1:5173 ;
39+ proxy_pass http://127.0.0.1:CWS ;
4040 }
4141 location SUBFOLDERfiles {
4242 fancyindex on;
4343 fancyindex_footer SUBFOLDERnginx/footer.html;
4444 fancyindex_header SUBFOLDERnginx/header.html;
45- alias REPLACE_HOME/Desktop/;
45+ alias REPLACE_DOWNLOADS_PATH/;
46+ if (-f $request_filename) {
47+ add_header Content-Disposition "attachment";
48+ add_header X-Content-Type-Options "nosniff";
49+ }
4650 }
4751 error_page 500 502 503 504 /50x.html;
4852 location = SUBFOLDER50x.html {
49- root /usr/share/selkies/www /;
53+ root /usr/share/selkies/web /;
5054 }
5155}
5256
@@ -58,7 +62,7 @@ server {
5862 ssl_certificate /config/ssl/cert.pem;
5963 ssl_certificate_key /config/ssl/cert.key;
6064 location SUBFOLDER {
61- alias /usr/share/selkies/www /;
65+ alias /usr/share/selkies/web /;
6266 index index.html index.htm;
6367 try_files $uri $uri/ =404;
6468 }
@@ -96,12 +100,14 @@ server {
96100 fancyindex on;
97101 fancyindex_footer SUBFOLDERnginx/footer.html;
98102 fancyindex_header SUBFOLDERnginx/header.html;
99- alias REPLACE_HOME/Desktop/;
103+ alias REPLACE_DOWNLOADS_PATH/;
104+ if (-f $request_filename) {
105+ add_header Content-Disposition "attachment";
106+ add_header X-Content-Type-Options "nosniff";
107+ }
100108 }
101109 error_page 500 502 503 504 /50x.html;
102110 location = SUBFOLDER50x.html {
103- root /usr/share/selkies/www /;
111+ root /usr/share/selkies/web /;
104112 }
105113}
106-
107-
0 commit comments