mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #506] Automagic routing for docker-containers #432
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#432
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 @Xantios on GitHub (Jul 15, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/506
Is your feature request related to a problem? Please describe.
The problem if any, is my own OCD & lazyness.
Software like Treafik and JWilder's nginx proxy all have the ability to automatically route to a docker-container based on a label or env flag.
My goal would be to have similar behaviour in nginx-proxy-manager so i tried implementing something like that.
However I cant seem to be able to POST to the API.
Describe the solution you'd like
As far as i can tell it should be possible to do a POST request to
/api/nginx/proxy-hostsIs telling me i miss a token, fair enough. however if i try to post to http://server:3081/tokens it also tells me to get lost.
Any way to get this up and running?
Describe alternatives you've considered
Snooping around in the code. but cant seem to find why one would do this
Update: one should use the
/api/tokens/to get the token. now lets try to create a host again. will update asapUpdate: I can now create a vhost from a shell, so i should be able to manage it from my Docker events. Is there any interrest for a PR ?
@Xantios commented on GitHub (Jul 15, 2020):
Update: Turns out you can do this !
@Xantios commented on GitHub (Jul 20, 2020):
Update: I wrote a little NodeJS utility to talk to the API and do some 'fancy' auto routing
https://github.com/Xantios/nginx-proxy-manager-assistent