I have a wordpress application (connected to a planetscale database) and a varnish caching proxy behind it. I only have 1 machine per app and I want them to always be online without going to sleep. How can I do this correctly for a wordpress app (which is not exposed to the external internet)?
wordpress/fly.toml
:
app = "my-app"
primary_region = "lhr"
kill_signal = "SIGINT"
kill_timeout = "5s"
[experimental]
auto_rollback = true
[env]
PRIMARY_REGION = "lhr"
[mounts]
source = "my_app_data"
destination = "/var/www/html/web/app/uploads"
varnish/fly.toml
:
app = "proxy-my-app"
primary_region = "lhr"
[http_service]
internal_port = 80
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 1
[http_service.concurrency]
type = "requests"
soft_limit = 200
hard_limit = 250