[deploy] route only /api requests to the backend

This commit is contained in:
Aleksandr Soloshenko 2024-05-31 09:00:30 +07:00
parent 50f4df4100
commit 0350504b0c

View File

@ -76,7 +76,7 @@ resource "docker_service" "app" {
}
labels {
label = "traefik.http.routers.${var.app-name}.rule"
value = "Host(`${var.app-host}`)"
value = "Host(`${var.app-host}`) && PathPrefix(`/api`)"
}
labels {
label = "traefik.http.routers.${var.app-name}.entrypoints"