refactor(infra): update Traefik configuration references and remove obsolete traefik.yaml

This commit is contained in:
asepharyana
2026-07-21 19:18:42 +07:00
parent 1098f97c05
commit 26d980fc00
3 changed files with 3 additions and 33 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ asepharyana-hub/
Traefik runs as the entry point for all HTTP/S traffic. It is configured via: Traefik runs as the entry point for all HTTP/S traffic. It is configured via:
- **Static config**: `infra/traefik/traefik.yaml` — entry points, providers, plugins - **Static config**: CLI arguments in `infra/compose/traefik.yml` — entry points, providers, plugins
- **Dynamic config**: `infra/traefik/dynamic/` — routers, services, middlewares, TLS - **Dynamic config**: `infra/traefik/dynamic/` — routers, services, middlewares, TLS
- **Docker provider**: Auto-discovers containers with `traefik.enable=true` labels - **Docker provider**: Auto-discovers containers with `traefik.enable=true` labels
- **File provider**: Loads `apps.yaml` (routers/services), `middlewares.yaml`, `ssl.yaml` - **File provider**: Loads `apps.yaml` (routers/services), `middlewares.yaml`, `ssl.yaml`
+2 -3
View File
@@ -15,11 +15,10 @@ infra/
├── docker/ # Dockerfiles and image runtime helpers ├── docker/ # Dockerfiles and image runtime helpers
├── dapr/ # Dapr component configs ├── dapr/ # Dapr component configs
│ ├── config.yaml # Global Dapr configuration │ ├── config.yaml # Global Dapr configuration
│ └── components/ # Pub/sub (NATS), state store (Redis) │ └── components/ # Pub/sub (Redis), state store (Redis)
├── traefik/ # Static and dynamic Traefik configuration ├── traefik/ # Dynamic Traefik configuration
│ ├── dynamic/ # Routers, services, middlewares, TLS certs │ ├── dynamic/ # Routers, services, middlewares, TLS certs
│ └── TRAEFIK_ENV_CONFIG.md │ └── TRAEFIK_ENV_CONFIG.md
└── config/ # Service bootstrap configuration
``` ```
## First-time setup ## First-time setup
-29
View File
@@ -1,29 +0,0 @@
api:
dashboard: true
insecure: false
log:
level: INFO
format: json
accessLog: {}
entryPoints:
web:
address: ':80'
http:
redirections:
entryPoint:
to: websecure
scheme: https
websecure:
address: ':443'
providers:
docker:
endpoint: 'unix:///var/run/docker.sock'
exposedByDefault: false
network: app-shared-net
file:
directory: /etc/traefik/dynamic
watch: true