atomic-server
atomic-server copied to clipboard
Auto-renew TLS requires reboot, takes too long
atomicdata.dev was just down, because the TLS / HTTPS cert was outdated.
I suppose the https check should have some buffer (e.g. one week before being outdated). Also, maybe it should check at runtime and reboot? Not sure.
Maybe Automatic Certificate Management Environment (ACME) integration would be feasible ?
EDIT: ah yes it's already there https://github.com/atomicdata-dev/atomic-server/blob/develop/server/src/https.rs#L173
Just needs runtime timer without wasting a thread to it in runtime - e.g. using interval / ticks
Probably on serve.rs there is plug for re-starting the server context by first pulling server.handle().stop(..)
Just needs runtime timer without wasting a thread to it in runtime - e.g. using interval / ticks
Clever! :D