in reply to Re^2: Privilege reduction with start_server / plackup
in thread Privilege reduction with start_server / plackup
It's Twiggy for the non-blocking.
Ah, yes, I see, and I think you're right that Starman doesn't support that. It looks like neither Server::Starter or Twiggy support changing the UID/GID natively. What I learned in writing the script I linked to was that it basically has to be done by the server itself, and not by some tool launching that server, because it first needs to open the ports, and then reduce its privileges. You could of course consider putting the server behind an nginx proxy, but that's also an extra component to maintain. Here's a sub I wrote once to manually set the UID and GID with as much error checking as possible.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Privilege reduction with start_server / plackup
by hippo (Archbishop) on Apr 17, 2020 at 09:37 UTC |