Skip to content

Automatically skip not found hosts when starting container #924

Open
@FluffyDiscord

Description

@FluffyDiscord

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

Activity

0xJacky

0xJacky commented on Apr 2, 2025

@0xJacky
Owner

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.

FluffyDiscord

FluffyDiscord commented on Apr 2, 2025

@FluffyDiscord
Author

@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?

reopened this on Apr 2, 2025
added
dockerThis issue is related to the Docker
on Apr 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dockerThis issue is related to the DockerenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Automatically skip not found hosts when starting container · Issue #924 · 0xJacky/nginx-ui