atomic-server icon indicating copy to clipboard operation
atomic-server copied to clipboard

Auto-renew TLS requires reboot, takes too long

Open joepio opened this issue 1 year ago • 2 comments

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.

joepio avatar Mar 12 '24 09:03 joepio

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(..)

pinkforest avatar Apr 24 '24 16:04 pinkforest

Just needs runtime timer without wasting a thread to it in runtime - e.g. using interval / ticks

Clever! :D

joepio avatar Apr 25 '24 08:04 joepio