Spaces:
Build error
Build error
Upload 2 files
Browse files
etc/nginx/conf.d/http/reverse-proxy.conf
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
server {
|
| 2 |
+
listen 80;
|
| 3 |
+
location / {
|
| 4 |
+
proxy_pass http://localhost;
|
| 5 |
+
}
|
| 6 |
+
}
|
| 7 |
+
|
| 8 |
+
server {
|
| 9 |
+
listen 7778;
|
| 10 |
+
location / {
|
| 11 |
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
| 12 |
+
proxy_set_header Host $host;
|
| 13 |
+
|
| 14 |
+
proxy_pass http://localhost:7778;
|
| 15 |
+
|
| 16 |
+
proxy_http_version 1.1;
|
| 17 |
+
proxy_set_header Upgrade $http_upgrade;
|
| 18 |
+
proxy_set_header Connection "upgrade";
|
| 19 |
+
}
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
server {
|
| 23 |
+
listen 7860;
|
| 24 |
+
location / {
|
| 25 |
+
root /usr/share/nginx/html-page;
|
| 26 |
+
index index.html;
|
| 27 |
+
}
|
| 28 |
+
}
|
etc/nginx/conf.d/stream/reverse-proxy-udp.conf
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
server {
|
| 2 |
+
listen 7777 udp;
|
| 3 |
+
proxy_pass localhost:7777;
|
| 4 |
+
}
|