Jump to content
Djoss

[Support] Djoss - Nginx Proxy Manager

116 posts in this topic Last Reply

Recommended Posts

Support for Nginx Proxy Manager docker container

 

Application Name: Nginx Proxy Manager
Application Site: https://nginxproxymanager.jc21.com
Docker Hub: https://hub.docker.com/r/jlesage/nginx-proxy-manager/
Github: https://github.com/jlesage/docker-nginx-proxy-manager

 

Make sure to look at the complete documentation, available on Github !


Post any questions or issues relating to this docker in this thread.

  • Like 4

Share this post


Link to post

How is this different from the letsencrypt docker by ls? Just curious. I have all my reverse proxy sites configured through that. Is this in addition to it, or does it compliment it? 

Share this post


Link to post
15 minutes ago, Jclendineng said:

How is this different from the letsencrypt docker by ls? Just curious. I have all my reverse proxy sites configured through that. Is this in addition to it, or does it compliment it? 

I never used the one from ls, but I think both containers offer similar functionalities.  The main difference is that with Nginx Proxy Manager, everything is easily configured via a nice UI.  No need to manually edit files.

  • Upvote 1

Share this post


Link to post

Nice! Will def give this a try later. Does the NGINX bundled with this have TLS13 compiled yet? Or are you using alpine. Options are good :D

Share this post


Link to post
16 minutes ago, Jclendineng said:

Nice! Will def give this a try later. Does the NGINX bundled with this have TLS13 compiled yet? Or are you using alpine. Options are good :D

Yes the container is based on Alpine 3.8, so to my knowledge, there is no TLS1.3 support yet.

Share this post


Link to post

Getting this when I try and add a user (and an internal error popup appears)

[2018-12-19] [19:49:59] [Access ] › ✔ success Built Access file #8 for: Andrew
[2018-12-19] [19:49:59] [Express ] › ⚠ warning Command failed: /usr/bin/htpasswd -b "/data/access/8" "Andrew" "123"

/bin/sh: /usr/bin/htpasswd: not found

Additionally, my external browser does ask for a user name and browser, but it won't accept it.

Share this post


Link to post
36 minutes ago, Squid said:

Getting this when I try and add a user (and an internal error popup appears)


[2018-12-19] [19:49:59] [Access ] › ✔ success Built Access file #8 for: Andrew
[2018-12-19] [19:49:59] [Express ] › ⚠ warning Command failed: /usr/bin/htpasswd -b "/data/access/8" "Andrew" "123"

/bin/sh: /usr/bin/htpasswd: not found

 

Thanks for reporting, I just fixed this.

37 minutes ago, Squid said:

Additionally, my external browser does ask for a user name and browser, but it won't accept it.

Are you talking about the scenario where an access list is used?  If yes, then it should work with the fix for the error you mentioned earlier.

  • Like 1

Share this post


Link to post

