mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-06 20:59:07 -05:00
[GH-ISSUE #1645] pangolin resources are overridden when the full-domain as the base domain via blueprint #1969
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wzsanders on GitHub (Oct 9, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/1645
Originally assigned to: @oschwartz10612 on GitHub.
Describe the Bug
When setting full-domain as a registered base domain (see below) via pangolin docker blueprints, the addresses for other docker blueprints that were applied are changed to have their address modified to the base domain, even if it was previously listed as subdomain.base.domain.
If the full-domain below is a subdomain, this works fine and the entry is created as expected.
Adding the resource via the Pangolin Web UI and leaving the subdomain blank results in this configuration working with no issues. It's just the addition of the new resource when coming from blueprints.
When adding via blueprint.
The tcp proxy is never started.
When adding via the Web UI.
Environment
To Reproduce
Follow the guide and add the relevant configuration for your DNS resolver implementation, etc. Ensure that you add the blueprint labels.
Expected Behavior
Pangolin should add the resource with the base domain and empty subdomain and not change all other blueprint addresses to the base domain.
i.e., a new resource appears with the base domain as the address to access from, and other resources have the subdomain in front of it.
@github-actions[bot] commented on GitHub (Oct 24, 2025):
This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.
@omarahmed786 commented on GitHub (Nov 3, 2025):
I applied blueprints thru the frontend UI of pangolin and also am having this issue. The resources sometimes reset to the base domain of example.com instead of service.example.com
Edit: This occurs whenever the pangolin container is rebuiilt!
@tullisar commented on GitHub (Nov 9, 2025):
I am experiencing this as well from my docker label blueprints. When I recreate the re-deploy the pangolin stack from my compose setup all of the resources that use blueprints revert to https://example.com instead of https://subdomain.example.com. Restarting the affected containers seems to cause newt/pangolin to fix the issue. I haven't dug at the proxy resources code yet - but since it happens when recreating the pangolin, it seems like there might be a disconnect with what's in the database vs. what pangolin gets from a newt client when applies a new template after detecting a container reboot from an affected container.
Edit: This may be the culprit here:
d38b321f85/server/setup/copyInConfig.ts (L178-L183)For domains with the
wildcardtype, the subdomain isn't stored in the database I think. When updating proxy resources the subdomain ends up beingnullfrom this line:d38b321f85/server/lib/blueprints/proxyResources.ts (L1073-L1079)As a result, when the setup code is running it looks like since those resources don't have a subdomain stored with them - the full domain gets replaced with the base domain. I don't have a build environment for Pangolin right now so I can't explore this further at the moment. If work isn't too busy this week I might see about testing the theory out.
@omarahmed786 commented on GitHub (Nov 10, 2025):
I just updated my pangolin and it happened again. Fortunately I have a blueprint saved with ALL of my resources so I just reapply every time the container is recreated. Would love for this to be fixed!
@michimussato commented on GitHub (Nov 13, 2025):
I also experience issues after adding Resources using Blueprints as well as Docker Compose Labels.
Documented here: https://github.com/fosrl/pangolin/issues/1709#issuecomment-3529004161
@alexandrescieux commented on GitHub (Dec 6, 2025):
Just encountered this after upgrading from pangolin:postgresql-1.12.2 to pangolin:postgresql-1.12.3.
I use a dozen of blueprints applied through the UI that have "full-domain: subdomain.mydomain.net" and after upgrading every ressource created via blueprint have "https://mydomain.net" instead of "https://subdomain.mydomain.net" in Ressources > [Ressource] > General > Domain.
Reapplying blueprints fix the issue.
Ressources created manually outside blueprints seems unaffected.
I do not use docker labels for the blueprints, applying only through the UI seems to be important to reproduce.
@omarahmed786 commented on GitHub (Dec 6, 2025):
Same exact behavior for me. I now have to worry about reapplying my blueprint every time the container is stopped and started. I've had to turn off daily backups for pangolin (to prevent it from being stopped and started) so I'm really hoping this bug is prioritized as it currently makes my system much less reliable since I moved from Nginx Proxy Manager. Any system update on my unraid server or adding removing/drives now requires an extra step.
@oschwartz10612 commented on GitHub (Dec 7, 2025):
@tullisar thanks for that you made this easier to troubleshoot. I think it was indeed the problem. I think this will be fix by 2f8f1e263f69187d3ef20908b9f4385a51e7f7c6 in the next release.