-
Notifications
You must be signed in to change notification settings - Fork 617
Description
Hi guys i got a question.
Im trying to use jwilder with letsencrypt companion to automate ssl en nginx config. I have almost figured it out to run a dummy container for creating ssl config and nginx config to forward to a non host/docker container web server.
Im using:
docker run -d
--name test
-e VIRTUAL_HOST=Sub.domain.com
-e VIRTUAL_PORT=80
-e UPSTREAM_NAME=192.168.1.1
-e LETSENCRYPT_HOST=Sub.domain.com
-e LETSENCRYPT_EMAIL=name@domain.com
cwempe/docker-dummy:latest
The only thing whats making this not work is that docker-gen creates the config with the upstream server ip of the dummy container. If I change the ip to the remote web server and reload nginx it works!!
Only if I restart nginx-proxy it will fail offcourse because it’s getting recreated.
Is there a option or possibilitie to set a custom server IP in the config?
Example:
Sub.domain.com
upstream sub.domain.com {
## Can be connected with "default" network
# sub
server custom server ip;
Any help would be great if this works than Linux with nginx from jwilder is the best there is webserver I could possible imagine <3
#remotewebsservergojwilder