Skip to content

Commit

Permalink
generic fly services configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Nov 6, 2024
1 parent d437265 commit f2a1948
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,28 @@ primary_region = 'fra'
web = "gunicorn invenio_app.wsgi:application --bind 0.0.0.0:5000 --workers 4"
worker = "celery -A invenio_app.celery worker --beat --events --loglevel=WARNING"

[http_service]
[[services]]
internal_port = 5000
# force_https = true
auto_stop_machines = false
protocol = "tcp"
auto_stop_machines = "off"
auto_start_machines = true
min_machines_running = 1
processes = ['web']

# [[http_service.checks]]
# grace_period = "10s"
# interval = "30s"
# method = "GET"
# timeout = "5s"
# path = "/"
[[services.ports]]
handlers = ["http"]
port = 80
# force_https = true

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

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

[[vm]]
memory = '2gb'
Expand Down

0 comments on commit f2a1948

Please sign in to comment.