Spaces:
Running
Running
Update nginx.conf
Browse files- nginx.conf +5 -28
nginx.conf
CHANGED
@@ -1,37 +1,14 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
events {
|
4 |
-
worker_connections 1024;
|
5 |
-
}
|
6 |
|
7 |
http {
|
8 |
-
include mime.types;
|
9 |
-
default_type application/octet-stream;
|
10 |
-
|
11 |
-
# Brotli configuration (only if using Brotli module)
|
12 |
-
brotli on;
|
13 |
-
brotli_comp_level 6;
|
14 |
-
brotli_types text/plain text/css application/javascript application/json image/svg+xml;
|
15 |
-
|
16 |
-
sendfile on;
|
17 |
-
keepalive_timeout 65;
|
18 |
-
|
19 |
server {
|
20 |
-
listen
|
21 |
-
server_name localhost;
|
22 |
|
23 |
-
|
24 |
-
# root /usr/share/nginx/html;
|
25 |
|
26 |
location / {
|
27 |
-
|
28 |
-
|
29 |
-
proxy_set_header Host $host;
|
30 |
-
proxy_set_header X-Real-IP $remote_addr;
|
31 |
-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
32 |
-
proxy_http_version 1.1;
|
33 |
-
proxy_set_header Upgrade $http_upgrade;
|
34 |
-
proxy_set_header Connection "upgrade";
|
35 |
}
|
36 |
}
|
37 |
}
|
|
|
1 |
+
events {}
|
|
|
|
|
|
|
|
|
2 |
|
3 |
http {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
server {
|
5 |
+
listen 7860;
|
|
|
6 |
|
7 |
+
server_name localhost;
|
|
|
8 |
|
9 |
location / {
|
10 |
+
root /usr/share/nginx/html;
|
11 |
+
index index.html;
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
}
|
13 |
}
|
14 |
}
|