Code Monkey home page Code Monkey logo

Comments (8)

TheFehr avatar TheFehr commented on May 21, 2024 4

Wouldn't nginx reload make more sense? This would make sure you don't end up with a nginx that won't start because of syntax errors.

from nginx-ui.

schenkd avatar schenkd commented on May 21, 2024 4

Hello @LucaNerlich, thank you very much for your issue. You're right, of course. The feature is important and will come. The goal for the next release is to manage multiple nginx instances. Since there are environments where nginx is running on both bare-metal and docker, I am looking for a good solution to cover both. I imagine that when integrating an nginx instance into nginx ui the type of the instance is specified (baremetal/docker).

from nginx-ui.

rzabarazesh avatar rzabarazesh commented on May 21, 2024 2

I've been pitching this tool at my workplace and this is the main feature stopping us from using it right now.

from nginx-ui.

kennyparsons avatar kennyparsons commented on May 21, 2024 1

nginx -s reload would be ideal, to make sure nginx falls back if the new configuration fails.

from nginx-ui.

schenkd avatar schenkd commented on May 21, 2024 1

To execute a command on non-dockerized nginx from inside a docker container is going to be tricky / hacky. Im unsure myself, on how a good solution would look like.

My approach would be an SSH connection to the server with the necessary permissions to trigger a reload from nginx. The access data would then have to be stored in the form of a user management system. This would also allow the infrastructure to ensure that everyone is only allowed to do what the admin allows. :)

Best David

from nginx-ui.

LucaNerlich avatar LucaNerlich commented on May 21, 2024

Well, ideally youd build the output of ‚nginx -t‘ into the you as well. Or add a button ‚check‘ and restart/reload afterwards.

True, good point.

from nginx-ui.

TheFehr avatar TheFehr commented on May 21, 2024

nginx -s reload would be ideal, to make sure nginx falls back if the new configuration fails.

But for any of this to work the nginx binary will need to be mounted into the container.

from nginx-ui.

LucaNerlich avatar LucaNerlich commented on May 21, 2024

To execute a command on non-dockerized nginx from inside a docker container is going to be tricky / hacky. Im unsure myself, on how a good solution would look like.

from nginx-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.