TCB13

joined 2 years ago
[–] TCB13@lemmy.world 2 points 1 month ago

@Vendetta9076@sh.itjust.works latest code pushed into the repo splits the config into it's own file.

[–] TCB13@lemmy.world 1 points 1 month ago (1 children)

Not really incompatible, PHP provides configurable shared memory across processes that survive even if fastcgi releases every process and just keeps something idle for new requests.

[–] TCB13@lemmy.world 2 points 1 month ago* (last edited 1 month ago) (3 children)

don’t know a lot about fastcgi, but looking it up it seems like it also keeps a persistent process running to avoid execution overhead

More of less, the good thing about PHP + fastcgi is that it keeps a configure amount of minimum persistent processes (plus a dynamic number) to avoid execution overhead like you said... now there's an important detail, PHP processes are generic, meaning if you've 50 apps hosted in your server they can all be served with just one persistent process. No need to spin up 50 processes for each app like with node/go etc.

Supervisors shutting down containers/processes are good, but starting up is slow compared to the single PHP idle process ready to go for any app. :)

[–] TCB13@lemmy.world -2 points 1 month ago* (last edited 1 month ago) (5 children)

Exactly my situation. Thanks @mlunar@lemmy.world. The only way this could be done better was to do it in PHP / have fastcgi so it wouldn't require a constantly running background process specifically for it. People can say a lot of things about PHP, but nothing beats the fastcgi model.

[–] TCB13@lemmy.world 0 points 7 months ago* (last edited 7 months ago) (2 children)

I get the point, but don’t forget those “secrets” are bcrypt hashes. Not really reversible.

 

uSentry is a lightweight, self-hosted Identity and Access Management (IAM) and Single Sign-On (SSO) solution designed for homelab and small-scale environments.

⚡ A single PHP file. < 400 lines of code. No database. No background processes. No cloud. Just works. ⚡

Most IAM and SSO solutions require databases, certificates and background services baked into a dozen containers. This is all fine but also also overkill for homelabs and impossible for low-power ARM devices. uSentry is different, it isn't pretty but it sucks less for a lot of use cases.

Enjoy!