Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream remote web server #320

Closed
mvthul opened this issue Mar 26, 2020 · 0 comments
Closed

Upstream remote web server #320

mvthul opened this issue Mar 26, 2020 · 0 comments

Comments

@mvthul
Copy link

mvthul commented Mar 26, 2020

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

@nginx-proxy nginx-proxy locked and limited conversation to collaborators May 16, 2024
@buchdag buchdag converted this issue into discussion #615 May 16, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant