Spaces:
Sleeping
Sleeping
Add superlink control api port setting. (#18)
Browse files
blossomtune_gradio/config.py
CHANGED
|
@@ -23,6 +23,7 @@ SMTP_PASSWORD = os.getenv("SMTP_PASSWORD", "")
|
|
| 23 |
EMAIL_PROVIDER = os.getenv("EMAIL_PROVIDER", "smtp")
|
| 24 |
SUPERLINK_HOST = os.getenv("SUPERLINK_HOST", "127.0.0.1:9092")
|
| 25 |
SUPERLINK_PORT = int(os.getenv("SUPERLINK_PORT", 9092))
|
|
|
|
| 26 |
SUPERLINK_MODE = os.getenv("SUPERLINK_MODE", "internal").lower() # Or external
|
| 27 |
|
| 28 |
# TLS root cert path. For production only.
|
|
|
|
| 23 |
EMAIL_PROVIDER = os.getenv("EMAIL_PROVIDER", "smtp")
|
| 24 |
SUPERLINK_HOST = os.getenv("SUPERLINK_HOST", "127.0.0.1:9092")
|
| 25 |
SUPERLINK_PORT = int(os.getenv("SUPERLINK_PORT", 9092))
|
| 26 |
+
SUPERLINK_CONTROL_API_PORT = int(os.getenv("SUPERLINK_CONTROL_API_PORT", 9093))
|
| 27 |
SUPERLINK_MODE = os.getenv("SUPERLINK_MODE", "internal").lower() # Or external
|
| 28 |
|
| 29 |
# TLS root cert path. For production only.
|
blossomtune_gradio/processing.py
CHANGED
|
@@ -89,7 +89,7 @@ def start_runner(
|
|
| 89 |
runner_app_path,
|
| 90 |
"local-deployment",
|
| 91 |
"--federation-config",
|
| 92 |
-
f'address="{cfg.SUPERLINK_HOST}:{cfg.
|
| 93 |
"--stream",
|
| 94 |
]
|
| 95 |
threading.Thread(target=run_process, args=(command, "runner"), daemon=True).start()
|
|
|
|
| 89 |
runner_app_path,
|
| 90 |
"local-deployment",
|
| 91 |
"--federation-config",
|
| 92 |
+
f'address="{cfg.SUPERLINK_HOST}:{cfg.SUPERLINK_CONTROL_API_PORT}" root-certificates="{cfg.BLOSSOMTUNE_TLS_CERT_PATH}"',
|
| 93 |
"--stream",
|
| 94 |
]
|
| 95 |
threading.Thread(target=run_process, args=(command, "runner"), daemon=True).start()
|