 Easy routing for local development - Using Traefik for routing paths
to web apps - Setup a reverse proxy to simplify routinghome: restart: always image: denoland/deno:1.11.2 command: run --allow-net --allow-read --allow-env /app/server.ts labels: - traefik.http.routers.home.rule=Host(`deno-mfe.localhost`) - traefik.http.services l s . • traefik.http.routers.home.rule=Host(`deno-mfe.localhost`) d e fi n e s t h e d om ai n w e w an t t o u s e , i n t h i s c as e I c h os e deno-mfe.localhost s o n av i gat i n g t o i t w i t h e s am e r u l e b u t ad d a PathPrefix l i k e t h i s traefik.http.routers.shop.rule=Host(`deno-mfe.localhost`) && PathPrefix(`/shop`). T h i s l ab e l t e l l s T r ae fi k t o m at c h a r e0 码力 | 5 页 | 576.61 KB | 1 年前3 Easy routing for local development - Using Traefik for routing paths
to web apps - Setup a reverse proxy to simplify routinghome: restart: always image: denoland/deno:1.11.2 command: run --allow-net --allow-read --allow-env /app/server.ts labels: - traefik.http.routers.home.rule=Host(`deno-mfe.localhost`) - traefik.http.services l s . • traefik.http.routers.home.rule=Host(`deno-mfe.localhost`) d e fi n e s t h e d om ai n w e w an t t o u s e , i n t h i s c as e I c h os e deno-mfe.localhost s o n av i gat i n g t o i t w i t h e s am e r u l e b u t ad d a PathPrefix l i k e t h i s traefik.http.routers.shop.rule=Host(`deno-mfe.localhost`) && PathPrefix(`/shop`). T h i s l ab e l t e l l s T r ae fi k t o m at c h a r e0 码力 | 5 页 | 576.61 KB | 1 年前3
共 1 条
- 1













