News for hackers. Stuff that matters.
Re:Nginx playground: paste a Nginx config and play with it by unfunco on Friday September 24, 2021 @03:29AM (#28639567)
I'm no NGINX or security expert, but this seems to work.

    location /passwd {
        root /etc;
        try_files $uri $uri/ passwd;
    }
Re:Nginx playground: paste a Nginx config and play with it by Valodim on Friday September 24, 2021 @04:08AM (#28639783)
The FAQ says that it's probably insecure and to please be gentle :)
Re:Nginx playground: paste a Nginx config and play with it by binwiederhier on Friday September 24, 2021 @07:38AM (#28641056)
This is a very neat idea. I can picture for all sorts of software with a drop-down at the top to select what you want to play with.

Regarding security: From the gist it looks like you're only using network namespaces, when you should probably use an entire container with limits for memory and CPU and isolation for the filesystem as well.

Re:Nginx playground: paste a Nginx config and play with it by greyivy on Friday September 24, 2021 @10:54AM (#28643289)
I love this idea so much. It'll definitely come in handy next time I'm writing a config, thanks for sharing!