SteveLTN / https-portal

A fully automated HTTPS server powered by Nginx, Let's Encrypt and Docker.
MIT License
4.42k stars 296 forks source link

Question about multiple ports / protocols per domain #286

Closed jakobrosenberg closed 2 years ago

jakobrosenberg commented 2 years ago

Hi, how do you handle domains with multiple ports and protocols?

DOMAINS: >
  example-com -> http://example:1234
  example-com -> ws://example:2345

Thanks for a great project!

SteveLTN commented 2 years ago

It is not supported unless you write your own Nginx configuration. Note that port 80 is needed by Let's Encrypt to verify your ownership. You can customize Nginx config, and extend the original, copy and paste the server block, connect to different upstreams.