Giter Site home page Giter Site logo

Comments (5)

Valian avatar Valian commented on July 30, 2024

Could you provide both logs from the container and start configuration? That error usually means that generation was not successful and container is using a fallback, self-generated certificate.

from docker-nginx-auto-ssl.

pietru2004 avatar pietru2004 commented on July 30, 2024

Long story short it is school project...
Also the container running docker-nginx-auto-ssl image didn't give any log - checked with docker log -t container name

docker compose config section

  nginx:
    image: valian/docker-nginx-auto-ssl
    restart: on-failure
    ports:
      - 80:80
      - 443:443
    volumes:
      - ./nginx/conf.d:/etc/nginx/conf.d
      - ./nginx/certs:/etc/resty-auto-ssl
    environment:
      ALLOWED_DOMAINS: 'subdomain1.domain.edu.pl;subdomain2.domain.edu.pl'
      SITES: 'subdomain1.domain.edu.pl=app:3000;subdomain2.domain.edu.pl=db:8090'
      FORCE_HTTPS: true
    depends_on:
      - app

Also subdomain1.domain and subdomain2.domain are replacements for actual domains(just so nobody tries to DDoS my school)
Also I checked and it gives CN=sni-support-required-for-valid-ssl and from what I checked it has place in fallback certgenerates

Note:
Also the SSL was done finaly with not dockerized nginx and certbot cause container did not work and I needed to make it work.
non the less I still want to use this image for personal website for auto SSL so...

from docker-nginx-auto-ssl.

pietru2004 avatar pietru2004 commented on July 30, 2024

found other way to gen ssl

from docker-nginx-auto-ssl.

Valian avatar Valian commented on July 30, 2024

Sorry for a late reply!

Just for reference - I think in your case ALLOWED_DOMAINS was wrong. It should be a regex, like (subdomain1|subdomain2).domain.edu.pl, not a semicolon-separated list. Your current value couldn't work.

from docker-nginx-auto-ssl.

pietru2004 avatar pietru2004 commented on July 30, 2024

I found nginx proxy manager and think it will work, also at school project we just used certbot and not conterized nginx

from docker-nginx-auto-ssl.

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.