File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ version: '3.8'
5
5
services :
6
6
waiting :
7
7
image : nginx:${VERSION:-alpine}
8
+ entrypoint : /bin/sh
8
9
command :
9
- - /bin/sh
10
10
- -c
11
11
- |
12
12
wget -O /usr/share/nginx/html/index.html https://git.io/JEwvw
@@ -15,11 +15,15 @@ services:
15
15
labels :
16
16
- traefik.enable=true
17
17
- traefik.http.routers.waiting-${NUMBER:-1}.rule=Host(`${DOMAIN:-waiting.localhost}`)
18
- - traefik.http.routers.waiting-${NUMBER:-1}.priority=0
18
+ - traefik.http.routers.waiting-${NUMBER:-1}.priority=10
19
19
- traefik.http.routers.waiting-${NUMBER:-1}.entrypoints=${SCHEME:-https}
20
20
- traefik.http.routers.waiting-${NUMBER:-1}.service=waiting-${NUMBER:-1}
21
21
- traefik.http.routers.waiting-${NUMBER:-1}.tls.certresolver=letsencrypt
22
22
- traefik.http.services.waiting-${NUMBER:-1}.loadbalancer.server.port=80
23
+ - traefik.http.routers.waiting-${NUMBER:-1}.middlewares=waiting-${NUMBER:-1}
24
+ - traefik.http.middlewares.waiting-${NUMBER:-1}.redirectregex.regex=^https?:\/\/(.+?)\/(.+)$$
25
+ - traefik.http.middlewares.waiting-${NUMBER:-1}.redirectregex.replacement=https://$${1}/
26
+ - traefik.http.middlewares.waiting-${NUMBER:-1}.redirectregex.permanent=false
23
27
24
28
networks :
25
29
default :
You can’t perform that action at this time.
0 commit comments