Skip to content

Commit e58f24c

Browse files
committed
Update traefik routes for local development #224
Signed-off-by: Jono Yang <[email protected]>
1 parent 72a0662 commit e58f24c

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

docker-compose_matchcodeio.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,15 @@ services:
5858
restart: always
5959
labels:
6060
- "traefik.enable=true"
61-
- "traefik.http.routers.matchcodeio.rule=Host(`127.0.0.1`) && PathPrefix(`/api/matching`) || Host(`localhost`) && PathPrefix(`/api/matching`) || Host(`192.168.1.12`) && PathPrefix(`/api/matching`) || Host(`127.0.0.1`) && PathPrefix(`/project`) || Host(`localhost`) && PathPrefix(`/project`) || Host(`192.168.1.12`) && PathPrefix(`/project`) || Host(`127.0.0.1`) && PathPrefix(`/api/runs`) || Host(`localhost`) && PathPrefix(`/api/runs`) || Host(`192.168.1.12`) && PathPrefix(`/api/runs`)"
61+
- "traefik.http.routers.matchcodeio.rule=
62+
Host(`127.0.0.1`) && PathPrefix(`/api/matching`)
63+
|| Host(`127.0.0.1`) && PathPrefix(`/api/runs`)
64+
|| Host(`127.0.0.1`) && PathPrefix(`/project`)
65+
|| Host(`127.0.0.1`) && PathPrefix(`/runs`)
66+
|| Host(`localhost`) && PathPrefix(`/api/matching`)
67+
|| Host(`localhost`) && PathPrefix(`/api/runs`)
68+
|| Host(`localhost`) && PathPrefix(`/project`)
69+
|| Host(`localhost`) && PathPrefix(`/runs`)"
6270
- "traefik.http.routers.matchcodeio.entrypoints=web"
6371

6472
networks:

docker-compose_purldb.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ services:
118118
image: nginx
119119
labels:
120120
- "traefik.enable=true"
121-
- "traefik.http.routers.web.rule=Host(`127.0.0.1`) || Host(`localhost`) || Host(`192.168.1.12`)"
121+
- "traefik.http.routers.web.rule=
122+
Host(`127.0.0.1`)
123+
|| Host(`localhost`)"
122124
- "traefik.http.routers.web.entrypoints=web"
123125
volumes:
124126
- ./etc/nginx/conf.d/:/etc/nginx/conf.d/

traefik.yml

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ api:
99
entryPoints:
1010
web:
1111
address: ":80"
12+
websecure:
13+
address: ":443"
1214

1315
providers:
1416
docker:

0 commit comments

Comments
 (0)