November 6, 201510 yr 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.
December 3, 201510 yr 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.
December 3, 201510 yr 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
December 4, 201510 yr 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.
December 4, 201510 yr 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.
December 4, 201510 yr 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/
December 4, 201510 yr 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
May 24, 201610 yr 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
May 24, 201610 yr There are two nginx containers in the community applications. One has letsencrypt and fail2ban built in
May 24, 201610 yr 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.
May 24, 201610 yr 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.
May 25, 201610 yr 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
May 25, 201610 yr 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
Archived
This topic is now archived and is closed to further replies.