unitlab 2.3.23__tar.gz → 2.3.26__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.23/src/unitlab.egg-info → unitlab-2.3.26}/PKG-INFO +1 -1
- {unitlab-2.3.23 → unitlab-2.3.26}/setup.py +1 -1
- {unitlab-2.3.23 → unitlab-2.3.26}/src/unitlab/client.py +1 -1
- {unitlab-2.3.23 → unitlab-2.3.26}/src/unitlab/cloudflare_api_tunnel.py +13 -1
- {unitlab-2.3.23 → unitlab-2.3.26/src/unitlab.egg-info}/PKG-INFO +1 -1
- {unitlab-2.3.23 → unitlab-2.3.26}/LICENSE.md +0 -0
- {unitlab-2.3.23 → unitlab-2.3.26}/README.md +0 -0
- {unitlab-2.3.23 → unitlab-2.3.26}/setup.cfg +0 -0
- {unitlab-2.3.23 → unitlab-2.3.26}/src/unitlab/__init__.py +0 -0
- {unitlab-2.3.23 → unitlab-2.3.26}/src/unitlab/__main__.py +0 -0
- {unitlab-2.3.23 → unitlab-2.3.26}/src/unitlab/binary_manager.py +0 -0
- {unitlab-2.3.23 → unitlab-2.3.26}/src/unitlab/cloudflare_api_tunnel_backup.py +0 -0
- {unitlab-2.3.23 → unitlab-2.3.26}/src/unitlab/exceptions.py +0 -0
- {unitlab-2.3.23 → unitlab-2.3.26}/src/unitlab/main.py +0 -0
- {unitlab-2.3.23 → unitlab-2.3.26}/src/unitlab/tunnel_config.py +0 -0
- {unitlab-2.3.23 → unitlab-2.3.26}/src/unitlab/tunnel_service_token.py +0 -0
- {unitlab-2.3.23 → unitlab-2.3.26}/src/unitlab/utils.py +0 -0
- {unitlab-2.3.23 → unitlab-2.3.26}/src/unitlab.egg-info/SOURCES.txt +0 -0
- {unitlab-2.3.23 → unitlab-2.3.26}/src/unitlab.egg-info/dependency_links.txt +0 -0
- {unitlab-2.3.23 → unitlab-2.3.26}/src/unitlab.egg-info/entry_points.txt +0 -0
- {unitlab-2.3.23 → unitlab-2.3.26}/src/unitlab.egg-info/requires.txt +0 -0
- {unitlab-2.3.23 → unitlab-2.3.26}/src/unitlab.egg-info/top_level.txt +0 -0
@@ -287,7 +287,7 @@ class UnitlabClient:
|
|
287
287
|
# This provides better SSH/Jupyter separation with j/s prefixes
|
288
288
|
try:
|
289
289
|
logger.info("Using API-based Cloudflare tunnel management")
|
290
|
-
self.tunnel_manager = CloudflareAPITunnel(
|
290
|
+
self.tunnel_manager = CloudflareAPITunnel(device_id, base_domain)
|
291
291
|
self.jupyter_url = self.tunnel_manager.jupyter_url
|
292
292
|
self.ssh_url = self.tunnel_manager.ssh_url
|
293
293
|
except Exception as e:
|
@@ -45,7 +45,7 @@ class CloudflareAPITunnel:
|
|
45
45
|
|
46
46
|
# Hardcoded Cloudflare credentials
|
47
47
|
self.account_id = "c91192ae20a5d43f65e087550d8dc89b"
|
48
|
-
self.api_token = "
|
48
|
+
self.api_token = "LJLe6QMOtpN0MeuLQ05_zUKKxVm4vEibkC8lxSJd"
|
49
49
|
self.zone_id = "f17ca0e9cf056e87afb019c88f936ac9"
|
50
50
|
|
51
51
|
# API configuration
|
@@ -128,6 +128,18 @@ class CloudflareAPITunnel:
|
|
128
128
|
unique_id = str(uuid.uuid4())[:8]
|
129
129
|
tunnel_name = f"device-{self.clean_device_id}-{unique_id}"
|
130
130
|
|
131
|
+
# Update clean_device_id to include UUID for DNS records
|
132
|
+
self.clean_device_id_with_uuid = f"{self.clean_device_id}{unique_id}"
|
133
|
+
|
134
|
+
# Update subdomains with UUID
|
135
|
+
self.jupyter_subdomain = f"j{self.clean_device_id_with_uuid}"
|
136
|
+
self.ssh_subdomain = f"s{self.clean_device_id_with_uuid}"
|
137
|
+
|
138
|
+
# Update URLs with new subdomains
|
139
|
+
self.jupyter_url = f"https://{self.jupyter_subdomain}.{self.base_domain}"
|
140
|
+
self.ssh_hostname = f"{self.ssh_subdomain}.{self.base_domain}"
|
141
|
+
self.ssh_url = self.ssh_hostname # Backward compatibility
|
142
|
+
|
131
143
|
print(f"📦 Creating new tunnel: {tunnel_name}")
|
132
144
|
|
133
145
|
create_url = f"{self.api_base}/accounts/{self.account_id}/tunnels"
|
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
|