Skip to content

Commit

Permalink
cmd/xedn: mild fly.toml change
Browse files Browse the repository at this point in the history
Signed-off-by: Xe Iaso <[email protected]>
  • Loading branch information
Xe committed Dec 14, 2023
1 parent c2d461f commit b5eda20
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 31 deletions.
7 changes: 6 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"nixEnvSelector.nixFile": "${workspaceRoot}/flake.nix"
"nixEnvSelector.nixFile": "${workspaceRoot}/flake.nix",
"[markdown]": {
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 80,
"editor.wordBasedSuggestions": "off"
},
}
63 changes: 33 additions & 30 deletions cmd/xedn/fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,47 @@ kill_timeout = "5s"
swap_size_mb = 512

[experimental]
auto_rollback = true
auto_rollback = true

[build]
image = "registry.fly.io/xedn:latest"
image = "registry.fly.io/xedn:latest"

[deploy]
strategy = "immediate"
strategy = "immediate"

[env]
XEDN_STATE = "/data/xedn"
XEDN_STATE = "/data/xedn"

[[mounts]]
source = "xedn_cache"
destination = "/data"
[mounts]
source = "xedn_cache"
destination = "/data"
auto_extend_size_threshold = 80
auto_extend_size_increment = "1GB"
auto_extend_size_limit = "100GB"

[[services]]
protocol = "tcp"
internal_port = 8080
processes = ["app"]

[[services.ports]]
port = 80
handlers = ["http"]
force_https = true

[[services.ports]]
port = 443
handlers = ["tls", "http"]
[services.concurrency]
type = "connections"
hard_limit = 1000
soft_limit = 750

[[services.tcp_checks]]
interval = "15s"
timeout = "2s"
grace_period = "1s"
protocol = "tcp"
internal_port = 8080
processes = ["app"]

[[services.ports]]
port = 80
handlers = ["http"]
force_https = true

[[services.ports]]
port = 443
handlers = ["tls", "http"]
[services.concurrency]
type = "connections"
hard_limit = 1000
soft_limit = 750

[[services.tcp_checks]]
interval = "15s"
timeout = "2s"
grace_period = "1s"

[[metrics]]
port = 8081
path = "/metrics"
port = 8081
path = "/metrics"

0 comments on commit b5eda20

Please sign in to comment.