Skip to content

Commit

Permalink
generic fly service configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Nov 6, 2024
1 parent f2a1948 commit e4b7127
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions fly/applications/caddy/fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,23 @@
app = 'rogue-scholar-caddy'
primary_region = 'fra'

[http_service]
[[services]]
internal_port = 8080
force_https = true
auto_stop_machines = 'stop'
protocol = "tcp"
auto_stop_machines = "off"
auto_start_machines = true
min_machines_running = 0
min_machines_running = 1
processes = ['app']

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

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

[[vm]]
memory = '1gb'
cpu_kind = 'shared'
Expand Down

0 comments on commit e4b7127

Please sign in to comment.