unitlab 2.3.9__tar.gz → 2.3.10__tar.gz
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.
- {unitlab-2.3.9/src/unitlab.egg-info → unitlab-2.3.10}/PKG-INFO +1 -1
- {unitlab-2.3.9 → unitlab-2.3.10}/setup.py +1 -1
- {unitlab-2.3.9 → unitlab-2.3.10}/src/unitlab/cloudflare_api_tunnel.py +8 -7
- {unitlab-2.3.9 → unitlab-2.3.10/src/unitlab.egg-info}/PKG-INFO +1 -1
- {unitlab-2.3.9 → unitlab-2.3.10}/LICENSE.md +0 -0
- {unitlab-2.3.9 → unitlab-2.3.10}/README.md +0 -0
- {unitlab-2.3.9 → unitlab-2.3.10}/setup.cfg +0 -0
- {unitlab-2.3.9 → unitlab-2.3.10}/src/unitlab/__init__.py +0 -0
- {unitlab-2.3.9 → unitlab-2.3.10}/src/unitlab/__main__.py +0 -0
- {unitlab-2.3.9 → unitlab-2.3.10}/src/unitlab/binary_manager.py +0 -0
- {unitlab-2.3.9 → unitlab-2.3.10}/src/unitlab/client.py +0 -0
- {unitlab-2.3.9 → unitlab-2.3.10}/src/unitlab/exceptions.py +0 -0
- {unitlab-2.3.9 → unitlab-2.3.10}/src/unitlab/main.py +0 -0
- {unitlab-2.3.9 → unitlab-2.3.10}/src/unitlab/tunnel_config.py +0 -0
- {unitlab-2.3.9 → unitlab-2.3.10}/src/unitlab/tunnel_service_token.py +0 -0
- {unitlab-2.3.9 → unitlab-2.3.10}/src/unitlab/utils.py +0 -0
- {unitlab-2.3.9 → unitlab-2.3.10}/src/unitlab.egg-info/SOURCES.txt +0 -0
- {unitlab-2.3.9 → unitlab-2.3.10}/src/unitlab.egg-info/dependency_links.txt +0 -0
- {unitlab-2.3.9 → unitlab-2.3.10}/src/unitlab.egg-info/entry_points.txt +0 -0
- {unitlab-2.3.9 → unitlab-2.3.10}/src/unitlab.egg-info/requires.txt +0 -0
- {unitlab-2.3.9 → unitlab-2.3.10}/src/unitlab.egg-info/top_level.txt +0 -0
@@ -53,12 +53,14 @@ class CloudflareAPITunnel:
|
|
53
53
|
"Content-Type": "application/json"
|
54
54
|
} if self.api_token else {}
|
55
55
|
|
56
|
-
# URLs for services
|
56
|
+
# URLs for services - simplified for Jupyter only
|
57
57
|
self.jupyter_subdomain = f"j{self.clean_device_id}"
|
58
|
-
self.ssh_subdomain = f"s{self.clean_device_id}"
|
59
58
|
self.jupyter_url = f"https://{self.jupyter_subdomain}.{self.base_domain}"
|
59
|
+
|
60
|
+
# Keep SSH URLs for compatibility but they won't work yet
|
61
|
+
self.ssh_subdomain = f"s{self.clean_device_id}"
|
60
62
|
self.ssh_hostname = f"{self.ssh_subdomain}.{self.base_domain}"
|
61
|
-
self.ssh_url = self.ssh_hostname
|
63
|
+
self.ssh_url = self.ssh_hostname
|
62
64
|
|
63
65
|
self.tunnel_process = None
|
64
66
|
self.created_dns_records = []
|
@@ -220,11 +222,10 @@ class CloudflareAPITunnel:
|
|
220
222
|
if not cloudflared_path:
|
221
223
|
raise RuntimeError("Failed to obtain cloudflared binary")
|
222
224
|
|
223
|
-
# Use
|
224
|
-
#
|
225
|
-
service_token = "
|
225
|
+
# Use service token - simple and reliable
|
226
|
+
# The dashboard must have *.1scan.uz -> localhost:8888 configured
|
227
|
+
service_token = "eyJhIjoiYzkxMTkyYWUyMGE1ZDQzZjY1ZTA4NzU1MGQ4ZGM4OWIiLCJ0IjoiMDc3N2ZjMTAtNDljNC00NzJkLTg2NjEtZjYwZDgwZDYxODRkIiwicyI6Ik9XRTNaak5tTVdVdE1tWTRaUzAwTmpoakxTazBaalF0WXpjek1tSm1ZVGt4WlRRMCJ9"
|
226
228
|
|
227
|
-
# Start tunnel with service token
|
228
229
|
cmd = [
|
229
230
|
cloudflared_path,
|
230
231
|
"tunnel",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|