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

DOMAINS router? #293

Closed fboucquez closed 2 years ago

fboucquez commented 2 years ago

Hi @SteveLTN , thanks for your project!

Is it possible to have 2 services behind 2 domains like:

'service1.mydomain.io -> http://service1:100/'
'service2.mydomain.io -> http://service2:200/'

service1 and service2 are 2 containers running on the same compose. Both domains would point to the same ip.

There are some guides related but not quite:

https://github.com/SteveLTN/https-portal#multiple-domains () https://github.com/SteveLTN/https-portal#serving-static-sites (2 domain but to static files)

SteveLTN commented 2 years ago

Yes, you can. I should update the document to be more conclusive. Just do

DOMAINS: “a.com -> http://seevice1:1000, b.com -> http://service2:8080

On Wed, 20 Oct 2021 at 5:51 PM fboucquez @.***> wrote:

Hi @SteveLTN https://github.com/SteveLTN , thanks for your project!

Is it possible to have 2 services behind 2 domains like:

'service1.mydomain.io -> http://service1:100/' 'service2.mydomain.io -> http://service2:200/'

service1 and service2 are 2 containers running on the same compose. Both domains would point to the same ip.

There are some guides related but not quite:

https://github.com/SteveLTN/https-portal#multiple-domains () https://github.com/SteveLTN/https-portal#serving-static-sites (2 domain but to static files)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SteveLTN/https-portal/issues/293, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD4AZYIFVOMIP6H5TCQXM3UH3QP3ANCNFSM5GL7TEVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

fboucquez commented 2 years ago

Yes! I just tried that and it worked out of the box!!! Awesome!

Yes, one liner in readme can help newies like me

SteveLTN commented 2 years ago

Sure!

On Wed, 20 Oct 2021 at 6:26 PM fboucquez @.***> wrote:

Yes! I just tried that and it worked out of the box!!! Awesome!

Could we add a sentence about it in the readme?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SteveLTN/https-portal/issues/293#issuecomment-947832359, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD4AZZKSU27SVOVZ5J54B3UH3UUZANCNFSM5GL7TEVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

SteveLTN commented 2 years ago

I updated the document.