-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom script for proxy host. #15
Comments
You're almost there, the advanced config actually gets inserted into the server block and the
|
can't seem to get this working. the generated config looks as following now:
However, it's still missing this section:
But i can't find a way to inject this into the generated config? Aside from editing the template in the docker image, that is. |
@jc21 Thanks for the answere! I've tried, but unfortunatly it didn't work for me. T_T But that's very good hint to learn how to use custom field. :) these even I did, but it shows offline.
refer to @SGStino 's way, I've tried edit directly, but it didn't work. I guess
When I remove that line, I can reach the web, but the web ui doesn't work properly. I can't open container's bash console just like before.
Thanks again! |
@SGStino So this is a bit of a limitation at the moment, you can't specify any custom configuration for hosts that are meant to sit outside of the @zaywalker I'm using the latest Portainer myself (1.16.5 stable Docker version) and I'm not seeing any websocket upgrade requests at all in the interface. Even so, I've added the custom code I first mentioned to my proxy hosts and not only does the config show up on disk as part of the nginx config, it works just fine and reports online. If you have a look at the proxy config template file you'll see where the If v1.19 of Portainer absolutely needs the websocket upgrade, you should only need this advanced config content:
When you save the Host in the interface and the host shows "Offline", hover the "Offline" text and you should see the error in the Tooltip. Let me know what that says |
@zaywalker Ok I was a little bit mistaken, I found out where the api/websocket requests are happening and it was indeed failing for me too. I found the source of the problem and it's actually Portainers documentation that was wrong. This is the advanced config I'm using and I can get to my consoles now:
Note that the |
@jc21 Oh thanks for the solution! It works perfectly!! thanks for the help! even I've learn a lot with this! Thansk! |
First of all, thanks for the awesome proxy manager! it's very easy to use like synology reverse proxy.
It's almost no problem, but some server won't work properly, so I digged in and I found nginx configuration.
https://portainer.readthedocs.io/en/stable/faq.html?highlight=proxy
But the problem is I have no idea where to put this in.. I've tried to use the advanced tab's custom configuration, but it doesn't work..
Any help and how to guides would be great!
Sorry about this noob question.;;
The text was updated successfully, but these errors were encountered: