mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-02-14 14:01:51 +00:00
Add env var to specify websockify container port
This commit is contained in:
parent
6627457958
commit
aa3ea61188
2 changed files with 2 additions and 1 deletions
|
@ -62,6 +62,7 @@ WEBSOCKIFY_PATH = environ.get('PROXSTAR_WEBSOCKIFY_PATH', '/usr/local/bin/websoc
|
||||||
WEBSOCKIFY_TARGET_FILE = environ.get('PROXSTAR_WEBSOCKIFY_TARGET_FILE', '/opt/proxstar/targets')
|
WEBSOCKIFY_TARGET_FILE = environ.get('PROXSTAR_WEBSOCKIFY_TARGET_FILE', '/opt/proxstar/targets')
|
||||||
VNC_HOST = environ.get('PROXSTAR_VNC_HOST', 'proxstar-vnc.csh.rit.edu')
|
VNC_HOST = environ.get('PROXSTAR_VNC_HOST', 'proxstar-vnc.csh.rit.edu')
|
||||||
VNC_PORT = environ.get('PROXSTAR_VNC_PORT', '443')
|
VNC_PORT = environ.get('PROXSTAR_VNC_PORT', '443')
|
||||||
|
WEBSOCKIFY_PORT = environ.get('PROXSTAR_WEBSOCKIFY_PORT', '8081')
|
||||||
|
|
||||||
# SENTRY
|
# SENTRY
|
||||||
# If you set the sentry dsn locally, make sure you use the local-dev or some
|
# If you set the sentry dsn locally, make sure you use the local-dev or some
|
||||||
|
|
|
@ -16,7 +16,7 @@ def start_websockify(websockify_path, target_file):
|
||||||
result = subprocess.run(['pgrep', 'websockify'], stdout=subprocess.PIPE)
|
result = subprocess.run(['pgrep', 'websockify'], stdout=subprocess.PIPE)
|
||||||
if not result.stdout:
|
if not result.stdout:
|
||||||
print("Websockify is stopped. Starting websockify.")
|
print("Websockify is stopped. Starting websockify.")
|
||||||
proxstar_port = app.config.get('VNC_PORT')
|
proxstar_port = app.config.get('WEBSOCKIFY_PORT')
|
||||||
subprocess.call(
|
subprocess.call(
|
||||||
[
|
[
|
||||||
websockify_path,
|
websockify_path,
|
||||||
|
|
Loading…
Reference in a new issue