feat(deploy): dominio ufficiale insanitylab.it (apex canonico)

- astro.config: site=https://insanitylab.it, allowedDomains apex+www+tielogic
- compose/Traefik: router serve insanitylab.it e (in transizione) tielogic.xyz;
  www.insanitylab.it redirige 301 all'apex. TLS Let's Encrypt via certresolver.
  tielogic resta servito per non avere downtime finché il DNS non propaga;
  il suo redirect all'apex verra' attivato dopo la conferma che il dominio e' live.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-12 15:20:38 +02:00
parent 86d608a929
commit d79aa912b1
2 changed files with 21 additions and 3 deletions
+13 -1
View File
@@ -16,11 +16,23 @@ services:
- /opt/docker/insanitylab/uploads:/app/uploads
labels:
- traefik.enable=true
- traefik.http.routers.insanitylab.rule=Host(`insanitylab.tielogic.xyz`)
# Router principale: apex ufficiale + vecchio sottodominio (servono entrambi durante
# la transizione DNS, così non c'è downtime finché insanitylab.it non è propagato).
- traefik.http.routers.insanitylab.rule=Host(`insanitylab.it`) || Host(`insanitylab.tielogic.xyz`)
- traefik.http.routers.insanitylab.tls=true
- traefik.http.routers.insanitylab.entrypoints=websecure
- traefik.http.routers.insanitylab.tls.certresolver=mytlschallenge
- traefik.http.services.insanitylab.loadbalancer.server.port=4321
# Router redirect: www.insanitylab.it → 301 apex (canonico senza www)
- traefik.http.routers.insanitylab-redir.rule=Host(`www.insanitylab.it`)
- traefik.http.routers.insanitylab-redir.tls=true
- traefik.http.routers.insanitylab-redir.entrypoints=websecure
- traefik.http.routers.insanitylab-redir.tls.certresolver=mytlschallenge
- traefik.http.routers.insanitylab-redir.service=insanitylab
- traefik.http.routers.insanitylab-redir.middlewares=insanitylab-tocanon
- traefik.http.middlewares.insanitylab-tocanon.redirectregex.regex=^https?://[^/]+/(.*)
- traefik.http.middlewares.insanitylab-tocanon.redirectregex.replacement=https://insanitylab.it/$${1}
- traefik.http.middlewares.insanitylab-tocanon.redirectregex.permanent=true
networks:
- traefik