Spaces:
Paused
Paused
Create nginx.conf
Browse files- nginx.conf +26 -0
nginx.conf
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
error_log /dev/null crit;
|
| 2 |
+
pid /ubuntu/nginx.pid;
|
| 3 |
+
|
| 4 |
+
http {
|
| 5 |
+
include /etc/nginx/mime.types;
|
| 6 |
+
default_type text/html;
|
| 7 |
+
access_log off;
|
| 8 |
+
|
| 9 |
+
server {
|
| 10 |
+
listen 7860;
|
| 11 |
+
access_log off;
|
| 12 |
+
|
| 13 |
+
location / {
|
| 14 |
+
return 200 "Hello World";
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
location /control {
|
| 18 |
+
proxy_redirect off;
|
| 19 |
+
proxy_pass http://127.0.0.1:17860;
|
| 20 |
+
proxy_http_version 1.1;
|
| 21 |
+
proxy_set_header Upgrade $http_upgrade;
|
| 22 |
+
proxy_set_header Connection "upgrade";
|
| 23 |
+
proxy_set_header Host $http_host;
|
| 24 |
+
}
|
| 25 |
+
}
|
| 26 |
+
}
|