Perfect.  Thanks.  I had been meaning to spend a weekend sometime and figure out Let'sEncrypt, but this took me a whopping 5 minutes to get a service reverse proxied.  Downside though is that it still is 5 minutes that I'll never get back :(

 

Now if the author will add in subfolder support, then everything will be rocking.

Share this post


Link to post
25 minutes ago, amacdonald said:

This is brilliant!  Any idea on why my nextcloud won't work though?  Everything else is working spot on :)

did you configure Nextcloud to work with https ?

Share this post


Link to post

I seem to just be getting 502 Bad Gateway for all my proxied hosts. It's able to get and generate the LetsEncrypt cert, but can't seem to get anything else.

Share this post


Link to post
3 hours ago, Raz said:

did you configure Nextcloud to work with https ?

same problem here. i get this error:

400 Bad Request
The plain HTTP request was sent to HTTPS port

 

Share this post


Link to post
15 minutes ago, Wuast94 said:

same problem here. i get this error:


400 Bad Request
The plain HTTP request was sent to HTTPS port

 

ok, we are in the same boat sir 😂

Let's see if someone more experienced can work it out somehow.

Anyway, this container is the most usefull i am running right now. I can't believe the simplicity of this tool :D

Share this post


Link to post
3 hours ago, redeuxx said:

I seem to just be getting 502 Bad Gateway for all my proxied hosts. It's able to get and generate the LetsEncrypt cert, but can't seem to get anything else.

This is usually due to an incorrect configured forwarding IP and/or port.

Share this post


Link to post

The problem with nextcloud is that it runs on HTTPs.  It seems that Nginx Proxy Manager doesn't handle forwarding to an HTTPs backend.  I will see what I can do...

Share this post


Link to post
30 minutes ago, Djoss said:

This is usually due to an incorrect configured forwarding IP and/or port.

I've just tested this out on the Docker version of Guacamole in community apps. It looks like it works fine when the app is set to Bridge mode, but I get a Bad Gateway error when using a Custom IP.

Share this post


Link to post
13 hours ago, Raz said:

ok, we are in the same boat sir 😂

Let's see if someone more experienced can work it out somehow.

Anyway, this container is the most usefull i am running right now. I can't believe the simplicity of this tool :D

I'm also in this boat.

 

I feel like it should be really easy.  In the manager i even tried appending https but to no avail.  Happy to try any suggestions.  

 

10 hours ago, redeuxx said:

I've just tested this out on the Docker version of Guacamole in community apps. It looks like it works fine when the app is set to Bridge mode, but I get a Bad Gateway error when using a Custom IP.

 

Any idea if this would work for nextcloud and i can try?  Keen to get this working as it's stupid simple to manage!

Share this post


Link to post

No real support needed, Just wanted to say thanks. this was so simple to use subdomains.  I had to remember to add a new record to my Cloudflare DNS, SO thanks again.  

 

update: haven't tried everything yet but some simply sub domains for ombi, and organizer docker. 

Edited by SoloLab

Share this post


Link to post
14 hours ago, redeuxx said:

I've just tested this out on the Docker version of Guacamole in community apps. It looks like it works fine when the app is set to Bridge mode, but I get a Bad Gateway error when using a Custom IP.

This is expected if you try to forward to a service running on unRAID itself.  When using a custom IP, you are using the macvlan network.  In this mode, a container cannot reach the host:

 

Quote

Communication with the Docker host over macvlan

  • When using macvlan, you cannot ping or communicate with the default namespace IP address. For example, if you create a container and try to ping the Docker host’s eth0, it will not work. That traffic is explicitly filtered by the kernel modules themselves to offer additional provider isolation and security.

 

See https://docs.docker.com/v17.09/engine/userguide/networking/get-started-macvlan/

Share this post


Link to post

@amacdonald, currently, Nginx Proxy Manager doesn't have the support for forwarding to a HTTPs backend/server.

 

In the meantime, if you really want to have your nexcloud forwarding working, you can manually edit the generated Nginx config to make your proxy works:

In /mnt/user/appdata/NginxProxyManager/nginx/proxy_host/, find the file associated to nextcloud. You then need replace the directive "include conf.d/include/proxy.conf" with:

add_header       X-Served-By $host;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto  $scheme;
proxy_set_header X-Forwarded-For    $remote_addr;
proxy_pass       https://$server:$port;

Finally, restart the container.

Note: if you do a change from the UI, the config file will be overwritten and you will loose your changes!

Edited by Djoss

Share this post


Link to post
55 minutes ago, Djoss said:

@amacdonald, currently, Nginx Proxy Manager doesn't have the support for forwarding to a HTTPs backend/server.

 

In the meantime, if you really want to have your nexcloud forwarding working, you can manually edit the generated Nginx config to make your proxy works:

In /mnt/user/appdata/NginxProxyManager/nginx/proxy_host/, find the file associated to nextcloud. You then need replace the directive "include conf.d/include/proxy.conf" with:


add_header       X-Served-By $host;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto  $scheme;
proxy_set_header X-Forwarded-For    $remote_addr;
proxy_pass       https://$server:$port;

Finally, restart the container.

Note: if you do a change from the UI, the config file will be overwritten and you will loose your changes!

Awesome.  Thanks for the help!

 

Share this post


Link to post

Man, I wish this was available before I customized my Letsencrypt setup. This is so clean, very nice work.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now