[GH-ISSUE #140] Multiple domains #1306

Closed
opened 2026-04-16 07:57:04 -05:00 by GiteaMirror · 6 comments
Owner

Originally created by @miloschwartz on GitHub (Feb 1, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/140

Originally assigned to: @miloschwartz on GitHub.

Discussed in https://github.com/orgs/fosrl/discussions/68

Originally posted by maieredv-manuel January 16, 2025
Hey!

ive installed pangolin right now - looks nice :-) Great work!
Only downside i have until now is, that i cant add multiple Base Domains.
Im using different base domains for different services

own services are on servicexyz.mydomain.com
customer services are on servicexyz.mydomain.cloud

Is there any way to do this?

Originally created by @miloschwartz on GitHub (Feb 1, 2025). Original GitHub issue: https://github.com/fosrl/pangolin/issues/140 Originally assigned to: @miloschwartz on GitHub. ### Discussed in https://github.com/orgs/fosrl/discussions/68 <div type='discussions-op-text'> <sup>Originally posted by **maieredv-manuel** January 16, 2025</sup> Hey! ive installed pangolin right now - looks nice :-) Great work! Only downside i have until now is, that i cant add multiple Base Domains. Im using different base domains for different services > own services are on servicexyz.mydomain.com > customer services are on servicexyz.mydomain.cloud Is there any way to do this? </div>
GiteaMirror added the new feature label 2026-04-16 07:57:04 -05:00
Author
Owner

@dmull commented on GitHub (Mar 31, 2025):

I see that this is marked done but not seeing any documentation on how to add the additional domains. Just wondering if I am overlooking things.

<!-- gh-comment-id:2764888626 --> @dmull commented on GitHub (Mar 31, 2025): I see that this is marked done but not seeing any documentation on how to add the additional domains. Just wondering if I am overlooking things.
Author
Owner

@jibsaram commented on GitHub (Mar 31, 2025):

I see that this is marked done but not seeing any documentation on how to add the additional domains. Just wondering if I am overlooking things.

I'm not sure if this is mentioned in more detail elsewhere, but the documentation here describes the domains configuration section. If you manually edit your config.yml file you'll find that there's already one domain configured (the one you set up with your Pangolin installation). There you can add additional domains, each with a unique key. E.g.:

# (...snip...)
domains:
  domain1:
    base_domain: yourdomain.com
    cert_resolver: letsencrypt
    prefer_wildcard_cert: false
  domain2:
    base_domain: myseconddomain.com
    cert_resolver: letsencrypt
    prefer_wildcard_cert: false

I hope this helps!

<!-- gh-comment-id:2764908560 --> @jibsaram commented on GitHub (Mar 31, 2025): > I see that this is marked done but not seeing any documentation on how to add the additional domains. Just wondering if I am overlooking things. I'm not sure if this is mentioned in more detail elsewhere, but the [documentation here](https://docs.fossorial.io/Pangolin/Configuration/config#domains) describes the `domains` configuration section. If you manually edit your `config.yml` file you'll find that there's already one domain configured (the one you set up with your Pangolin installation). There you can add additional domains, each with a unique key. E.g.: ```yaml # (...snip...) domains: domain1: base_domain: yourdomain.com cert_resolver: letsencrypt prefer_wildcard_cert: false domain2: base_domain: myseconddomain.com cert_resolver: letsencrypt prefer_wildcard_cert: false ``` I hope this helps!
Author
Owner

@dmull commented on GitHub (Mar 31, 2025):

Oh, I will check this out tomorrow. Thanks for the quick response!Sent from my iPhoneOn Mar 30, 2025, at 8:53 PM, Dave Jansen @.***> wrote:

I see that this is marked done but not seeing any documentation on how to add the additional domains. Just wondering if I am overlooking things.

I'm not sure if this is mentioned in more detail elsewhere, but the documentation here describes the domains configuration section. If you manually edit your config.yml file you'll find that there's already one domain configured (the one you set up with your Pangolin installation). There you can add additional domains, each with a unique key. E.g.:

(...snip...)

domains:
domain1:
base_domain: yourdomain.com
cert_resolver: letsencrypt
prefer_wildcard_cert: false
domain2:
base_domain: myseconddomain.com
cert_resolver: letsencrypt
prefer_wildcard_cert: false
I hope this helps!—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

jibsaramnim left a comment (fosrl/pangolin#140)

I see that this is marked done but not seeing any documentation on how to add the additional domains. Just wondering if I am overlooking things.

I'm not sure if this is mentioned in more detail elsewhere, but the documentation here describes the domains configuration section. If you manually edit your config.yml file you'll find that there's already one domain configured (the one you set up with your Pangolin installation). There you can add additional domains, each with a unique key. E.g.:

(...snip...)

domains:
domain1:
base_domain: yourdomain.com
cert_resolver: letsencrypt
prefer_wildcard_cert: false
domain2:
base_domain: myseconddomain.com
cert_resolver: letsencrypt
prefer_wildcard_cert: false
I hope this helps!

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

<!-- gh-comment-id:2764958428 --> @dmull commented on GitHub (Mar 31, 2025): Oh, I will check this out tomorrow. Thanks for the quick response!Sent from my iPhoneOn Mar 30, 2025, at 8:53 PM, Dave Jansen ***@***.***> wrote: I see that this is marked done but not seeing any documentation on how to add the additional domains. Just wondering if I am overlooking things. I'm not sure if this is mentioned in more detail elsewhere, but the documentation here describes the domains configuration section. If you manually edit your config.yml file you'll find that there's already one domain configured (the one you set up with your Pangolin installation). There you can add additional domains, each with a unique key. E.g.: # (...snip...) domains: domain1: base_domain: yourdomain.com cert_resolver: letsencrypt prefer_wildcard_cert: false domain2: base_domain: myseconddomain.com cert_resolver: letsencrypt prefer_wildcard_cert: false I hope this helps!—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***> jibsaramnim left a comment (fosrl/pangolin#140) I see that this is marked done but not seeing any documentation on how to add the additional domains. Just wondering if I am overlooking things. I'm not sure if this is mentioned in more detail elsewhere, but the documentation here describes the domains configuration section. If you manually edit your config.yml file you'll find that there's already one domain configured (the one you set up with your Pangolin installation). There you can add additional domains, each with a unique key. E.g.: # (...snip...) domains: domain1: base_domain: yourdomain.com cert_resolver: letsencrypt prefer_wildcard_cert: false domain2: base_domain: myseconddomain.com cert_resolver: letsencrypt prefer_wildcard_cert: false I hope this helps! —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Author
Owner

@dmull commented on GitHub (Mar 31, 2025):

This did in fact work, and flawless at that! Thank you for showing me how to add the multiple domains. I did see it in the link you provided, but was worried about how to do it. I followed your screenshot and it worked flawless!

I think I am going to snag the lifetime support for this project as I can really see myself using this in my homelab and looking down ports.

Thanks again for the clearification!

<!-- gh-comment-id:2766076243 --> @dmull commented on GitHub (Mar 31, 2025): This did in fact work, and flawless at that! Thank you for showing me how to add the multiple domains. I did see it in the link you provided, but was worried about how to do it. I followed your screenshot and it worked flawless! I think I am going to snag the lifetime support for this project as I can really see myself using this in my homelab and looking down ports. Thanks again for the clearification!
Author
Owner

@orhanveli commented on GitHub (Apr 3, 2025):

Hey guys,

This is a great feature, thanks for the great job. I added the second domain, and it seems working with letsencrypt certificate provider.

I tried to use an already existing wildcard certificate for the domain I added, but couldn't make it work. Is there an any example config that you can share for inspiration?

<!-- gh-comment-id:2774753466 --> @orhanveli commented on GitHub (Apr 3, 2025): Hey guys, This is a great feature, thanks for the great job. I added the second domain, and it seems working with `letsencrypt` certificate provider. I tried to use an already existing wildcard certificate for the domain I added, but couldn't make it work. Is there an any example config that you can share for inspiration?
Author
Owner

@miloschwartz commented on GitHub (Apr 3, 2025):

@orhanveli You may need to define a second cert resolver for your other domain. The way this works is you define the resolver with Traefik in the traefik_config.yml file, then reference that resolver when defining the domain in Pangolin's config.yml file.

https://doc.traefik.io/traefik/reference/install-configuration/tls/certificate-resolvers/acme/
https://docs.fossorial.io/Pangolin/Configuration/config#domains

<!-- gh-comment-id:2776773996 --> @miloschwartz commented on GitHub (Apr 3, 2025): @orhanveli You may need to define a second cert resolver for your other domain. The way this works is you define the resolver with Traefik in the `traefik_config.yml` file, then reference that resolver when defining the domain in Pangolin's `config.yml` file. https://doc.traefik.io/traefik/reference/install-configuration/tls/certificate-resolvers/acme/ https://docs.fossorial.io/Pangolin/Configuration/config#domains
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#1306