Skip to content
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

Support for static reverse proxying with SSL #164

Closed
mossholderm opened this issue Feb 8, 2017 · 6 comments
Closed

Support for static reverse proxying with SSL #164

mossholderm opened this issue Feb 8, 2017 · 6 comments
Assignees
Labels
kind/feature-request Issue requesting a new feature status/duplicate This issue / PR is a duplicate of another one

Comments

@mossholderm
Copy link

Add support for proxy destinations that are "off-box" and not in docker containers. For example, It would be great to be able to have an encrypted connection land on the nginx-proxy docker container, and then travel unencrypted to the destination server (which isn't a container).

nginx-proxy supports adding a configuration file to achieve this end, but nginx-letsencrypt has no method to handle generating/managing the certificates for this sort of situation.

Perhaps permit allowing some environment variables for passing in additional hostnames/emails for certificates that should be managed, regardless of container existence?

@ryneeverett
Copy link
Contributor

Dupe of #127, though that one was arguably never resolved.

@ForsakenHarmony
Copy link
Contributor

Yeah, only a workaround, would be interested in this

@JrCs
Copy link
Collaborator

JrCs commented Feb 13, 2017

The best is perhaps to use another solution like traefik

@augusteo
Copy link

if you are still having problem with it, I solved it by using another nginx container to serve the static directory, like so:

# other lines

static-main-site:
     restart: always
     image: nginx:alpine
     volumes:
       - ./static/path:/usr/share/nginx/html:ro
     environment:
       - VIRTUAL_HOST=www.domain.com,domain.com
       - VIRTUAL_NETWORK=nginx-proxy
       - VIRTUAL_PORT=80
       - LETSENCRYPT_HOST=www.domain.com,domain.com
       - LETSENCRYPT_EMAIL=mail@gmail.com

@Pimmetje
Copy link

Pimmetje commented Jul 16, 2017

I would love to be able to put some config somewhere for a reverse https proxy with letsencrypt SSL. This would also work if u for some reason don't want to use docker socket (or u can't).

@buchdag buchdag added the status/duplicate This issue / PR is a duplicate of another one label Feb 2, 2018
@buchdag buchdag self-assigned this Jun 28, 2018
@buchdag buchdag added the kind/feature-request Issue requesting a new feature label Jun 28, 2018
@buchdag
Copy link
Member

buchdag commented Jun 28, 2018

An experimental feature allowing to generate certificates from a config file instead of containers env var (inspired by @ymettier PR #220) has been added to dev.

This instructions are here. Any feedback is welcome.

Closing in favor of #368 so we can keep track of this in a single issue.

@buchdag buchdag closed this as completed Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature-request Issue requesting a new feature status/duplicate This issue / PR is a duplicate of another one
Projects
None yet
Development

No branches or pull requests

7 participants