[GH-ISSUE #924] Automatically skip not found hosts when starting container #495

Closed
opened 2026-02-26 12:08:31 +03:00 by kerem · 3 comments
Owner

Originally created by @FluffyDiscord on GitHub (Mar 19, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/924

Is your feature request related to a problem? Please describe.
I am migrating to another server. I don't have all services installed yet, but I would like to start nginx-ui to validate and configure what I need before other services. Right now container enters infinite loop when backend isn't reachable. nginx: [emerg] host not found in upstream XXX

Describe the solution you'd like
Monitor nginx startup, if this message shows up, disable that site config and maybe output another warning in logs or show it in the nginx-ui itself.

Describe alternatives you've considered
Manually removing symlinks from the mounted volumes.

Additional context

Originally created by @FluffyDiscord on GitHub (Mar 19, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/924 **Is your feature request related to a problem? Please describe.** I am migrating to another server. I don't have all services installed yet, but I would like to start nginx-ui to validate and configure what I need before other services. Right now container enters infinite loop when backend isn't reachable. `nginx: [emerg] host not found in upstream XXX` **Describe the solution you'd like** Monitor nginx startup, if this message shows up, disable that site config and maybe output another warning in logs or show it in the nginx-ui itself. **Describe alternatives you've considered** Manually removing symlinks from the mounted volumes. **Additional context** --
kerem 2026-02-26 12:08:31 +03:00
Author
Owner

@0xJacky commented on GitHub (Apr 2, 2025):

Sorry, automatically deleting the Nginx configuration files directly is not safe. I'm concerned that it might cause production services to be affected due to accidents. Therefore, we won't implement this requirement. Thank you for your suggestion.

<!-- gh-comment-id:2771551383 --> @0xJacky commented on GitHub (Apr 2, 2025): Sorry, automatically deleting the Nginx configuration files directly is not safe. I'm concerned that it might cause production services to be affected due to accidents. Therefore, we won't implement this requirement. Thank you for your suggestion.
Author
Owner

@FluffyDiscord commented on GitHub (Apr 2, 2025):

@0xJacky I am not talking about deleting, but disabling. You are already doing it when nginx-ui is running, you won't enable site config if backend doesn't respond/exist, why can't this be also done while nginx-ui boots up?

<!-- gh-comment-id:2771558961 --> @FluffyDiscord commented on GitHub (Apr 2, 2025): @0xJacky I am not talking about **deleting**, but **disabling**. You are already doing it when nginx-ui is running, you won't enable site config if backend doesn't respond/exist, why can't this be also done while nginx-ui boots up?
Author
Owner

@sqkkyzx commented on GitHub (Jun 7, 2025):

nginx UI is not just for a single site. It is necessary to remove configurations from /etc/nginx/sites-enabled/ that cannot verify upstream when starting up. In your design, deleting from /etc/nginx/sites-enabled/ only disables the site but does not remove the configuration.

The currently implemented solution is extremely dangerous—it's like causing all sites to go down just to draw attention to a single-site incident.

<!-- gh-comment-id:2951797386 --> @sqkkyzx commented on GitHub (Jun 7, 2025): nginx UI is not just for a single site. It is necessary to remove configurations from `/etc/nginx/sites-enabled/` that cannot verify upstream when starting up. In your design, deleting from `/etc/nginx/sites-enabled/` only disables the site but does not remove the configuration. The currently implemented solution is extremely dangerous—it's like causing all sites to go down just to draw attention to a single-site incident.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#495
No description provided.