23 lines
426 B
Bash
Executable File
23 lines
426 B
Bash
Executable File
#!/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"
|