Spaces:
Paused
Paused
Automated deployment update from ML build
Browse files- config/nginx.conf.template +2 -2
- services/gost.py +1 -1
config/nginx.conf.template
CHANGED
|
@@ -48,10 +48,10 @@ http {
|
|
| 48 |
}
|
| 49 |
|
| 50 |
location /gost-bridge {
|
| 51 |
-
proxy_pass http://127.0.0.1:6790
|
| 52 |
proxy_http_version 1.1;
|
| 53 |
proxy_set_header Upgrade $http_upgrade;
|
| 54 |
-
proxy_set_header Connection
|
| 55 |
proxy_set_header Host $host;
|
| 56 |
proxy_read_timeout 86400s;
|
| 57 |
proxy_send_timeout 86400s;
|
|
|
|
| 48 |
}
|
| 49 |
|
| 50 |
location /gost-bridge {
|
| 51 |
+
proxy_pass http://127.0.0.1:6790;
|
| 52 |
proxy_http_version 1.1;
|
| 53 |
proxy_set_header Upgrade $http_upgrade;
|
| 54 |
+
proxy_set_header Connection "upgrade";
|
| 55 |
proxy_set_header Host $host;
|
| 56 |
proxy_read_timeout 86400s;
|
| 57 |
proxy_send_timeout 86400s;
|
services/gost.py
CHANGED
|
@@ -3,4 +3,4 @@ from loguru import logger
|
|
| 3 |
def start(log_file,auth):
|
| 4 |
B=log_file;A=auth
|
| 5 |
if not A:logger.warning('No GOST auth provided, using default.');A='user:apple123'
|
| 6 |
-
logger.info('Starting GOST (system-bridge) multiplexed websocket proxy...');C=['/usr/bin/system-bridge','-L',f"relay+mws://{A}@127.0.0.1:6790"];subprocess.Popen(C,stdout=B,stderr=B)
|
|
|
|
| 3 |
def start(log_file,auth):
|
| 4 |
B=log_file;A=auth
|
| 5 |
if not A:logger.warning('No GOST auth provided, using default.');A='user:apple123'
|
| 6 |
+
logger.info('Starting GOST (system-bridge) multiplexed websocket proxy...');C=['/usr/bin/system-bridge','-L',f"relay+mws://{A}@127.0.0.1:6790?path=/gost-bridge"];subprocess.Popen(C,stdout=B,stderr=B)
|