I’m running a node docker app on a custom subdomain, devnull.noreply.zone. That app/domain only does email things, but I’d like to host some html there to explain what it does in case people manually navigate to it. I was excited to see that the [[statics]] config would save me from going multi-process to do this, but I’m having trouble getting it to work.
Here’s my fly.toml:
app = "noreplyzone-ingress"
kill_signal = "SIGINT"
kill_timeout = 5
[env]
[experimental]
auto_rollback = true
[[statics]]
guest_path = "/app/static"
url_prefix = "/"
[[services]]
http_checks = []
internal_port = 25
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
port = 25
[[services.ports]]
port = 465
[[services.ports]]
port = 587
I use fly to build my image, and I think the file is set up properly going by this:
$ flyctl ssh console
Connecting to top1.nearest.of.noreplyzone-ingress.internal... complete
# cat /app/static/index.html
<html>
This domain handles mail processing for <a href="https://www.noreply.zone/">www.noreply.zone</a>.
</html>
There’s nothing in the logs about statics. flyctl config display
shows this under statics (the processes bit seems interesting, but I’m not sure what it should show normally):
"statics": [
{
"cache_key": "___app_static",
"guest_path": "/app/static",
"processes": [],
"url_prefix": "/"
}
]
Any ideas? I feel like I must be missing something obvious.