fix: use external sh script to write Traefik config — avoid YAML escaping issues
Some checks failed
Deploy / deploy (push) Failing after 3m41s
Some checks failed
Deploy / deploy (push) Failing after 3m41s
This commit is contained in:
22
scripts/register-traefik.sh
Executable file
22
scripts/register-traefik.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
OUT=/etc/easypanel/traefik/config/api-ubigeo.yaml
|
||||
|
||||
cat > "$OUT" << 'EOF'
|
||||
http:
|
||||
routers:
|
||||
ubigeo-api:
|
||||
rule: "Host(`api-ubigeo.darkcodex.dev`)"
|
||||
service: ubigeo-api
|
||||
entryPoints:
|
||||
- websecure
|
||||
tls:
|
||||
certResolver: letsencrypt
|
||||
services:
|
||||
ubigeo-api:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://ubigeo-api:3200"
|
||||
EOF
|
||||
|
||||
echo "Traefik route written:"
|
||||
cat "$OUT"
|
||||
Reference in New Issue
Block a user