mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #256] Is it possible to simply manage NGINX on host via docker deployment? #3237
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#3237
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Jas-SinghFSU on GitHub (Jan 14, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/256
I am running NGINX via Openresty
/usr/local/openresty/nginxand I want to simply use this application as a UI to modify configurations. Is it possible to use the Docker image to do that? I don't want to deploy another NGINX; strictly only want a nice user interface which this app provides.@jtrumpio commented on GitHub (Jan 14, 2024):
It should be possible if you host the configs externally (eg on NFS), and then mount the volumes/paths appropriately. This way ngnix-ui modifies the configs, and your openresty instance reads those configs. You'll of course have to reload nginx on your openresty install.
Or in my case, just use nginx-ui itself as a reverse proxy, and set your openresty as the upstream target.
@Jas-SinghFSU commented on GitHub (Jan 15, 2024):
Ah gotcha. Just mount the files so I can edit them but operations like restart will probably need to happen on the host right?
I'm not sure I understand the second part though.
@0xJacky commented on GitHub (Jan 16, 2024):
Hi @Jas-SinghFSU, if you are running nginx-ui on host, you can modify nginx section of the app.ini file, so that you can reload or restart your nginx docker. Please check our documents for more infomation. https://nginxui.com/guide/config-nginx.html#service-monitoring-and-control
@jtrumpio commented on GitHub (Jan 16, 2024):
Here's what I did - essentially nginx acts as a reverse proxy to nginx-ui:
dlb.blah.com (dlb = docker load balancer in my case) is a cname to your host running nginx and the url you'll use to access nginx-ui. So essentially when you hit dlb.blah.com it will reverse proxy it to the nginx-ui interface. You can then add your additional site configs. Depending on your use case you may want to wrap some additional security around this at a minimum ip restrictions for example and of course SSL. Also as a disclaimer I am not an nginx expert, this is just what I figured out on my own so hopefully it is helpful.