Comments (4)
The redirector.conf is the default server for traffic on port 80, I think you can add another default server on another port as well.
The redirector only change http to https for any incoming request.
However, with https you will get other errors in case the incoming domain is not present in the certificate provided.
from docker-nginx-certbot.
Can you provide your configs so it is a bit easier for me to see?
A plus is if you provide debug logs as well :)
from docker-nginx-certbot.
Any updates to this?
from docker-nginx-certbot.
Hi, sorry for delay.
Lets presume I have 3 domains on server, which are served by their configs:
default
domain-a.conf
domain-b.conf
in default there is a block:
server{
server_name hello.cz default_server;
location / {
proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://192.168.0.100:80;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/hello.cz/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/hello.cz/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
The intention is: when my server reaches domain not registered in any nginx config it should endup in my default config. But this repo is setting default_server in another vhost, because off handling all renews that end up on http?
from docker-nginx-certbot.
Related Issues (20)
- Reload nginx config without forced certificat renewal? HOT 7
- no alternative certificate subject name matches target host name HOT 3
- High CVE present on latest (jonasal/nginx-certbot:5.0.1-nginx1.25.4) HOT 1
- adding additional info in the http directive HOT 5
- Unable to enable specific ciphers HOT 19
- How to add a wildcard SAN to a certificate of a domain? HOT 2
- Error when running service 'Important file(s) for '/etc/nginx/conf.d/default.conf' are missing or empty' HOT 3
- map variable for server_name HOT 2
- How to create certificates? HOT 7
- Any kind of subdomain HOT 7
- how to use subdomain wildcard? HOT 4
- Unable to renew certificates HOT 4
- How can i define a renew hook in docker-compose environment? HOT 3
- Medium CVEs present on latest image CVE-2023-42363/6 HOT 2
- How to add new config in running container? HOT 2
- Avoid redirecting http -> https? HOT 2
- Consider using Freenginx HOT 6
- Expired certificate is not being replaced anymore HOT 5
- Add a way to automatically delete old, unused certificates HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-nginx-certbot.