You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
This discussion was converted from issue #320 on May 16, 2024 12:17.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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
Beta Was this translation helpful? Give feedback.
All reactions