Spaces:
Paused
Paused
luminoussg
commited on
Commit
•
e1bcbdf
1
Parent(s):
eec81fb
Create nginx.conf
Browse files- nginx.conf +17 -0
nginx.conf
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
worker_processes 1;
|
2 |
+
|
3 |
+
events { worker_connections 1024; }
|
4 |
+
|
5 |
+
http {
|
6 |
+
server {
|
7 |
+
listen 80;
|
8 |
+
|
9 |
+
location / {
|
10 |
+
proxy_pass http://gradio_app:7860;
|
11 |
+
proxy_set_header Host $host;
|
12 |
+
proxy_set_header X-Real-IP $remote_addr;
|
13 |
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
14 |
+
proxy_set_header X-Forwarded-Proto $scheme;
|
15 |
+
}
|
16 |
+
}
|
17 |
+
}
|