-
Notifications
You must be signed in to change notification settings - Fork 823
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
companion bugs default https host for nginx proxy #373
Comments
Hi. Correct me if I'm wrong, but I think the same thing would happen even if one does not use |
Yeah, I think You are right. Today I figured out how to setup this correctly, although it would be nice to have this information in readme or somewhere. So basically I change my claim on this issue from "Bug" to "Needs more information in Readme" EDIT: Solution: I mean that after starting all containters for nginx-proxy and companion, I should copy (generated by myself) certificate files |
Contributions to the project's wiki are welcome :) |
I guess my issue #411 is describing the same thing, but I am not sure if we should simply document this and call it a day. Making up some invalid placeholder certs for default doesn't quite make sense in production. I see that users of How about disabling access to default server in the default template for |
Hi. I noticed that when using companion (separate containers scenario) there are no
default.key
anddefault.crt
in/etc/nginx/certs/
and that makesnginx.tmpl
to not generate a default https (and first) 'server' in configuration that would respond with 503. Because of that, when creating such stack, anyone can query my server on https by ip and nginx will respond with first valid https configuration, and not 503 like it should. How can we fix this?Steps to reproduce:
Start 3 separate containers like in readme: https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion/blob/master/README.md#separate-containers.
Then start a whoami container:
sudo docker run -d --name whoami -h whoami -e VIRTUAL_HOST=whoami.local -e LETSENCRYPT_HOST=whoami.local -e LETSENCRYPT_EMAIL=letsencrypt@local.local LETSENCRYPT_TEST=true --restart=unless-stopped -i -t -P jwilder/whoami
And reach that server but not by whoami.local, reach it on localhost or IP Address. It will respond with whoami.local. It works fine on port 80 (responds with 503), but on 443 it will load whoami server.
The text was updated successfully, but these errors were encountered: