nyanya
commited on
Commit
•
139f093
1
Parent(s):
1b398dc
fix
Browse files- nginx.conf +2 -1
- start_server.sh +2 -1
nginx.conf
CHANGED
@@ -20,7 +20,8 @@ server {
|
|
20 |
|
21 |
location /code/ {
|
22 |
# Serve GRADIO 8080
|
23 |
-
|
|
|
24 |
proxy_http_version 1.1;
|
25 |
proxy_set_header Upgrade $http_upgrade;
|
26 |
proxy_set_header Connection 'upgrade';
|
|
|
20 |
|
21 |
location /code/ {
|
22 |
# Serve GRADIO 8080
|
23 |
+
rewrite /code/(.*) /$1 break;
|
24 |
+
proxy_pass http://localhost:8080;
|
25 |
proxy_http_version 1.1;
|
26 |
proxy_set_header Upgrade $http_upgrade;
|
27 |
proxy_set_header Connection 'upgrade';
|
start_server.sh
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
-
ssh -o StrictHostKeyChecking=no -R nya:80:localhost:7860 tunne.link -p8043 &
|
|
|
4 |
|
5 |
/app/.npm-global/bin/serve . -l 8080 &
|
6 |
|
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
+
#ssh -o StrictHostKeyChecking=no -R nya:80:localhost:7860 tunne.link -p8043 &
|
4 |
+
autossh -M 0 -o "StrictHostKeyChecking=no" -R nya:80:localhost:7860 tunne.link -p8043
|
5 |
|
6 |
/app/.npm-global/bin/serve . -l 8080 &
|
7 |
|