Remove custom IP fetching (#10954)

Co-authored-by: CanbiZ (MickLesk) <47820557+MickLesk@users.noreply.github.com>
This commit is contained in:
Slaviša Arežina
2026-01-19 16:33:08 +01:00
committed by GitHub
parent bc53369bab
commit 90f73d1d24
51 changed files with 32 additions and 74 deletions
+4 -5
View File
@@ -28,7 +28,6 @@ read -rp "${TAB3}Enter your Pangolin URL (ex: https://pangolin.example.com): " p
read -rp "${TAB3}Enter your email address: " pango_email
msg_info "Setup Pangolin"
IP_ADDR=$(hostname -I | awk '{print $1}')
SECRET_KEY=$(openssl rand -base64 48 | tr -dc 'A-Za-z0-9' | head -c 32)
cd /opt/pangolin
mkdir -p /opt/pangolin/config/{traefik,db,letsencrypt,logs}
@@ -77,7 +76,7 @@ api:
providers:
http:
endpoint: "http://$IP_ADDR:3001/api/v1/traefik-config"
endpoint: "http://$LOCAL_IP:3001/api/v1/traefik-config"
pollInterval: "5s"
file:
filename: "/opt/pangolin/config/traefik/dynamic_config.yml"
@@ -168,12 +167,12 @@ http:
next-service:
loadBalancer:
servers:
- url: "http://$IP_ADDR:3002"
- url: "http://$LOCAL_IP:3002"
api-service:
loadBalancer:
servers:
- url: "http://$IP_ADDR:3000"
- url: "http://$LOCAL_IP:3000"
EOF
$STD npm run db:sqlite:generate
$STD npm run db:sqlite:push
@@ -218,7 +217,7 @@ Requires=pangolin.service
[Service]
Type=simple
User=root
ExecStart=/usr/bin/gerbil --reachableAt=http://$IP_ADDR:3004 --generateAndSaveKeyTo=/var/config/key --remoteConfig=http://$IP_ADDR:3001/api/v1/
ExecStart=/usr/bin/gerbil --reachableAt=http://$LOCAL_IP:3004 --generateAndSaveKeyTo=/var/config/key --remoteConfig=http://$LOCAL_IP:3001/api/v1/
Restart=always
RestartSec=10