Skip to content

Commit

Permalink
feat: update waiting stack
Browse files Browse the repository at this point in the history
  • Loading branch information
johackim committed Jun 1, 2023
1 parent 8be7967 commit e156f54
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions stacks/waiting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ version: '3.8'
services:
waiting:
image: nginx:${VERSION:-alpine}
entrypoint: /bin/sh
command:
- /bin/sh
- -c
- |
wget -O /usr/share/nginx/html/index.html https://git.io/JEwvw
Expand All @@ -15,11 +15,14 @@ services:
labels:
- traefik.enable=true
- traefik.http.routers.waiting-${NUMBER:-1}.rule=Host(`${DOMAIN:-waiting.localhost}`)
- traefik.http.routers.waiting-${NUMBER:-1}.priority=0
- traefik.http.routers.waiting-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.waiting-${NUMBER:-1}.service=waiting-${NUMBER:-1}
- traefik.http.routers.waiting-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.waiting-${NUMBER:-1}.loadbalancer.server.port=80
- traefik.http.routers.waiting-${NUMBER:-1}.middlewares=waiting-${NUMBER:-1}
- traefik.http.middlewares.waiting-${NUMBER:-1}.redirectregex.regex=^https?:\/\/(.+?)\/(.+)$$
- traefik.http.middlewares.waiting-${NUMBER:-1}.redirectregex.replacement=https://$${1}/
- traefik.http.middlewares.waiting-${NUMBER:-1}.redirectregex.permanent=false

networks:
default:
Expand Down

0 comments on commit e156f54

Please sign in to comment.