-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up fly.io toml files for deployment (#282)
- **Log connection parameter** - **Disable SSL in wait_for_postgres** - **Add fly.toml** - **Adjust SSL configuration to match fly.io** Fixes #282
- Loading branch information
1 parent
25046f9
commit e8c6c9b
Showing
4 changed files
with
115 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# fly.toml app configuration file generated for ark-nova-stats-api-pg on 2024-07-23T01:04:41-04:00 | ||
# | ||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file. | ||
# | ||
|
||
app = 'ark-nova-stats-api-pg' | ||
primary_region = 'ewr' | ||
|
||
[env] | ||
PRIMARY_REGION = 'ewr' | ||
FLY_SCALE_TO_ZERO = "1h" | ||
|
||
[[mounts]] | ||
source = 'pg_data' | ||
destination = '/data' | ||
|
||
[[services]] | ||
protocol = 'tcp' | ||
internal_port = 5432 | ||
auto_start_machines = true | ||
|
||
[[services.ports]] | ||
port = 5432 | ||
handlers = ['pg_tls'] | ||
|
||
[services.concurrency] | ||
type = 'connections' | ||
hard_limit = 1000 | ||
soft_limit = 1000 | ||
|
||
[[services]] | ||
protocol = 'tcp' | ||
internal_port = 5433 | ||
auto_start_machines = true | ||
|
||
[[services.ports]] | ||
port = 5433 | ||
handlers = ['pg_tls'] | ||
|
||
[services.concurrency] | ||
type = 'connections' | ||
hard_limit = 1000 | ||
soft_limit = 1000 | ||
|
||
[checks] | ||
[checks.pg] | ||
port = 5500 | ||
type = 'http' | ||
interval = '15s' | ||
timeout = '10s' | ||
path = '/flycheck/pg' | ||
|
||
[checks.role] | ||
port = 5500 | ||
type = 'http' | ||
interval = '15s' | ||
timeout = '10s' | ||
path = '/flycheck/role' | ||
|
||
[checks.vm] | ||
port = 5500 | ||
type = 'http' | ||
interval = '15s' | ||
timeout = '10s' | ||
path = '/flycheck/vm' | ||
|
||
[[metrics]] | ||
port = 9187 | ||
path = '/metrics' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# fly.toml app configuration file generated for ark-nova-stats-api on 2024-07-23T01:00:10-04:00 | ||
# | ||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file. | ||
# | ||
|
||
app = 'ark-nova-stats-api' | ||
primary_region = 'ewr' | ||
|
||
[build] | ||
image = 'shaldengeki/ark-nova-stats-api:latest' | ||
|
||
[deploy] | ||
release_command = "/ark_nova_stats/api/migrations/binary" | ||
|
||
[env] | ||
API_PORT = '5000' | ||
FLASK_APP = 'app.py' | ||
FLASK_DEBUG = 'false' | ||
FRONTEND_HOST = 'arknova.ouguo.us' | ||
FRONTEND_PORT = '' | ||
FRONTEND_PROTOCOL = 'https' | ||
|
||
[http_service] | ||
internal_port = 5000 | ||
force_https = true | ||
auto_stop_machines = 'stop' | ||
auto_start_machines = true | ||
min_machines_running = 0 | ||
processes = ['app'] | ||
|
||
[[vm]] | ||
memory = '1gb' | ||
cpu_kind = 'shared' | ||
cpus = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters