diff --git a/docker-stack.yml.template b/docker-stack.yml.template index 7293dea..bac0f9f 100644 --- a/docker-stack.yml.template +++ b/docker-stack.yml.template @@ -18,6 +18,6 @@ services: - traefik.enable=true - traefik.http.routers.static.entrypoints=websecure - traefik.http.services.static.loadbalancer.server.port=80 - - traefik.http.routers.static.rule=Host(`pim.kunis.nl`) + - "traefik.http.routers.static.rule=(Host(`pim.kunis.nl`) || Host(`pim.kun.is`))" - traefik.http.routers.static.tls=true - traefik.http.routers.static.tls.certresolver=letsencrypt diff --git a/nginx.conf b/nginx.conf index fa6900f..33d68cb 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,6 +1,6 @@ server { listen 80; - server_name pim.kunis.nl; + server_name pim.kun.is; index index.html index.htm; root /var/www/blog; @@ -16,3 +16,8 @@ server { error_page 404 /404.html; } + +server { + server_name pim.kunis.nl; + return 301 https://pim.kun.is$request_uri; +}