Files
music_library/fly.toml
T
Claudio Ortolina 77141fbfaf Reduce machine size to 512MB
With current cover caching headers, the number of requests per page is
generally lower (except for one single spike when image cache expires).
It's therefore acceptable to lower the amount of connections in the
pool, which in turn decreases the amount of needed memory.
2024-12-28 12:26:44 +00:00

40 lines
851 B
TOML

# fly.toml app configuration file generated for music-library-billowing-bird-8038 on 2024-09-27T17:29:03+01:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = 'music-library-billowing-bird-8038'
primary_region = 'lhr'
kill_signal = 'SIGTERM'
[build]
[env]
DATABASE_PATH = '/mnt/music_library/music_library_prod.db'
PHX_HOST = 'music-library.claudio-ortolina.org'
PORT = '8080'
LAST_FM_USER = 'cloud8421'
POOL_SIZE = '10'
[[mounts]]
source = 'music_library'
destination = '/mnt/music_library'
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = 'suspend'
auto_start_machines = true
min_machines_running = 0
processes = ['app']
[http_service.concurrency]
type = 'connections'
hard_limit = 1000
soft_limit = 1000
[[vm]]
memory = '512mb'
cpu_kind = 'shared'
cpus = 1