Skip to content

Commit

Permalink
ops: use proxy for postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
thomersch committed Oct 7, 2024
1 parent 62adb9c commit 57b8f31
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,53 +5,53 @@ kill_timeout = 5
swap_size_mb = 512

[experimental]
auto_rollback = true
auto_rollback = true

[env]
GUNICORN_WORKERS = "2"
OSMCAL_PG_HOST = "top1.nearest.of.osmcal-db2.internal"
OSMCAL_PROD = "true"
PORT = "8080"
WRITABLE_REGION = "ams"
GUNICORN_WORKERS = "2"
OSMCAL_PG_HOST = "osmcal-db2.flycast"
OSMCAL_PROD = "true"
PORT = "8080"
WRITABLE_REGION = "ams"

[[services]]
protocol = "tcp"
internal_port = 8080
processes = ["app"]
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 1

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

[[services.ports]]
port = 443
handlers = ["tls", "http"]

[services.concurrency]
type = "connections"
hard_limit = 125
soft_limit = 100

[[services.http_checks]]
interval = "10s"
timeout = "2s"
grace_period = "3s"
restart_limit = 10
method = "get"
path = "/"
protocol = "http"
protocol = "tcp"
internal_port = 8080
processes = ["app"]
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 1

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

[[services.ports]]
port = 443
handlers = ["tls", "http"]

[services.concurrency]
type = "connections"
hard_limit = 125
soft_limit = 100

[[services.http_checks]]
interval = "10s"
timeout = "2s"
grace_period = "3s"
restart_limit = 10
method = "get"
path = "/"
protocol = "http"

[[statics]]
guest_path = "/app/static/"
url_prefix = "/static/"
guest_path = "/app/static/"
url_prefix = "/static/"

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

[deploy]
release_command = "make migrate"
release_command = "make migrate"

0 comments on commit 57b8f31

Please sign in to comment.