funcnodes-react-flow 0.1.6__py3-none-any.whl → 0.1.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- funcnodes_react_flow/run.py +10 -1
- {funcnodes_react_flow-0.1.6.dist-info → funcnodes_react_flow-0.1.8.dist-info}/METADATA +1 -1
- {funcnodes_react_flow-0.1.6.dist-info → funcnodes_react_flow-0.1.8.dist-info}/RECORD +5 -5
- {funcnodes_react_flow-0.1.6.dist-info → funcnodes_react_flow-0.1.8.dist-info}/WHEEL +0 -0
- {funcnodes_react_flow-0.1.6.dist-info → funcnodes_react_flow-0.1.8.dist-info}/entry_points.txt +0 -0
funcnodes_react_flow/run.py
CHANGED
@@ -32,13 +32,14 @@ class CustomHTTPRequestHandler(http.server.SimpleHTTPRequestHandler):
|
|
32
32
|
fn.worker.worker_manager.assert_worker_manager_running(
|
33
33
|
host=self.server.worker_manager_host,
|
34
34
|
port=self.server.worker_manager_port,
|
35
|
+
ssl=self.server.worker_manager_ssl,
|
35
36
|
)
|
36
37
|
)
|
37
38
|
self.send_response(200)
|
38
39
|
self.send_header("Content-type", "text/json")
|
39
40
|
self.end_headers()
|
40
41
|
self.wfile.write(
|
41
|
-
f"ws://{self.server.worker_manager_host}:{self.server.worker_manager_port}".encode(
|
42
|
+
f"ws{'s' if self.server.worker_manager_ssl else ''}://{self.server.worker_manager_host}:{self.server.worker_manager_port}".encode(
|
42
43
|
"utf-8"
|
43
44
|
)
|
44
45
|
)
|
@@ -66,6 +67,7 @@ class GracefulHTTPServer(socketserver.TCPServer):
|
|
66
67
|
bind_and_activate=True,
|
67
68
|
worker_manager_host: Optional[str] = None,
|
68
69
|
worker_manager_port: Optional[int] = None,
|
70
|
+
worker_manager_ssl: Optional[bool] = None,
|
69
71
|
):
|
70
72
|
if worker_manager_host is None:
|
71
73
|
worker_manager_host = fn.config.CONFIG["worker_manager"]["host"]
|
@@ -73,6 +75,10 @@ class GracefulHTTPServer(socketserver.TCPServer):
|
|
73
75
|
if worker_manager_port is None:
|
74
76
|
worker_manager_port = fn.config.CONFIG["worker_manager"]["port"]
|
75
77
|
|
78
|
+
if worker_manager_ssl is None:
|
79
|
+
worker_manager_ssl = fn.config.CONFIG["worker_manager"].get("ssl", False)
|
80
|
+
|
81
|
+
self.worker_manager_ssl = worker_manager_ssl
|
76
82
|
self.worker_manager_host = worker_manager_host
|
77
83
|
self.worker_manager_port = worker_manager_port
|
78
84
|
super().__init__(server_address, RequestHandlerClass, bind_and_activate)
|
@@ -96,6 +102,7 @@ def run_server(
|
|
96
102
|
open_browser=True,
|
97
103
|
worker_manager_host: Optional[str] = None,
|
98
104
|
worker_manager_port: Optional[int] = None,
|
105
|
+
worker_manager_ssl: Optional[bool] = None,
|
99
106
|
):
|
100
107
|
import funcnodes as fn
|
101
108
|
|
@@ -103,6 +110,7 @@ def run_server(
|
|
103
110
|
fn.worker.worker_manager.assert_worker_manager_running(
|
104
111
|
host=worker_manager_host,
|
105
112
|
port=worker_manager_port,
|
113
|
+
ssl=worker_manager_ssl,
|
106
114
|
)
|
107
115
|
)
|
108
116
|
try:
|
@@ -113,6 +121,7 @@ def run_server(
|
|
113
121
|
CustomHTTPRequestHandler,
|
114
122
|
worker_manager_host=worker_manager_host,
|
115
123
|
worker_manager_port=worker_manager_port,
|
124
|
+
worker_manager_ssl=worker_manager_ssl,
|
116
125
|
)
|
117
126
|
print(f"Serving at port {port}")
|
118
127
|
if open_browser:
|
@@ -18,8 +18,8 @@ funcnodes_react_flow/logo192.png,sha256=XAIrH5_B6T77mW4eEP2emYcTkprrwuokSWKoy27v
|
|
18
18
|
funcnodes_react_flow/logo512.png,sha256=9SEEPsgJusj_-fxvDf11ea2YpUKXOdLhSPT3DNRw9e8,65653
|
19
19
|
funcnodes_react_flow/manifest.json,sha256=ULPYw5A68_eNhxuUVXqxT045yhkurKPSz6hjyGcnmhQ,492
|
20
20
|
funcnodes_react_flow/robots.txt,sha256=kNJLw79pisHhc3OVAimMzKcq3x9WT6sF9IS4xI0crdI,67
|
21
|
-
funcnodes_react_flow/run.py,sha256=
|
22
|
-
funcnodes_react_flow-0.1.
|
23
|
-
funcnodes_react_flow-0.1.
|
24
|
-
funcnodes_react_flow-0.1.
|
25
|
-
funcnodes_react_flow-0.1.
|
21
|
+
funcnodes_react_flow/run.py,sha256=saoMHKSm7LpzsXCEJMpvloJU2dHqkI7jtXLRJdiygH4,4424
|
22
|
+
funcnodes_react_flow-0.1.8.dist-info/METADATA,sha256=OSVj43_THWb42tVT5Ed0iaDLJREv_fkQb7wWY8JI_9Y,433
|
23
|
+
funcnodes_react_flow-0.1.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
24
|
+
funcnodes_react_flow-0.1.8.dist-info/entry_points.txt,sha256=FbrfqRLScFuNXaVpoyfz7lPcSjTlRf4G06ZUZhTgJMM,75
|
25
|
+
funcnodes_react_flow-0.1.8.dist-info/RECORD,,
|
File without changes
|
{funcnodes_react_flow-0.1.6.dist-info → funcnodes_react_flow-0.1.8.dist-info}/entry_points.txt
RENAMED
File without changes
|