mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 00:30:11 +00:00
feat(api): create api proxy/ratelimiting/metrics
This commit is contained in:
parent
de0d27e514
commit
b95f51fff4
11 changed files with 1157 additions and 0 deletions
28
services/web-proxy/fly.toml
Normal file
28
services/web-proxy/fly.toml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
app = "pluralkit"
|
||||
kill_signal = "SIGTERM"
|
||||
kill_timeout = 5
|
||||
|
||||
[metrics]
|
||||
port = 9091
|
||||
path = "/metrics"
|
||||
|
||||
[deploy]
|
||||
strategy = "bluegreen"
|
||||
|
||||
[[services]]
|
||||
internal_port = 8080
|
||||
protocol = "tcp"
|
||||
|
||||
[services.concurrency]
|
||||
hard_limit = 500
|
||||
soft_limit = 400
|
||||
type = "connections"
|
||||
|
||||
[[services.ports]]
|
||||
force_https = true
|
||||
handlers = ["http"]
|
||||
port = 80
|
||||
|
||||
[[services.ports]]
|
||||
handlers = ["tls", "http"]
|
||||
port = 443
|
||||
Loading…
Add table
Add a link
Reference in a new issue