Skip to content

Commit

Permalink
Merge branch 'main' into development
Browse files Browse the repository at this point in the history
# Conflicts:
#	operations/deploy-live.hcl
  • Loading branch information
yumirkov committed Sep 2, 2024
2 parents 3864056 + 4241c7d commit 20f5522
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Not all metrics are available, only specific ones.

There are 3 different instances of the service running for each environment:

- https://api-dev.dmz.ator.dev
- https://api-stage.dmz.ator.dev
- https://api-live.dmz.ator.dev
- https://api-dev.ec.anyone.tech
- https://api-stage.ec.anyone.tech
- https://api.ec.anyone.tech

For now there are only three metrics endpoints on each environment available:

Expand Down
9 changes: 9 additions & 0 deletions operations/deploy-dev.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@ job "api-service-dev" {
"traefik.http.routers.api-dev.middlewares=api-dev-ratelimit",
"traefik.http.middlewares.api-dev-ratelimit.ratelimit.average=300",
"traefik.http.middlewares.api-dev-ratelimit.ratelimit.period=1m",

"traefik-ec.enable=true",
"traefik-ec.http.routers.api-dev.rule=Host(`api-dev.ec.anyone.tech`)",
"traefik-ec.http.routers.api-dev.entrypoints=https",
"traefik-ec.http.routers.api-dev.tls=true",
"traefik-ec.http.routers.api-dev.tls.certresolver=anyoneresolver",
"traefik-ec.http.routers.api-dev.middlewares=api-dev-ratelimit",
"traefik-ec.http.middlewares.api-dev-ratelimit.ratelimit.average=30",
"traefik-ec.http.middlewares.api-dev-ratelimit.ratelimit.period=1m",
]
check {
name = "Api service check"
Expand Down
9 changes: 9 additions & 0 deletions operations/deploy-live.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@ job "api-service-live" {
"traefik.http.routers.api-live.tls.certresolver=atorresolver",
"traefik.http.routers.api-live.middlewares=api-live-ratelimit",
"traefik.http.middlewares.api-live-ratelimit.ratelimit.average=1000"

"traefik-ec.enable=true",
"traefik-ec.http.routers.api-live.rule=Host(`api.ec.anyone.tech`)",
"traefik-ec.http.routers.api-live.entrypoints=https",
"traefik-ec.http.routers.api-live.tls=true",
"traefik-ec.http.routers.api-live.tls.certresolver=anyoneresolver",
"traefik-ec.http.routers.api-live.middlewares=api-live-ratelimit",
"traefik-ec.http.middlewares.api-live-ratelimit.ratelimit.average=300",
"traefik-ec.http.middlewares.api-live-ratelimit.ratelimit.period=1m",
]
check {
name = "Api service check"
Expand Down
9 changes: 9 additions & 0 deletions operations/deploy-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@ job "api-service-stage" {
"traefik.http.routers.api-stage.middlewares=api-stage-ratelimit",
"traefik.http.middlewares.api-stage-ratelimit.ratelimit.average=3000",
"traefik.http.middlewares.api-stage-ratelimit.ratelimit.period=1m",

"traefik-ec.enable=true",
"traefik-ec.http.routers.api-stage.rule=Host(`api-stage.ec.anyone.tech`)",
"traefik-ec.http.routers.api-stage.entrypoints=https",
"traefik-ec.http.routers.api-stage.tls=true",
"traefik-ec.http.routers.api-stage.tls.certresolver=anyoneresolver",
"traefik-ec.http.routers.api-stage.middlewares=api-stage-ratelimit",
"traefik-ec.http.middlewares.api-stage-ratelimit.ratelimit.average=300",
"traefik-ec.http.middlewares.api-stage-ratelimit.ratelimit.period=1m",
]
check {
name = "Api service check"
Expand Down

0 comments on commit 20f5522

Please sign in to comment.