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

expose port 80 in docker-compose.yml when enableAutoHTTPS is true #248

Open
b2daniel opened this issue Jan 10, 2025 · 0 comments
Open

expose port 80 in docker-compose.yml when enableAutoHTTPS is true #248

b2daniel opened this issue Jan 10, 2025 · 0 comments

Comments

@b2daniel
Copy link

Describe the bug
enableAutoHTTPS fails to get certificates as port 80 is not exposed for verification requests

How to Reproduce

  1. set up Openslides Instance
  2. configure enableAutoHTTPS: true in myconfig.yml
  3. ./openslides config . -c myconfig.yml

=> Port 80 is not exposed in proxy container

also adding:

          services:
            proxy:
              environment:
                EXTERNAL_ADDRESS: {{ domain }}
                # Use letsencrypt staging environment for testing
                # ACME_ENDPOINT: https://acme-staging-v02.api.letsencrypt.org/directory
              ports:
                - 0.0.0.0:80:8001

to myconfig.yml does not add port 80 to docker-compose.yml

also tried to configure in myconfig:

          services:
            proxy:
              environment:
                EXTERNAL_ADDRESS: {{ domain }}
                # Use letsencrypt staging environment for testing
                # ACME_ENDPOINT: https://acme-staging-v02.api.letsencrypt.org/directory
              AdditionalContent
                ports:
                  - 0.0.0.0:80:8001

this adds "ports:" a second time instead of adding port 80 under the existing ports node

Expected behavior
we can build a running LetsEncrypt Auto-Cert-Config docker-compose.yml by creation of a proper custom config file instead of manually patching docker-compose.yml after every update ;-)

System information

  • OpenSlides version: [4.2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant