username Posted November 6, 2015 Share Posted November 6, 2015 I would like to see if anyone can assist me in making an unraid template from jwilder/nginx-proxy. I searched the forum and only found one member mention it. Using this docker image, you can setup your router to forward all inbound port 80/443 traffic from the web to the docker image. The docker image of nginx will read the URL and pass it to the corresponding server in its site list. The site list is dynamically regenerated as you spin up new docker application images such as plex/cp/sab/etc. To register a docker image with the proxy, you add the proper domain name(s) to the parameters of the docker image being launched. It also allows you to register multiple domain names, so you can setup plex.externaldomainname.com and plex.local to point to the same server. Using this setup also allows you to spin up separate instances of the same application. One for external and one for internal. Nginx also supports multiple site specific ssl certs, passwd protection, and more. From here we can then proxy all of Nginx through an application firewall (docker based) for all external trafffic. I would like to learn how to create the unraid templates, but this one seems complex with the way it binds to socks.... This is a combined image of jwilder/docker-gen image and the official nginx image. Jwilder recommends running this as two separate docker images for security, as outlined in the readme. I would prefer using the two image method, but can learn if someone can help me with the "easy" image first. Quote Link to comment
Jammie Posted December 3, 2015 Share Posted December 3, 2015 I attempted to run it using the Community Applications plugin to grab it from Docker Hub, but I couldn't get it to start up. It just exited with code 1, and there was nothing in the logs. Quote Link to comment
CHBMB Posted December 3, 2015 Share Posted December 3, 2015 I would like to see if anyone can assist me in making an unraid template from jwilder/nginx-proxy. I searched the forum and only found one member mention it. Using this docker image, you can setup your router to forward all inbound port 80/443 traffic from the web to the docker image. The docker image of nginx will read the URL and pass it to the corresponding server in its site list. The site list is dynamically regenerated as you spin up new docker application images such as plex/cp/sab/etc. To register a docker image with the proxy, you add the proper domain name(s) to the parameters of the docker image being launched. It also allows you to register multiple domain names, so you can setup plex.externaldomainname.com and plex.local to point to the same server. Using this setup also allows you to spin up separate instances of the same application. One for external and one for internal. Nginx also supports multiple site specific ssl certs, passwd protection, and more. From here we can then proxy all of Nginx through an application firewall (docker based) for all external trafffic. I would like to learn how to create the unraid templates, but this one seems complex with the way it binds to socks.... This is a combined image of jwilder/docker-gen image and the official nginx image. Jwilder recommends running this as two separate docker images for security, as outlined in the readme. I would prefer using the two image method, but can learn if someone can help me with the "easy" image first. We (linuxserver.io) have an Apache container that would suit your needs and we're working on an nginx one... Repo here Apache Quote Link to comment
Jammie Posted December 4, 2015 Share Posted December 4, 2015 I had a look at your Apache container, and it doesn't do the same thing as jwilder/nginx-proxy. Docker container IP addresses are randomised, and unRAID doesn't set a container hostname, so it looks like your Apache container config expects the host IP address in the ProxyPass config. jwilder/nginx-proxy uses docker-gen to read container meta-data and generate nginx confg files from that. Quote Link to comment
CHBMB Posted December 4, 2015 Share Posted December 4, 2015 Gotcha, my bad... sorry, replied originally whilst I was trying to do something else and at my age I should know I can't multitask... Still, I'll ask the guys on #linuxserver.io about this, because it seems pretty interesting. Quote Link to comment
pinion Posted December 4, 2015 Share Posted December 4, 2015 As people are thinking about containers for these things I would like to suggest you think about adding support for Let's Encrypt https://letsencrypt.org/ Quote Link to comment
Jammie Posted December 4, 2015 Share Posted December 4, 2015 As people are thinking about containers for these things I would like to suggest you think about adding support for Let's Encrypt https://letsencrypt.org/ Let's Encrypt already has an official docker here and instructions on how to use it here Quote Link to comment
lonix Posted December 5, 2015 Share Posted December 5, 2015 Back to topic, i am useing thsis image on unraid, ill post my template soon Quote Link to comment
bb12489 Posted December 11, 2015 Share Posted December 11, 2015 Definitely interested in this Quote Link to comment
Wob76 Posted May 24, 2016 Share Posted May 24, 2016 Any update on this, docker-gen sounds very interesting. I am currently using the linuxserver.io Apache server for reverse proxy, but some automation of new containter sounds great. There is a docker with it and nginx combined (https://hub.docker.com/r/jwilder/nginx-proxy/) would be interested if anyone has this running in unraid? Thanks, Wob Quote Link to comment
aptalca Posted May 24, 2016 Share Posted May 24, 2016 There are two nginx containers in the community applications. One has letsencrypt and fail2ban built in Quote Link to comment
Wob76 Posted May 24, 2016 Share Posted May 24, 2016 But do either have docker-gen, it enables automation of the reverse proxy config using docker API. I am yet to try it, the linuxserver.io gave it container of the month, so I was hoping a unraid template might follow. Quote Link to comment
aptalca Posted May 24, 2016 Share Posted May 24, 2016 I'm not too familiar with docker-gen, but setting up the reverse proxy with nginx is very easy and you only have to do it once. There are templates posted in the threads. Quote Link to comment
Wob76 Posted May 25, 2016 Share Posted May 25, 2016 aptalca: Thanks for the reply, so are you saying you don't need to modify for each new container? I currently need to add a new subpath to port mapping for each new container I wish to have internet facing. Thanks, Wob Quote Link to comment
aptalca Posted May 25, 2016 Share Posted May 25, 2016 Here are my config files for nginx: http://lime-technology.com/forum/index.php?topic=43696.msg437353.msg#437353 I add three lines per container gui that is to be proxied. If you add a new container, just edit that single file and add the lines Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.