Skip to content

Commit

Permalink
feat: add back db config
Browse files Browse the repository at this point in the history
  • Loading branch information
mgierada committed Jun 3, 2024
1 parent 902ee66 commit 4b00561
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions db/fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# fly.toml app configuration file generated for ohnopg on 2024-06-03T17:23:40+02:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'ohnopg'
primary_region = 'waw'

[env]
PRIMARY_REGION = 'waw'

[[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'

0 comments on commit 4b00561

Please sign in to comment.