DanielDent / docker-nginx-ssl-proxy

SSL Front-End Proxy With Automatic Free Certificate Management
https://hub.docker.com/r/danieldent/nginx-ssl-proxy/
Other
204 stars 68 forks source link

Non-default http ports #7

Closed richardhj closed 6 years ago

richardhj commented 6 years ago

I must not use the default http ports 80 and 443 (it is preserved by macOS Server). So I've chosen different ports but LetsEncrypt does call port 80: sslproxy_1 | http://example.org/.well-known/acme-challenge/aQUorM87vM7pFCRxidfmFFzs_n_MqODBW2tFivinYhk:

services:
  sslproxy:
    image: danieldent/nginx-ssl-proxy
    restart: always
    environment:
      UPSTREAM: 127.0.0.1:8882
      SERVERNAME: example.org
    ports:
      - "89:80"
      - "442:443"
    volumes:
      - …/docker/nextcloud/nginx-conf:/etc/nginx/conf.d
richardhj commented 6 years ago

I realized that the ACME server relies on Port 80 or 443 (or an DNS txt entry). So I'm going to hack the macOS Server apache config in order to free up that ports.