mirror of
https://github.com/makayabou/asg-server.git
synced 2026-05-02 17:43:36 +02:00
[deploy] limit user operations from device
This commit is contained in:
parent
a8b23f4dc1
commit
e04c1b80f9
@ -147,6 +147,7 @@ resource "docker_service" "app" {
|
||||
#endregion
|
||||
|
||||
#region Primary Limited
|
||||
#region Device Registration
|
||||
labels {
|
||||
label = "traefik.http.routers.${var.app-name}-new_limited.rule"
|
||||
value = "Host(`api.sms-gate.app`) && PathPrefix(`/mobile/v1/device`) && Method(`POST`)"
|
||||
@ -164,6 +165,25 @@ resource "docker_service" "app" {
|
||||
value = "le"
|
||||
}
|
||||
#endregion
|
||||
#region User Operations
|
||||
labels {
|
||||
label = "traefik.http.routers.${var.app-name}-new_limited-user.rule"
|
||||
value = "Host(`api.sms-gate.app`) && PathPrefix(`/mobile/v1/user`)"
|
||||
}
|
||||
labels {
|
||||
label = "traefik.http.routers.${var.app-name}-new_limited-user.entrypoints"
|
||||
value = "https"
|
||||
}
|
||||
labels {
|
||||
label = "traefik.http.routers.${var.app-name}-new_limited-user.middlewares"
|
||||
value = "rate-limit_5-per-1m,${var.app-name}-new-addprefix"
|
||||
}
|
||||
labels {
|
||||
label = "traefik.http.routers.${var.app-name}-new_limited-user.tls.certresolver"
|
||||
value = "le"
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
labels {
|
||||
label = "traefik.http.services.${var.app-name}.loadbalancer.server.port"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user