traefic fix
Some checks are pending
CI / build (push) Waiting to run

This commit is contained in:
dimitar 2026-08-04 06:43:07 +02:00
parent a21019b9ea
commit 33a36546d2

View File

@ -9,14 +9,39 @@ services:
networks: networks:
- coolify - coolify
labels: labels:
- traefik.enable=true traefik.enable: "true"
- traefik.http.routers.spomeniqr-wildcard.rule=HostRegexp(`^[a-z0-9-]+\.testbed\.mk$$`) traefik.docker.network: "coolify"
- traefik.http.routers.spomeniqr-wildcard.entryPoints=http,https
- traefik.http.routers.spomeniqr-wildcard.service=spomeniqr-svc
- traefik.http.routers.spomeniqr-wildcard.tls=true
- traefik.http.services.spomeniqr-svc.loadbalancer.server.port=3000
- traefik.docker.network=coolify
# Root domain: testbed.mk
traefik.http.routers.testbed-root.rule: "Host(`testbed.mk`)"
traefik.http.routers.testbed-root.entryPoints: "https"
traefik.http.routers.testbed-root.service: "spomeniqr-svc"
traefik.http.routers.testbed-root.tls: "true"
# Wildcard subdomains: *.testbed.mk
traefik.http.routers.testbed-wildcard.rule: "HostRegexp(`{subdomain:[a-zA-Z0-9-]+}.testbed.mk`)"
traefik.http.routers.testbed-wildcard.entryPoints: "https"
traefik.http.routers.testbed-wildcard.service: "spomeniqr-svc"
traefik.http.routers.testbed-wildcard.tls: "true"
# HTTP → HTTPS redirect for root
traefik.http.routers.testbed-root-http.rule: "Host(`testbed.mk`)"
traefik.http.routers.testbed-root-http.entryPoints: "http"
traefik.http.routers.testbed-root-http.middlewares: "redirect-to-https"
traefik.http.routers.testbed-root-http.service: "spomeniqr-svc"
# HTTP → HTTPS redirect for wildcard
traefik.http.routers.testbed-wildcard-http.rule: "HostRegexp(`{subdomain:[a-zA-Z0-9-]+}.testbed.mk`)"
traefik.http.routers.testbed-wildcard-http.entryPoints: "http"
traefik.http.routers.testbed-wildcard-http.middlewares: "redirect-to-https"
traefik.http.routers.testbed-wildcard-http.service: "spomeniqr-svc"
# Your app service
traefik.http.services.spomeniqr-svc.loadbalancer.server.port: "3000"
# Gzip compression
traefik.http.middlewares.gzip.compress: "true"
traefik.http.middlewares.redirect-to-https.redirectscheme.scheme: "https"
networks: networks:
coolify: coolify:
external: true external: true