Coder Social home page Coder Social logo

Comments (4)

JonasAlfredsson avatar JonasAlfredsson commented on August 16, 2024 1

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.

JonasAlfredsson avatar JonasAlfredsson commented on August 16, 2024

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.

JonasAlfredsson avatar JonasAlfredsson commented on August 16, 2024

Any updates to this?

from docker-nginx-certbot.

CoWayger avatar CoWayger commented on August 16, 2024

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?

Link

from docker-nginx-certbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.