fix: wordpress_client nutzt lokale IP 10.10.10.101 statt Tailscale
CT 116 Tailscale hat keine Konnektivität zu anderen Tailscale-IPs. Fallback auf lokale 10.10.10.101 (Docker-Bridge auf pve-hetzner). Made-with: Cursor
This commit is contained in:
parent
324b7715c6
commit
6c34a82259
1 changed files with 7 additions and 3 deletions
|
|
@ -20,11 +20,15 @@ def init(cfg):
|
||||||
ct_101 = c
|
ct_101 = c
|
||||||
break
|
break
|
||||||
|
|
||||||
if not ct_101 or not ct_101.tailscale_ip:
|
if not ct_101:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# WordPress erreichbar über Tailscale IP
|
# Versuche zuerst lokal (10.10.10.101), dann Tailscale
|
||||||
WP_URL = f"http://{ct_101.tailscale_ip}"
|
# WordPress läuft in Docker-Container auf pve-hetzner
|
||||||
|
local_ip = "10.10.10.101"
|
||||||
|
tailscale_ip = ct_101.tailscale_ip
|
||||||
|
|
||||||
|
WP_URL = f"http://{local_ip}" # Nutze zuerst lokale IP
|
||||||
WP_USER = "admin"
|
WP_USER = "admin"
|
||||||
|
|
||||||
# Passwort aus config
|
# Passwort aus config
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue