Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Add service discovery support for multiple homepage instances #2340

Merged
merged 3 commits into from
Nov 21, 2023

Conversation

timo95
Copy link
Contributor

@timo95 timo95 commented Nov 18, 2023

Proposed change

Adds support for scoping docker labels to specific homepage instances.

To limit a label to an instance, insert .instance.{{instanceName}} after the homepage prefix.

labels:
  - homepage.group=Media
  - homepage.name=Emby
  - homepage.icon=emby.png
  - homepage.instance.internal.href=http://emby.lan/
  - homepage.instance.public.href=https://emby.mydomain.com/
  - homepage.description=Media server

In this example it is used with two homepage instances for internal and public access.

Type of change

  • New service widget
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation only
  • Other (please explain)

Checklist:

  • If adding a service widget or a change that requires it, I have added corresponding documentation changes.
  • If adding a new widget I have reviewed the guidelines.
  • I have checked that all code style checks pass using pre-commit hooks and linting checks with pnpm lint (see development guidelines).
  • If applicable, I have tested my code for new features & regressions on both mobile & desktop devices, using the latest version of major browsers.

Copy link
Collaborator

@shamoon shamoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you really need the .instance. part?

@timo95
Copy link
Contributor Author

timo95 commented Nov 18, 2023

It prevents ambiguity and collisions with existing options. Without, you would have to compare to each possible option name to know, if it's an instance name or just an option.

  - homepage.public.name:

How would it know, if this is an instance name or just a new homepage option.

@shamoon
Copy link
Collaborator

shamoon commented Nov 18, 2023

Ah, yea I guess I see youre using it to allow some global settings and some instance settings.

Has this been requested?

@timo95
Copy link
Contributor Author

timo95 commented Nov 18, 2023

#1261

I think I saw a similar request on discord too.

@shamoon shamoon changed the title Add service discovery support for multiple homepage instances Enhancement: Add service discovery support for multiple homepage instances Nov 18, 2023
@shamoon
Copy link
Collaborator

shamoon commented Nov 18, 2023

Gotcha thanks. We’ll take a look when we can, looks good from my phone :)

@shamoon shamoon enabled auto-merge (squash) November 21, 2023 03:27
Copy link
Collaborator

@shamoon shamoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this and it works well in my testing, allows for more than just e.g. changing an href, you can of course completely change a group, icon, whatever between two instances (have to say, in general Im not a two-instances fan, but thats my problem).

I debated the naming scheme a bit but I think thats just pedantic, this isnt so out of line with typical docker label conventions.

Thanks for the PR

@shamoon shamoon merged commit 6d21ea9 into gethomepage:main Nov 21, 2023
5 checks passed
@timo95 timo95 deleted the instances branch November 21, 2023 06:55
truecharts-admin referenced this pull request in truecharts/public Nov 25, 2023
…0.8.2@0c033b5 (#15369)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[ghcr.io/gethomepage/homepage](https://github.com/gethomepage/homepage)
| patch | `v0.8.0` -> `v0.8.2` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>gethomepage/homepage (ghcr.io/gethomepage/homepage)</summary>

###
[`v0.8.2`](https://github.com/gethomepage/homepage/releases/tag/v0.8.2)

[Compare
Source](https://github.com/gethomepage/homepage/compare/v0.8.0...v0.8.2)

#### Notice

This release fixes an issue in v0.8.1 that breaks homepage for some
users

#### What's Changed

- Feature: Added timeStyle to date format for custom API by
[@&#8203;azizbna](https://github.com/azizbna) in
[https://github.com/gethomepage/homepage/pull/2294](https://github.com/gethomepage/homepage/pull/2294)
- Enhancement: open the searchbox on paste by
[@&#8203;Faqar](https://github.com/Faqar) in
[https://github.com/gethomepage/homepage/pull/2320](https://github.com/gethomepage/homepage/pull/2320)
- Fix: dont set pinned icon if custom favicon by
[@&#8203;shamoon](https://github.com/shamoon) in
[https://github.com/gethomepage/homepage/pull/2326](https://github.com/gethomepage/homepage/pull/2326)
- Fix: sum throughput data for docker stats by
[@&#8203;shamoon](https://github.com/shamoon) in
[https://github.com/gethomepage/homepage/pull/2334](https://github.com/gethomepage/homepage/pull/2334)
- Fix: Disable override white bkgd with card blur by
[@&#8203;shamoon](https://github.com/shamoon) in
[https://github.com/gethomepage/homepage/pull/2336](https://github.com/gethomepage/homepage/pull/2336)
- Documentation: add Longhorn example by
[@&#8203;Aesop7](https://github.com/Aesop7) in
[https://github.com/gethomepage/homepage/pull/2353](https://github.com/gethomepage/homepage/pull/2353)
- Enhancement: Add service discovery support for multiple homepage
instances by [@&#8203;timo95](https://github.com/timo95) in
[https://github.com/gethomepage/homepage/pull/2340](https://github.com/gethomepage/homepage/pull/2340)
- Enhancement: Add configurable refresh interval and points for glances
service by [@&#8203;ni0ki](https://github.com/ni0ki) in
[https://github.com/gethomepage/homepage/pull/2363](https://github.com/gethomepage/homepage/pull/2363)
- Fix: dont ignore empty string for kubernetes podSelector by
[@&#8203;shamoon](https://github.com/shamoon) in
[https://github.com/gethomepage/homepage/pull/2372](https://github.com/gethomepage/homepage/pull/2372)
- Fix: show mem / cpu stats for k8s partial health status by
[@&#8203;shamoon](https://github.com/shamoon) in
[https://github.com/gethomepage/homepage/pull/2378](https://github.com/gethomepage/homepage/pull/2378)
- Enhancement: Use `hasFile` instead of `isAvailable` for Radarr integr…
by [@&#8203;denispapec](https://github.com/denispapec) in
[https://github.com/gethomepage/homepage/pull/2374](https://github.com/gethomepage/homepage/pull/2374)
- Feature: Support previous days option in Calendar Agenda by
[@&#8203;denispapec](https://github.com/denispapec) in
[https://github.com/gethomepage/homepage/pull/2375](https://github.com/gethomepage/homepage/pull/2375)
- Feature: Implement iCal integration for calendar/agenda, improve
calendar/agenda styling by
[@&#8203;denispapec](https://github.com/denispapec) in
[https://github.com/gethomepage/homepage/pull/2376](https://github.com/gethomepage/homepage/pull/2376)
- Documentation: Add ai bot by
[@&#8203;shamoon](https://github.com/shamoon) in
[https://github.com/gethomepage/homepage/pull/2383](https://github.com/gethomepage/homepage/pull/2383)

#### New Contributors

- [@&#8203;azizbna](https://github.com/azizbna) made their first
contribution in
[https://github.com/gethomepage/homepage/pull/2294](https://github.com/gethomepage/homepage/pull/2294)
- [@&#8203;Faqar](https://github.com/Faqar) made their first
contribution in
[https://github.com/gethomepage/homepage/pull/2320](https://github.com/gethomepage/homepage/pull/2320)
- [@&#8203;timo95](https://github.com/timo95) made their first
contribution in
[https://github.com/gethomepage/homepage/pull/2340](https://github.com/gethomepage/homepage/pull/2340)
- [@&#8203;ni0ki](https://github.com/ni0ki) made their first
contribution in
[https://github.com/gethomepage/homepage/pull/2363](https://github.com/gethomepage/homepage/pull/2363)

**Full Changelog**:
gethomepage/homepage@v0.8.0...v0.8.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy42OC4xIiwidXBkYXRlZEluVmVyIjoiMzcuNjguMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->
Copy link
Contributor

github-actions bot commented Feb 5, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants