Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
faf2525de5 | ||
|
|
3343468c55 | ||
|
|
27bd93fa8a | ||
|
|
e636e02d6a | ||
|
|
7f474683a5 | ||
|
|
4a07b3f866 | ||
|
|
d23196b430 | ||
|
|
ef40e75818 | ||
|
|
60accd66f6 | ||
|
|
4b6c69d48a | ||
|
|
c73ce1f704 | ||
|
|
ffa629064c | ||
|
|
dde41f6baf | ||
|
|
d32703910e | ||
|
|
a4914d09fd | ||
|
|
ed950e9302 | ||
|
|
bb681f7b5e | ||
|
|
72e976ee5e | ||
|
|
e6be8e1db3 | ||
|
|
5d494111df | ||
|
|
3ee408bf53 | ||
|
|
1b5ccb5293 | ||
|
|
cc6d421e7d | ||
|
|
c8d59d88e5 | ||
|
|
3dbf085e59 | ||
|
|
ff03220960 | ||
|
|
001f7a2a16 | ||
|
|
2780b1e794 | ||
|
|
59c092f800 | ||
|
|
4bc053cc17 | ||
|
|
baa652f314 | ||
|
|
2465676713 | ||
|
|
e45bef317a | ||
|
|
5d0966f466 | ||
|
|
9c377957ec | ||
|
|
ec3d560ad9 | ||
|
|
1dc1854cbf | ||
|
|
511551aee7 | ||
|
|
a9de2c39ff | ||
|
|
a14c3a2095 | ||
|
|
f63e64627c | ||
|
|
d66cccb0db | ||
|
|
0bfb8d845b | ||
|
|
3f3d31eb6a | ||
|
|
9a69644732 | ||
|
|
8eb44c9f23 | ||
|
|
c92bbd2da0 | ||
|
|
03adf538b0 | ||
|
|
949c7a40d9 | ||
|
|
6a819e38ed | ||
|
|
4b1699ab33 | ||
|
|
ab5e08a4b0 | ||
|
|
e7b21697ef | ||
|
|
f4e37134d8 | ||
|
|
58e686765c | ||
|
|
4f9ecae104 | ||
|
|
002063f6e1 | ||
|
|
183564176c | ||
|
|
b0bbd0d87a | ||
|
|
d0a112c791 | ||
|
|
952d4f71c9 | ||
|
|
6126fac915 | ||
|
|
a358377578 | ||
|
|
8a9bca39ea | ||
|
|
0dc1f7cf14 | ||
|
|
1aecf4f90d | ||
|
|
851a75aa54 | ||
|
|
91ae3ec84c | ||
|
|
6996f6d1a9 | ||
|
|
a16e9032f4 | ||
|
|
4b57d7b269 | ||
|
|
6d677828d4 | ||
|
|
28242d4335 | ||
|
|
83dd6c3d1b | ||
|
|
588c134d91 | ||
|
|
470448e5fc | ||
|
|
edbd301673 | ||
|
|
d3fba3eff4 | ||
|
|
04c15de0c8 | ||
|
|
abb011ff9a | ||
|
|
e858bad2ed | ||
|
|
d218170ec2 | ||
|
|
0094ec2567 | ||
|
|
50a7d24b1b | ||
|
|
f6d6acf8dc | ||
|
|
5a28535f59 | ||
|
|
9cdffc7ead | ||
|
|
fd62524db3 | ||
|
|
4f0ba7a191 | ||
|
|
ecda928bef | ||
|
|
bf88f0d091 | ||
|
|
98f8279b61 | ||
|
|
8e960324bc | ||
|
|
732bce72ae | ||
|
|
66ebb5061f | ||
|
|
fa8e704112 | ||
|
|
3f29a453b9 | ||
|
|
36b0f576e5 | ||
|
|
18c3ed559e | ||
|
|
6fca92ac49 | ||
|
|
42301b4a1e | ||
|
|
2394159f8b |
No files matched your search
@@ -31,6 +31,10 @@ body:
|
|||||||
label: Version
|
label: Version
|
||||||
description: What version of Homarr are you running?
|
description: What version of Homarr are you running?
|
||||||
options:
|
options:
|
||||||
|
- 1.31.0
|
||||||
|
- 1.30.1
|
||||||
|
- 1.30.0
|
||||||
|
- 1.29.0
|
||||||
- 1.28.1
|
- 1.28.1
|
||||||
- 1.28.0
|
- 1.28.0
|
||||||
- 1.27.0
|
- 1.27.0
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ jobs:
|
|||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
if: env.SKIP_RELEASE == 'false'
|
if: env.SKIP_RELEASE == 'false'
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 22.18.0
|
||||||
- run: npm i -g pnpm
|
- run: npm i -g pnpm
|
||||||
if: env.SKIP_RELEASE == 'false'
|
if: env.SKIP_RELEASE == 'false'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
@@ -0,0 +1,62 @@
|
|||||||
|
name: Update integration list
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch: { }
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- packages/definitions/src/integration.ts
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-readme:
|
||||||
|
concurrency:
|
||||||
|
group: update-integration
|
||||||
|
cancel-in-progress: false
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Obtain token
|
||||||
|
id: obtainToken
|
||||||
|
uses: tibdex/github-app-token@v2
|
||||||
|
with:
|
||||||
|
private_key: ${{ secrets.HOMARR_UPDATE_CONTRIBUTORS_PRIVATE_KEY }}
|
||||||
|
app_id: ${{ vars.HOMARR_UPDATE_CONTRIBUTORS_APP_ID }}
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }}
|
||||||
|
- name: Setup
|
||||||
|
uses: ./tooling/github/setup
|
||||||
|
- run: pnpm run scripts:update-readme-integrations
|
||||||
|
- name: Commit changes
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }}
|
||||||
|
run: |
|
||||||
|
git config --global user.email "210161987+homarr-update-contributors[bot]@users.noreply.github.com"
|
||||||
|
git config --global user.name "Homarr Update Contributors"
|
||||||
|
git add .
|
||||||
|
git commit -m "chore: update integrations list readme"
|
||||||
|
|
||||||
|
- name: Create Pull Request
|
||||||
|
id: create-pull-request
|
||||||
|
uses: peter-evans/create-pull-request@v7
|
||||||
|
with:
|
||||||
|
token: ${{ steps.obtainToken.outputs.token }}
|
||||||
|
branch: update-integrations-readme
|
||||||
|
base: dev
|
||||||
|
title: "chore: update integrations list readme"
|
||||||
|
delete-branch: true
|
||||||
|
body: |
|
||||||
|
This PR automatically updates the list of integrations of Homarr in the README.md
|
||||||
|
|
||||||
|
- name: Install GitHub CLI
|
||||||
|
run: sudo apt-get install -y gh
|
||||||
|
|
||||||
|
- name: Enable auto-merge
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }}
|
||||||
|
run: |
|
||||||
|
gh pr merge ${{steps.create-pull-request.outputs.pull-request-number}} --auto --squash
|
||||||
@@ -1,3 +1,95 @@
|
|||||||
|
## [1.32.0](https://github.com/homarr-labs/homarr/compare/v1.31.0...v1.32.0) (2025-08-08)
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **api:** add info endpoint ([#3737](https://github.com/homarr-labs/homarr/issues/3737)) ([baa652f](https://github.com/homarr-labs/homarr/commit/baa652f31493aad1490cf8e5d50bb04dc0006da1))
|
||||||
|
* system resources widget ([#3538](https://github.com/homarr-labs/homarr/issues/3538)) ([3ee408b](https://github.com/homarr-labs/homarr/commit/3ee408bf53c45f0b2abf04449b3653ed3e9cf225))
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **deps:** update dependency @gitbeaker/rest to ^43.4.0 ([#3806](https://github.com/homarr-labs/homarr/issues/3806)) ([c73ce1f](https://github.com/homarr-labs/homarr/commit/c73ce1f704aa1fcbc6beac4cfa80b080b6800373))
|
||||||
|
* **deps:** update dependency @ianvs/prettier-plugin-sort-imports to ^4.6.0 ([#3797](https://github.com/homarr-labs/homarr/issues/3797)) ([a4914d0](https://github.com/homarr-labs/homarr/commit/a4914d09fd6c9fa6a602f9f76b71c096369a34cd))
|
||||||
|
* **deps:** update dependency @ianvs/prettier-plugin-sort-imports to ^4.6.1 ([#3809](https://github.com/homarr-labs/homarr/issues/3809)) ([ef40e75](https://github.com/homarr-labs/homarr/commit/ef40e7581896df4371c1f13487f3830bb57f6886))
|
||||||
|
* **deps:** update dependency jotai to ^2.13.0 ([#3763](https://github.com/homarr-labs/homarr/issues/3763)) ([c8d59d8](https://github.com/homarr-labs/homarr/commit/c8d59d88e5872783e767156eb063f329901fff6f))
|
||||||
|
* **deps:** update dependency sass to ^1.90.0 ([#3794](https://github.com/homarr-labs/homarr/issues/3794)) ([bb681f7](https://github.com/homarr-labs/homarr/commit/bb681f7b5ebb4a0858dac40eacfcc809c04b3d5e))
|
||||||
|
* **deps:** update dependency trpc-to-openapi to ^2.4.0 ([#3734](https://github.com/homarr-labs/homarr/issues/3734)) ([e45bef3](https://github.com/homarr-labs/homarr/commit/e45bef317a6ffae05d7a1685b1e6164e2ed09921))
|
||||||
|
* **deps:** update dependency typescript-eslint to ^8.39.0 ([#3781](https://github.com/homarr-labs/homarr/issues/3781)) ([1b5ccb5](https://github.com/homarr-labs/homarr/commit/1b5ccb529358836682a1cccd4a3da14f612884b9))
|
||||||
|
* **deps:** update dependency video.js to ^8.23.4 ([#3808](https://github.com/homarr-labs/homarr/issues/3808)) ([60accd6](https://github.com/homarr-labs/homarr/commit/60accd66f635ddb2f8c7a73faa865ee47aa40721))
|
||||||
|
* **deps:** update mantine monorepo to ^8.2.3 ([#3789](https://github.com/homarr-labs/homarr/issues/3789)) ([e6be8e1](https://github.com/homarr-labs/homarr/commit/e6be8e1db3d843e3d0e5b6d54c64999fd45f103d))
|
||||||
|
* **deps:** update mantine monorepo to ^8.2.4 ([#3803](https://github.com/homarr-labs/homarr/issues/3803)) ([ffa6290](https://github.com/homarr-labs/homarr/commit/ffa629064cdf202849d6f9c0ce645c6077c63e49))
|
||||||
|
* **deps:** update nextjs monorepo to v15.4.6 ([#3799](https://github.com/homarr-labs/homarr/issues/3799)) ([d327039](https://github.com/homarr-labs/homarr/commit/d32703910e0228a70a55a84ab712d6bd58fe7149))
|
||||||
|
* **deps:** update tanstack-query monorepo to ^5.84.2 ([#3810](https://github.com/homarr-labs/homarr/issues/3810)) ([d23196b](https://github.com/homarr-labs/homarr/commit/d23196b43034349d92cb9277633dd06b15ee0b7d))
|
||||||
|
* **deps:** update testcontainers-node monorepo to ^11.5.0 ([#3738](https://github.com/homarr-labs/homarr/issues/3738)) ([4bc053c](https://github.com/homarr-labs/homarr/commit/4bc053cc17d5a38db4255f9913e389fe86831676))
|
||||||
|
* **deps:** update testcontainers-node monorepo to ^11.5.1 ([#3796](https://github.com/homarr-labs/homarr/issues/3796)) ([ed950e9](https://github.com/homarr-labs/homarr/commit/ed950e9302450f33150d9800bc66e712bf8f6724))
|
||||||
|
* **deps:** update trpc monorepo to ^11.4.4 ([#3777](https://github.com/homarr-labs/homarr/issues/3777)) ([cc6d421](https://github.com/homarr-labs/homarr/commit/cc6d421e7db52b994e9e62fa1f828c72b5a20d72))
|
||||||
|
* **groups:** saving permissions with none activated causes error ([#3739](https://github.com/homarr-labs/homarr/issues/3739)) ([59c092f](https://github.com/homarr-labs/homarr/commit/59c092f8000f9a4e9fd70bde4176697dabb2e1c9))
|
||||||
|
* not hardcode hero banner scroll ([#3741](https://github.com/homarr-labs/homarr/issues/3741)) ([001f7a2](https://github.com/homarr-labs/homarr/commit/001f7a2a165fade9deaafb4cb319aa27926685e5))
|
||||||
|
* **opnsense:** switch secrets to api-key key and secret for easier understanding ([#3744](https://github.com/homarr-labs/homarr/issues/3744)) ([7f47468](https://github.com/homarr-labs/homarr/commit/7f474683a5e5b9ada978c055e57cd2b4114e17e0))
|
||||||
|
* some integrations handle parse errors wrong ([#3746](https://github.com/homarr-labs/homarr/issues/3746)) ([72e976e](https://github.com/homarr-labs/homarr/commit/72e976ee5ea28e549b7674c71b9a284e905e455b))
|
||||||
|
|
||||||
|
## [1.31.0](https://github.com/homarr-labs/homarr/compare/v1.30.1...v1.31.0) (2025-08-01)
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* OPNsense integration and widget ([#3424](https://github.com/homarr-labs/homarr/issues/3424)) ([1dc1854](https://github.com/homarr-labs/homarr/commit/1dc1854cbfa39f4f22755cb84e1d6882e7e73721))
|
||||||
|
* **releases-widget:** add `Mark as read` action to mark releases as seen ([#3676](https://github.com/homarr-labs/homarr/issues/3676)) ([f63e646](https://github.com/homarr-labs/homarr/commit/f63e64627c79004b1e1bbb5a525fdde58f803da7))
|
||||||
|
* **releases-widget:** add `Select/Deselect All` to `import from docker` screen ([#3674](https://github.com/homarr-labs/homarr/issues/3674)) ([949c7a4](https://github.com/homarr-labs/homarr/commit/949c7a40d934b2d58a24bf9842f44703e73474ee))
|
||||||
|
* **releases-widget:** add new providers, Github Packages, linuxserver.io and Quay ([#3607](https://github.com/homarr-labs/homarr/issues/3607)) ([c92bbd2](https://github.com/homarr-labs/homarr/commit/c92bbd2da062221c3b5464838ad715c31a9d07b0))
|
||||||
|
* **releases-widget:** Allow to display only the icon ([#3695](https://github.com/homarr-labs/homarr/issues/3695)) ([03adf53](https://github.com/homarr-labs/homarr/commit/03adf538b03270404956dc16b191069f913e54d1))
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* characters are not considered Symbols when entering a new password ([#3689](https://github.com/homarr-labs/homarr/issues/3689)) ([6a819e3](https://github.com/homarr-labs/homarr/commit/6a819e38edca9f95b926a0162abdb6b873ddec08))
|
||||||
|
* **deps:** update dependency drizzle-orm to ^0.44.4 ([#3708](https://github.com/homarr-labs/homarr/issues/3708)) ([6126fac](https://github.com/homarr-labs/homarr/commit/6126fac915197c19ea6d448da8c4fc1b06b1383b))
|
||||||
|
* **deps:** update dependency ioredis to v5.7.0 ([#3718](https://github.com/homarr-labs/homarr/issues/3718)) ([4f9ecae](https://github.com/homarr-labs/homarr/commit/4f9ecae10406be4f6176947b517706843bd1c06d))
|
||||||
|
* **deps:** update dependency ldapts to v8.0.9 ([#3703](https://github.com/homarr-labs/homarr/issues/3703)) ([1aecf4f](https://github.com/homarr-labs/homarr/commit/1aecf4f90d4776bfa93b6f601fca16a7da8ffaba))
|
||||||
|
* **deps:** update dependency mysql2 to v3.14.3 ([#3711](https://github.com/homarr-labs/homarr/issues/3711)) ([952d4f7](https://github.com/homarr-labs/homarr/commit/952d4f71c9197cd88fa44ce5dbcf7d89f4c482d3))
|
||||||
|
* **deps:** update dependency swagger-ui-react to ^5.27.1 ([#3725](https://github.com/homarr-labs/homarr/issues/3725)) ([ab5e08a](https://github.com/homarr-labs/homarr/commit/ab5e08a4b09845e3aa4818214bc0f9ce830a2942))
|
||||||
|
* **deps:** update dependency undici to v7.13.0 ([#3717](https://github.com/homarr-labs/homarr/issues/3717)) ([b0bbd0d](https://github.com/homarr-labs/homarr/commit/b0bbd0d87ad6df7a9be83296060d8b0be6c091e0))
|
||||||
|
* **deps:** update mantine monorepo to ^8.2.2 ([#3715](https://github.com/homarr-labs/homarr/issues/3715)) ([1835641](https://github.com/homarr-labs/homarr/commit/183564176c9421faea70dff199d0b6f81325bf70))
|
||||||
|
* **deps:** update nextjs monorepo to v15.4.5 ([#3712](https://github.com/homarr-labs/homarr/issues/3712)) ([d0a112c](https://github.com/homarr-labs/homarr/commit/d0a112c7919cbcff9aaf2cc6b2dec8fd562246db))
|
||||||
|
* **deps:** update react monorepo to v19.1.1 ([#3706](https://github.com/homarr-labs/homarr/issues/3706)) ([0dc1f7c](https://github.com/homarr-labs/homarr/commit/0dc1f7cf14c0ca49d5eb8d37060773c3dab4834a))
|
||||||
|
* **deps:** update tanstack-query monorepo to ^5.83.1 ([#3719](https://github.com/homarr-labs/homarr/issues/3719)) ([f4e3713](https://github.com/homarr-labs/homarr/commit/f4e37134d806dac719012cb4dee19fb7e5daf7f2))
|
||||||
|
* **deps:** update tanstack-query monorepo to ^5.84.0 ([#3723](https://github.com/homarr-labs/homarr/issues/3723)) ([e7b2169](https://github.com/homarr-labs/homarr/commit/e7b21697efb0f90c3539152beaea94416cbb6fef))
|
||||||
|
* **deps:** update tanstack-query monorepo to ^5.84.1 ([#3729](https://github.com/homarr-labs/homarr/issues/3729)) ([511551a](https://github.com/homarr-labs/homarr/commit/511551aee7d5be9dadb70c596c5addbb646651cb))
|
||||||
|
|
||||||
|
### Reverts
|
||||||
|
|
||||||
|
* "feat(ping): ignore certificate error and show request durati… ([#3680](https://github.com/homarr-labs/homarr/issues/3680)) ([8eb44c9](https://github.com/homarr-labs/homarr/commit/8eb44c9f23584078b22605dac569387713dcd173))
|
||||||
|
|
||||||
|
## [1.30.1](https://github.com/homarr-labs/homarr/compare/v1.30.0...v1.30.1) (2025-07-25)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* [#3667](https://github.com/homarr-labs/homarr/issues/3667) plex media releases ([#3682](https://github.com/homarr-labs/homarr/issues/3682)) ([588c134](https://github.com/homarr-labs/homarr/commit/588c134d913f6811f7ed39d1954b586acc294932))
|
||||||
|
* [#3678](https://github.com/homarr-labs/homarr/issues/3678) season number badge calendar ([#3681](https://github.com/homarr-labs/homarr/issues/3681)) ([470448e](https://github.com/homarr-labs/homarr/commit/470448e5fc1243dc78539dd8da87a974f504252a))
|
||||||
|
* **deps:** update dependency @ctrl/deluge to ^7.1.1 ([#3677](https://github.com/homarr-labs/homarr/issues/3677)) ([04c15de](https://github.com/homarr-labs/homarr/commit/04c15de0c87be963f333ccb6aa1932c445793672))
|
||||||
|
* **deps:** update dependency dotenv to ^17.2.1 ([#3684](https://github.com/homarr-labs/homarr/issues/3684)) ([d3fba3e](https://github.com/homarr-labs/homarr/commit/d3fba3eff4fd1fff3e86090436ecfd2fbcd93c28))
|
||||||
|
* **deps:** update dependency ldapts to v8.0.8 ([#3665](https://github.com/homarr-labs/homarr/issues/3665)) ([5a28535](https://github.com/homarr-labs/homarr/commit/5a28535f59f6ea1928a941d5c11050752dd3ecc9))
|
||||||
|
* **deps:** update dependency typescript-eslint to ^8.38.0 ([#3668](https://github.com/homarr-labs/homarr/issues/3668)) ([50a7d24](https://github.com/homarr-labs/homarr/commit/50a7d24b1b3a7cbfa6195525b10b994709b0beb3))
|
||||||
|
* **deps:** update mantine monorepo to ^8.2.1 ([#3666](https://github.com/homarr-labs/homarr/issues/3666)) ([9cdffc7](https://github.com/homarr-labs/homarr/commit/9cdffc7ead2668ed259c1a38c774a3efea5a1f0e))
|
||||||
|
* **deps:** update nextjs monorepo to v15.4.3 ([#3672](https://github.com/homarr-labs/homarr/issues/3672)) ([0094ec2](https://github.com/homarr-labs/homarr/commit/0094ec25677ca97f77920018c18f18a4b84812f8))
|
||||||
|
* **deps:** update nextjs monorepo to v15.4.4 ([#3683](https://github.com/homarr-labs/homarr/issues/3683)) ([abb011f](https://github.com/homarr-labs/homarr/commit/abb011ff9a7b930dad2c382c4e454fba29633364))
|
||||||
|
* **deps:** update testcontainers-node monorepo to ^11.3.2 ([#3671](https://github.com/homarr-labs/homarr/issues/3671)) ([d218170](https://github.com/homarr-labs/homarr/commit/d218170ec28a70b80c521efd1482164087d46e05))
|
||||||
|
* **deps:** update testcontainers-node monorepo to ^11.4.0 ([#3679](https://github.com/homarr-labs/homarr/issues/3679)) ([e858bad](https://github.com/homarr-labs/homarr/commit/e858bad2eda8847269c1beee4cfbf957fa318fe4))
|
||||||
|
|
||||||
|
## [1.30.0](https://github.com/homarr-labs/homarr/compare/v1.29.0...v1.30.0) (2025-07-21)
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **infra:** add external redis ([#3639](https://github.com/homarr-labs/homarr/issues/3639)) ([8e96032](https://github.com/homarr-labs/homarr/commit/8e960324bcc43a64100fd9c6c1fd6822c7759160))
|
||||||
|
* **widgets:** add media release widget ([#3219](https://github.com/homarr-labs/homarr/issues/3219)) ([66ebb50](https://github.com/homarr-labs/homarr/commit/66ebb5061fd219f9c804ef3a6bbe3372d296f740))
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **deps:** update dependency @gitbeaker/rest to v43 ([#3623](https://github.com/homarr-labs/homarr/issues/3623)) ([732bce7](https://github.com/homarr-labs/homarr/commit/732bce72aee6c99d0ee94d04e173d378c2552a16))
|
||||||
|
* **deps:** update dependency @tabler/icons-react to ^3.34.1 ([#3661](https://github.com/homarr-labs/homarr/issues/3661)) ([bf88f0d](https://github.com/homarr-labs/homarr/commit/bf88f0d0918b4073a5770ab3589e00e5f89cacf1))
|
||||||
|
* **deps:** update nextjs monorepo to v15.4.2 ([#3654](https://github.com/homarr-labs/homarr/issues/3654)) ([42301b4](https://github.com/homarr-labs/homarr/commit/42301b4a1ed9e9f638b449a460862db9cd7ed50b))
|
||||||
|
* **deps:** update testcontainers-node monorepo to ^11.3.0 ([#3652](https://github.com/homarr-labs/homarr/issues/3652)) ([2394159](https://github.com/homarr-labs/homarr/commit/2394159f8b546e8b6e2d3cdc7c6bd0f75483209c))
|
||||||
|
* **deps:** update testcontainers-node monorepo to ^11.3.1 ([#3659](https://github.com/homarr-labs/homarr/issues/3659)) ([98f8279](https://github.com/homarr-labs/homarr/commit/98f8279b61013c312d492522e317bcf93f10e2a6))
|
||||||
|
* improved import from docker parsing ([#3642](https://github.com/homarr-labs/homarr/issues/3642)) ([36b0f57](https://github.com/homarr-labs/homarr/commit/36b0f576e5a00726d76695fd3300710be6f925f8))
|
||||||
|
* **security:** upgrade eslint-config-prettier to latest version without malicious code ([ecda928](https://github.com/homarr-labs/homarr/commit/ecda928bef407c67f01ce798c5f7a086cbd0dd9c))
|
||||||
|
|
||||||
## [1.29.0](https://github.com/homarr-labs/homarr/compare/v1.28.1...v1.29.0) (2025-07-18)
|
## [1.29.0](https://github.com/homarr-labs/homarr/compare/v1.28.1...v1.29.0) (2025-07-18)
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM node:22.17.0-alpine AS base
|
FROM node:22.18.0-alpine AS base
|
||||||
|
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
RUN apk add --no-cache libc6-compat
|
RUN apk add --no-cache libc6-compat
|
||||||
@@ -64,6 +64,7 @@ ENV DB_URL='/appdata/db/db.sqlite'
|
|||||||
ENV DB_DIALECT='sqlite'
|
ENV DB_DIALECT='sqlite'
|
||||||
ENV DB_DRIVER='better-sqlite3'
|
ENV DB_DRIVER='better-sqlite3'
|
||||||
ENV AUTH_PROVIDERS='credentials'
|
ENV AUTH_PROVIDERS='credentials'
|
||||||
|
ENV REDIS_IS_EXTERNAL='false'
|
||||||
ENV NODE_ENV='production'
|
ENV NODE_ENV='production'
|
||||||
|
|
||||||
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
||||||
|
|||||||
@@ -25,15 +25,16 @@
|
|||||||
"@homarr/boards": "workspace:^0.1.0",
|
"@homarr/boards": "workspace:^0.1.0",
|
||||||
"@homarr/certificates": "workspace:^0.1.0",
|
"@homarr/certificates": "workspace:^0.1.0",
|
||||||
"@homarr/common": "workspace:^0.1.0",
|
"@homarr/common": "workspace:^0.1.0",
|
||||||
|
"@homarr/core": "workspace:^0.1.0",
|
||||||
"@homarr/cron-job-status": "workspace:^0.1.0",
|
"@homarr/cron-job-status": "workspace:^0.1.0",
|
||||||
"@homarr/db": "workspace:^0.1.0",
|
"@homarr/db": "workspace:^0.1.0",
|
||||||
"@homarr/definitions": "workspace:^0.1.0",
|
"@homarr/definitions": "workspace:^0.1.0",
|
||||||
"@homarr/docker": "workspace:^0.1.0",
|
"@homarr/docker": "workspace:^0.1.0",
|
||||||
"@homarr/env": "workspace:^0.1.0",
|
|
||||||
"@homarr/form": "workspace:^0.1.0",
|
"@homarr/form": "workspace:^0.1.0",
|
||||||
"@homarr/forms-collection": "workspace:^0.1.0",
|
"@homarr/forms-collection": "workspace:^0.1.0",
|
||||||
"@homarr/gridstack": "^1.12.0",
|
"@homarr/gridstack": "^1.12.0",
|
||||||
"@homarr/icons": "workspace:^0.1.0",
|
"@homarr/icons": "workspace:^0.1.0",
|
||||||
|
"@homarr/image-proxy": "workspace:^0.1.0",
|
||||||
"@homarr/integrations": "workspace:^0.1.0",
|
"@homarr/integrations": "workspace:^0.1.0",
|
||||||
"@homarr/log": "workspace:^",
|
"@homarr/log": "workspace:^",
|
||||||
"@homarr/modals": "workspace:^0.1.0",
|
"@homarr/modals": "workspace:^0.1.0",
|
||||||
@@ -49,42 +50,42 @@
|
|||||||
"@homarr/ui": "workspace:^0.1.0",
|
"@homarr/ui": "workspace:^0.1.0",
|
||||||
"@homarr/validation": "workspace:^0.1.0",
|
"@homarr/validation": "workspace:^0.1.0",
|
||||||
"@homarr/widgets": "workspace:^0.1.0",
|
"@homarr/widgets": "workspace:^0.1.0",
|
||||||
"@mantine/colors-generator": "^8.1.3",
|
"@mantine/colors-generator": "^8.2.4",
|
||||||
"@mantine/core": "^8.1.3",
|
"@mantine/core": "^8.2.4",
|
||||||
"@mantine/dropzone": "^8.1.3",
|
"@mantine/dropzone": "^8.2.4",
|
||||||
"@mantine/hooks": "^8.1.3",
|
"@mantine/hooks": "^8.2.4",
|
||||||
"@mantine/modals": "^8.1.3",
|
"@mantine/modals": "^8.2.4",
|
||||||
"@mantine/tiptap": "^8.1.3",
|
"@mantine/tiptap": "^8.2.4",
|
||||||
"@million/lint": "1.0.14",
|
"@million/lint": "1.0.14",
|
||||||
"@tabler/icons-react": "^3.34.0",
|
"@tabler/icons-react": "^3.34.1",
|
||||||
"@tanstack/react-query": "^5.83.0",
|
"@tanstack/react-query": "^5.84.2",
|
||||||
"@tanstack/react-query-devtools": "^5.83.0",
|
"@tanstack/react-query-devtools": "^5.84.2",
|
||||||
"@tanstack/react-query-next-experimental": "^5.83.0",
|
"@tanstack/react-query-next-experimental": "^5.84.2",
|
||||||
"@trpc/client": "^11.4.3",
|
"@trpc/client": "^11.4.4",
|
||||||
"@trpc/next": "^11.4.3",
|
"@trpc/next": "^11.4.4",
|
||||||
"@trpc/react-query": "^11.4.3",
|
"@trpc/react-query": "^11.4.4",
|
||||||
"@trpc/server": "^11.4.3",
|
"@trpc/server": "^11.4.4",
|
||||||
"@xterm/addon-canvas": "^0.7.0",
|
"@xterm/addon-canvas": "^0.7.0",
|
||||||
"@xterm/addon-fit": "0.10.0",
|
"@xterm/addon-fit": "0.10.0",
|
||||||
"@xterm/xterm": "^5.5.0",
|
"@xterm/xterm": "^5.5.0",
|
||||||
"chroma-js": "^3.1.2",
|
"chroma-js": "^3.1.2",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.13",
|
||||||
"dotenv": "^17.2.0",
|
"dotenv": "^17.2.1",
|
||||||
"flag-icons": "^7.5.0",
|
"flag-icons": "^7.5.0",
|
||||||
"glob": "^11.0.3",
|
"glob": "^11.0.3",
|
||||||
"jotai": "^2.12.5",
|
"jotai": "^2.13.0",
|
||||||
"mantine-react-table": "2.0.0-beta.9",
|
"mantine-react-table": "2.0.0-beta.9",
|
||||||
"next": "15.4.1",
|
"next": "15.4.6",
|
||||||
"postcss-preset-mantine": "^1.18.0",
|
"postcss-preset-mantine": "^1.18.0",
|
||||||
"prismjs": "^1.30.0",
|
"prismjs": "^1.30.0",
|
||||||
"react": "19.1.0",
|
"react": "19.1.1",
|
||||||
"react-dom": "19.1.0",
|
"react-dom": "19.1.1",
|
||||||
"react-error-boundary": "^6.0.0",
|
"react-error-boundary": "^6.0.0",
|
||||||
"react-simple-code-editor": "^0.14.1",
|
"react-simple-code-editor": "^0.14.1",
|
||||||
"sass": "^1.89.2",
|
"sass": "^1.90.0",
|
||||||
"superjson": "2.2.2",
|
"superjson": "2.2.2",
|
||||||
"swagger-ui-react": "^5.27.0",
|
"swagger-ui-react": "^5.27.1",
|
||||||
"use-deep-compare-effect": "^1.8.1",
|
"use-deep-compare-effect": "^1.8.1",
|
||||||
"zod": "^3.25.76"
|
"zod": "^3.25.76"
|
||||||
},
|
},
|
||||||
@@ -93,15 +94,15 @@
|
|||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"@types/chroma-js": "3.1.1",
|
"@types/chroma-js": "3.1.1",
|
||||||
"@types/node": "^22.16.4",
|
"@types/node": "^22.17.1",
|
||||||
"@types/prismjs": "^1.26.5",
|
"@types/prismjs": "^1.26.5",
|
||||||
"@types/react": "19.1.8",
|
"@types/react": "19.1.9",
|
||||||
"@types/react-dom": "19.1.6",
|
"@types/react-dom": "19.1.7",
|
||||||
"@types/swagger-ui-react": "^5.18.0",
|
"@types/swagger-ui-react": "^5.18.0",
|
||||||
"concurrently": "^9.2.0",
|
"concurrently": "^9.2.0",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"node-loader": "^2.1.0",
|
"node-loader": "^2.1.0",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,37 +1,16 @@
|
|||||||
import { Box, Grid, GridCol, Group, Image, Stack, Title } from "@mantine/core";
|
import { Box, Grid, GridCol, Group, Image, Stack, Title } from "@mantine/core";
|
||||||
|
|
||||||
import { splitToNChunks } from "@homarr/common";
|
import { splitToNChunks } from "@homarr/common";
|
||||||
|
import { integrationDefs } from "@homarr/definitions";
|
||||||
|
|
||||||
import classes from "./hero-banner.module.css";
|
import classes from "./hero-banner.module.css";
|
||||||
|
|
||||||
const icons = [
|
const icons = Object.values(integrationDefs)
|
||||||
"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/homarr.svg",
|
.filter((int) => int.name !== "Mock")
|
||||||
"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/sabnzbd.svg",
|
.map((int) => int.iconUrl);
|
||||||
"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/deluge.svg",
|
|
||||||
"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/radarr.svg",
|
|
||||||
"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/sonarr.svg",
|
|
||||||
"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/lidarr.svg",
|
|
||||||
"https://cdn.jsdelivr.net/gh/loganmarchione/homelab-svg-assets/assets/pihole.svg",
|
|
||||||
"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/dashdot.png",
|
|
||||||
"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/overseerr.svg",
|
|
||||||
"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/plex.svg",
|
|
||||||
"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/jellyfin.svg",
|
|
||||||
"https://cdn.jsdelivr.net/gh/loganmarchione/homelab-svg-assets/assets/homeassistant.svg",
|
|
||||||
"https://cdn.jsdelivr.net/gh/loganmarchione/homelab-svg-assets/assets/freshrss.svg",
|
|
||||||
"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/readarr.svg",
|
|
||||||
"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/transmission.svg",
|
|
||||||
"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/qbittorrent.svg",
|
|
||||||
"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/nzbget.png",
|
|
||||||
"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/openmediavault.svg",
|
|
||||||
"https://cdn.jsdelivr.net/gh/loganmarchione/homelab-svg-assets/assets/docker.svg",
|
|
||||||
"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/jellyseerr.svg",
|
|
||||||
"https://cdn.jsdelivr.net/gh/loganmarchione/homelab-svg-assets/assets/adguardhome.svg",
|
|
||||||
"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/tdarr.png",
|
|
||||||
"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/prowlarr.svg",
|
|
||||||
];
|
|
||||||
|
|
||||||
const countIconGroups = 3;
|
const countIconGroups = 3;
|
||||||
const animationDurationInSeconds = 12;
|
const animationDurationInSeconds = icons.length;
|
||||||
const arrayInChunks = splitToNChunks(icons, countIconGroups);
|
const arrayInChunks = splitToNChunks(icons, countIconGroups);
|
||||||
|
|
||||||
export const HeroBanner = () => {
|
export const HeroBanner = () => {
|
||||||
@@ -61,12 +40,26 @@ export const HeroBanner = () => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{arrayInChunks[columnIndex]?.map((icon, index) => (
|
{arrayInChunks[columnIndex]?.map((icon, index) => (
|
||||||
<Image key={`grid-column-${columnIndex}-scroll-1-${index}`} src={icon} radius="md" w={50} h={50} />
|
<Image
|
||||||
|
key={`grid-column-${columnIndex}-scroll-1-${index}`}
|
||||||
|
src={icon}
|
||||||
|
radius="md"
|
||||||
|
fit={"contain"}
|
||||||
|
w={50}
|
||||||
|
h={50}
|
||||||
|
/>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
{/* This is used for making the animation seem seamless */}
|
{/* This is used for making the animation seem seamless */}
|
||||||
{arrayInChunks[columnIndex]?.map((icon, index) => (
|
{arrayInChunks[columnIndex]?.map((icon, index) => (
|
||||||
<Image key={`grid-column-${columnIndex}-scroll-2-${index}`} src={icon} radius="md" w={50} h={50} />
|
<Image
|
||||||
|
key={`grid-column-${columnIndex}-scroll-2-${index}`}
|
||||||
|
src={icon}
|
||||||
|
radius="md"
|
||||||
|
fit={"contain"}
|
||||||
|
w={50}
|
||||||
|
h={50}
|
||||||
|
/>
|
||||||
))}
|
))}
|
||||||
</Stack>
|
</Stack>
|
||||||
</GridCol>
|
</GridCol>
|
||||||
|
|||||||
@@ -19,4 +19,6 @@ export const integrationSecretIcons = {
|
|||||||
tokenId: IconGrid3x3,
|
tokenId: IconGrid3x3,
|
||||||
personalAccessToken: IconPasswordUser,
|
personalAccessToken: IconPasswordUser,
|
||||||
topic: IconMessage,
|
topic: IconMessage,
|
||||||
|
opnsenseApiKey: IconKey,
|
||||||
|
opnsenseApiSecret: IconPassword,
|
||||||
} satisfies Record<IntegrationSecretKind, TablerIcon>;
|
} satisfies Record<IntegrationSecretKind, TablerIcon>;
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
import { notFound } from "next/navigation";
|
||||||
|
|
||||||
|
import { ImageProxy } from "@homarr/image-proxy";
|
||||||
|
|
||||||
|
export const GET = async (_request: Request, props: { params: Promise<{ id: string }> }) => {
|
||||||
|
const { id } = await props.params;
|
||||||
|
|
||||||
|
const imageProxy = new ImageProxy();
|
||||||
|
const image = await imageProxy.forwardImageAsync(id);
|
||||||
|
if (!image) {
|
||||||
|
notFound();
|
||||||
|
}
|
||||||
|
|
||||||
|
return new Response(image, {
|
||||||
|
headers: {
|
||||||
|
"Cache-Control": "public, max-age=3600, immutable", // Cache for 1 hour
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
@@ -23,7 +23,7 @@ export async function GET(_req: NextRequest, props: { params: Promise<{ id: stri
|
|||||||
headers.set("Content-Type", image.contentType);
|
headers.set("Content-Type", image.contentType);
|
||||||
headers.set("Content-Length", image.content.length.toString());
|
headers.set("Content-Length", image.content.length.toString());
|
||||||
|
|
||||||
return new NextResponse(image.content, {
|
return new NextResponse(new Uint8Array(image.content), {
|
||||||
status: 200,
|
status: 200,
|
||||||
headers,
|
headers,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ interface BoardItemContentProps {
|
|||||||
item: SectionItem;
|
item: SectionItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const getOverflowFromKind = (kind: SectionItem["kind"]) => {
|
||||||
|
if (kind === "iframe") return "hidden";
|
||||||
|
if (kind === "systemResources") return "visible";
|
||||||
|
return undefined;
|
||||||
|
};
|
||||||
|
|
||||||
export const BoardItemContent = ({ item }: BoardItemContentProps) => {
|
export const BoardItemContent = ({ item }: BoardItemContentProps) => {
|
||||||
const { ref, width, height } = useElementSize<HTMLDivElement>();
|
const { ref, width, height } = useElementSize<HTMLDivElement>();
|
||||||
const board = useRequiredBoard();
|
const board = useRequiredBoard();
|
||||||
@@ -41,7 +47,7 @@ export const BoardItemContent = ({ item }: BoardItemContentProps) => {
|
|||||||
root: {
|
root: {
|
||||||
"--opacity": board.opacity / 100,
|
"--opacity": board.opacity / 100,
|
||||||
containerType: "size",
|
containerType: "size",
|
||||||
overflow: item.kind === "iframe" ? "hidden" : undefined,
|
overflow: getOverflowFromKind(item.kind),
|
||||||
"--border-color": item.advancedOptions.borderColor !== "" ? item.advancedOptions.borderColor : undefined,
|
"--border-color": item.advancedOptions.borderColor !== "" ? item.advancedOptions.borderColor : undefined,
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { createEnv } from "@homarr/env";
|
import { createBooleanSchema, createEnv } from "@homarr/core/infrastructure/env";
|
||||||
import { createBooleanSchema } from "@homarr/env/schemas";
|
|
||||||
|
|
||||||
export const env = createEnv({
|
export const env = createEnv({
|
||||||
server: {
|
server: {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
"main": "./src/main.ts",
|
"main": "./src/main.ts",
|
||||||
"types": "./src/main.ts",
|
"types": "./src/main.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "esbuild src/main.ts --bundle --platform=node --loader:.scss=text --external:*.node --external:@opentelemetry/api --external:deasync --outfile=tasks.cjs",
|
"build": "esbuild src/main.ts --bundle --platform=node --loader:.scss=text --external:*.node --external:@opentelemetry/api --external:deasync --external:bcrypt --outfile=tasks.cjs",
|
||||||
"clean": "rm -rf .turbo node_modules",
|
"clean": "rm -rf .turbo node_modules",
|
||||||
"dev": "pnpm with-env tsx ./src/main.ts",
|
"dev": "pnpm with-env tsx ./src/main.ts",
|
||||||
"format": "prettier --check . --ignore-path ../../.gitignore",
|
"format": "prettier --check . --ignore-path ../../.gitignore",
|
||||||
@@ -30,26 +30,27 @@
|
|||||||
"@homarr/icons": "workspace:^0.1.0",
|
"@homarr/icons": "workspace:^0.1.0",
|
||||||
"@homarr/integrations": "workspace:^0.1.0",
|
"@homarr/integrations": "workspace:^0.1.0",
|
||||||
"@homarr/log": "workspace:^",
|
"@homarr/log": "workspace:^",
|
||||||
|
"@homarr/ping": "workspace:^0.1.0",
|
||||||
"@homarr/redis": "workspace:^0.1.0",
|
"@homarr/redis": "workspace:^0.1.0",
|
||||||
"@homarr/server-settings": "workspace:^0.1.0",
|
"@homarr/server-settings": "workspace:^0.1.0",
|
||||||
"@homarr/validation": "workspace:^0.1.0",
|
"@homarr/validation": "workspace:^0.1.0",
|
||||||
"@homarr/widgets": "workspace:^0.1.0",
|
"@homarr/widgets": "workspace:^0.1.0",
|
||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.13",
|
||||||
"dotenv": "^17.2.0",
|
"dotenv": "^17.2.1",
|
||||||
"fastify": "^5.4.0",
|
"fastify": "^5.4.0",
|
||||||
"superjson": "2.2.2",
|
"superjson": "2.2.2",
|
||||||
"undici": "7.12.0"
|
"undici": "7.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"@types/node": "^22.16.4",
|
"@types/node": "^22.17.1",
|
||||||
"dotenv-cli": "^8.0.0",
|
"dotenv-cli": "^10.0.0",
|
||||||
"esbuild": "^0.25.6",
|
"esbuild": "^0.25.8",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"tsx": "4.20.3",
|
"tsx": "4.20.3",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
"@homarr/log": "workspace:^",
|
"@homarr/log": "workspace:^",
|
||||||
"@homarr/redis": "workspace:^0.1.0",
|
"@homarr/redis": "workspace:^0.1.0",
|
||||||
"@homarr/validation": "workspace:^0.1.0",
|
"@homarr/validation": "workspace:^0.1.0",
|
||||||
"dotenv": "^17.2.0",
|
"dotenv": "^17.2.1",
|
||||||
"tsx": "4.20.3",
|
"tsx": "4.20.3",
|
||||||
"ws": "^8.18.3"
|
"ws": "^8.18.3"
|
||||||
},
|
},
|
||||||
@@ -34,9 +34,9 @@
|
|||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"@types/ws": "^8.18.1",
|
"@types/ws": "^8.18.1",
|
||||||
"esbuild": "^0.25.6",
|
"esbuild": "^0.25.8",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
<!-- Project Title -->
|

|
||||||
[](https://homarr.dev/)
|
|
||||||
|
|
||||||
<!-- Badges -->
|
<!-- Badges -->
|
||||||
<p align="center">
|
<p align="center">
|
||||||
@@ -20,10 +19,6 @@
|
|||||||
|
|
||||||
<!-- Links -->
|
<!-- Links -->
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://demo.homarr.dev/">
|
|
||||||
<strong>Demo ✨</strong>
|
|
||||||
</a>
|
|
||||||
•
|
|
||||||
<a href="https://homarr.dev/docs/category/installation-1/">
|
<a href="https://homarr.dev/docs/category/installation-1/">
|
||||||
<strong>Install 💻</strong>
|
<strong>Install 💻</strong>
|
||||||
</a> •
|
</a> •
|
||||||
@@ -35,8 +30,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|

|
||||||
[](https://homarr.dev/)
|
|
||||||
|
|
||||||
- 🖌️ Highly customizable with an extensive drag and drop grid system
|
- 🖌️ Highly customizable with an extensive drag and drop grid system
|
||||||
- ✨ Integrates seamlessly with your favorite self-hosted applications
|
- ✨ Integrates seamlessly with your favorite self-hosted applications
|
||||||
@@ -53,44 +47,268 @@
|
|||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
[](https://homarr.dev/docs/category/widgets)
|

|
||||||
|
|
||||||
Homarr has a [built-in collection of widgets and integrations](https://homarr.dev/docs/category/integrations), that connect to your applications and enable you to control them directly from the dashboard.
|
<!-- AUTO_GENERATE_INTEGRATION_LIST_START -->
|
||||||
|
|
||||||
- 📥 **Torrent clients**
|
<div align="center">
|
||||||
- [Deluge](https://homarr.dev/docs/integrations/torrent#deluge)
|
<table>
|
||||||
- [Transmission](https://homarr.dev/docs/integrations/torrent#transmission)
|
<tbody>
|
||||||
- [qBittorent](https://homarr.dev/docs/integrations/torrent#qbittorrent-integration)
|
<tr><td align="center">
|
||||||
- 📥 **Usenet clients**
|
<a href="https://homarr.dev/docs/integrations/adguard-home" target="_blank" rel="noreferrer noopener">
|
||||||
- [SABnzbd](https://homarr.dev/docs/integrations/usenet#sabnzbd)
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/adguard-home.svg" alt="AdGuard Home" width="90" height="90" />
|
||||||
- [NZBGet](https://homarr.dev/docs/integrations/usenet#nzbget)
|
<br/>
|
||||||
- 📺 **Media servers**
|
<p align="center">AdGuard<br/>Home</p>
|
||||||
- [Plex](https://homarr.dev/docs/integrations/media-server/#plex)
|
</a>
|
||||||
- [Jellyfin](https://homarr.dev/docs/integrations/media-server#jellyfin-and-emby)
|
</td>
|
||||||
- 📚 **Media collection managers**
|
<td align="center">
|
||||||
- [Sonarr](https://homarr.dev/docs/integrations/servarr#sonarr)
|
<a href="https://homarr.dev/docs/integrations/aria2" target="_blank" rel="noreferrer noopener">
|
||||||
- [Radarr](https://homarr.dev/docs/integrations/servarr#radarr)
|
<img src="https://cdn.jsdelivr.net/gh/PapirusDevelopmentTeam/papirus_icons@latest/src/system_downloads_3.svg" alt="Aria2" width="90" height="90" />
|
||||||
- [Lidarr](https://homarr.dev/docs/integrations/servarr#lidarr)
|
<br/>
|
||||||
- [Readarr](https://homarr.dev/docs/integrations/servarr#readarr)
|
<p align="center">Aria2</p>
|
||||||
- 🎞️ **Media request managers**
|
</a>
|
||||||
- [Overseerr](https://homarr.dev/docs/integrations/media-requester)
|
</td>
|
||||||
- [Jellyseerr](https://homarr.dev/docs/integrations/media-requester)
|
<td align="center">
|
||||||
- 🚫 **DNS ad-blockers**
|
<a href="https://homarr.dev/docs/integrations/codeberg" target="_blank" rel="noreferrer noopener">
|
||||||
- [Pihole](https://homarr.dev/docs/integrations/dns#pihole)
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/codeberg.svg" alt="Codeberg" width="90" height="90" />
|
||||||
- [AdGuard Home](https://homarr.dev/docs/integrations/dns#adguard-home)
|
<br/>
|
||||||
- 🖥️ **Monitoring**
|
<p align="center">Codeberg</p>
|
||||||
- [Dash.](https://homarr.dev/docs/integrations/hardware)
|
</a>
|
||||||
- [OpenMediaVault.](https://homarr.dev/docs/integrations/hardware/#openmediavault)
|
</td>
|
||||||
- [Proxmox.](https://homarr.dev/docs/integrations/hardware/#proxmox)
|
<td align="center">
|
||||||
- 🐳 **Container management**:
|
<a href="https://homarr.dev/docs/integrations/dash-dot" target="_blank" rel="noreferrer noopener">
|
||||||
- [Docker](https://homarr.dev/docs/integrations/containers)
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/png/dashdot.png" alt="Dash." width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Dash.</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/deluge" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/deluge.svg" alt="Deluge" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Deluge</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/docker-hub" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/docker.svg" alt="Docker Hub" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Docker<br/>Hub</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/emby" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/emby.svg" alt="Emby" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Emby</p>
|
||||||
|
</a>
|
||||||
|
</td></tr>
|
||||||
|
<tr><td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/github" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/github.svg" alt="Github" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Github</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/github" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/github.svg" alt="GitHub Container Registry" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">GitHub<br/>Container<br/>Registry</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/gitlab" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/gitlab.svg" alt="Gitlab" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Gitlab</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/home-assistant" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/home-assistant.svg" alt="Home Assistant" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Home<br/>Assistant</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/jellyfin" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/jellyfin.svg" alt="Jellyfin" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Jellyfin</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/jellyseerr" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/jellyseerr.svg" alt="Jellyseerr" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Jellyseerr</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/lidarr" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/lidarr.svg" alt="Lidarr" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Lidarr</p>
|
||||||
|
</a>
|
||||||
|
</td></tr>
|
||||||
|
<tr><td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/linux-server-io" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/linuxserver-io.svg" alt="LinuxServer.io" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">LinuxServer.io</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/nextcloud" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/nextcloud.svg" alt="Nextcloud" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Nextcloud</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/npm" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/npm.svg" alt="NPM" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">NPM</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/ntfy" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/ntfy.svg" alt="ntfy" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">ntfy</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/nzbget" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/nzbget.svg" alt="NZBGet" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">NZBGet</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/open-media-vault" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/openmediavault.svg" alt="OpenMediaVault" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">OpenMediaVault</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/opnsense" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/opnsense.svg" alt="OPNsense" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">OPNsense</p>
|
||||||
|
</a>
|
||||||
|
</td></tr>
|
||||||
|
<tr><td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/overseerr" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/overseerr.svg" alt="Overseerr" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Overseerr</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/pi-hole" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/pi-hole.svg" alt="Pi-hole" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Pi-hole</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/plex" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/plex.svg" alt="Plex" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Plex</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/prowlarr" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/prowlarr.svg" alt="Prowlarr" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Prowlarr</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/proxmox" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/proxmox.svg" alt="Proxmox" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Proxmox</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/q-bittorent" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/qbittorrent.svg" alt="qBittorrent" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">qBittorrent</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/quay" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/png/quay.png" alt="Quay" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Quay</p>
|
||||||
|
</a>
|
||||||
|
</td></tr>
|
||||||
|
<tr><td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/radarr" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/radarr.svg" alt="Radarr" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Radarr</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/readarr" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/readarr.svg" alt="Readarr" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Readarr</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/sabnzbd" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/sabnzbd.svg" alt="SABnzbd" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">SABnzbd</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/sonarr" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/sonarr.svg" alt="Sonarr" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Sonarr</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/tdarr" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/png/tdarr.png" alt="Tdarr" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Tdarr</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/transmission" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/transmission.svg" alt="Transmission" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Transmission</p>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://homarr.dev/docs/integrations/unifi-controller" target="_blank" rel="noreferrer noopener">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/png/unifi.png" alt="Unifi Controller" width="90" height="90" />
|
||||||
|
<br/>
|
||||||
|
<p align="center">Unifi<br/>Controller</p>
|
||||||
|
</a>
|
||||||
|
</td></tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- AUTO_GENERATE_INTEGRATION_LIST_END -->
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
[](https://homarr.dev/docs/category/installation-1)
|

|
||||||
|
|
||||||
Since we are updating Homarr very frequently, we recommend reading our official installation guides:
|
|
||||||
|
|
||||||
<h2>
|
<h2>
|
||||||
<a href="https://homarr.dev/docs/category/installation-1/">
|
<a href="https://homarr.dev/docs/category/installation-1/">
|
||||||
@@ -101,12 +319,15 @@ Since we are updating Homarr very frequently, we recommend reading our official
|
|||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
[](https://opencollective.com/homarr)
|

|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
Homarr is a free to use open source project that is maintained by volunteers and developers from all over the world. We publish under the ``Apache License 2.0`` license which allows commercial usage. We invest multiple hours daily in to providing support, developing Homarr, integrating to third party software and more. We also pay for licensing and server hosting fees.
|
Homarr is a free-to-use open source project maintained by volunteers and developers from all over the world.
|
||||||
Please consider to help us cover these costs to enable the future development of Homarr. Thank you!
|
We publish under the `Apache License 2.0` license which allows commercial usage.
|
||||||
|
We invest multiple hours daily in providing support, developing Homarr, integrating to third party software and more.
|
||||||
|
We also pay for licensing and server hosting fees.
|
||||||
|
Please consider helping us cover these costs to enable the future development of Homarr. Thank you!
|
||||||
|
|
||||||
<h2>
|
<h2>
|
||||||
<a href="https://opencollective.com/homarr">
|
<a href="https://opencollective.com/homarr">
|
||||||
@@ -117,9 +338,9 @@ Please consider to help us cover these costs to enable the future development of
|
|||||||
You can also support us by helping with [translating the entire project](https://homarr.dev/docs/community/translations) to as many languages as possible or contributing directly to the code or documentation. Please read our [Contribution Guidelines](/CONTRIBUTING.md). All contributions, regardless of their size or scope, are welcome and highly appreciated! Thank you ❤️
|
You can also support us by helping with [translating the entire project](https://homarr.dev/docs/community/translations) to as many languages as possible or contributing directly to the code or documentation. Please read our [Contribution Guidelines](/CONTRIBUTING.md). All contributions, regardless of their size or scope, are welcome and highly appreciated! Thank you ❤️
|
||||||
|
|
||||||
## Sponsors
|
## Sponsors
|
||||||
Thanks to your generous sponsors we can continue to build Homarr. Check them out for high quality and easy to use development tools.
|
|
||||||
|
Thanks to your generous sponsors, we can continue to build Homarr. Check them out for high-quality and easy-to-use development tools.
|
||||||
Feel free to contact us at homarr-labs@proton.me if you wish to become a sponsor.
|
Feel free to contact us at homarr-labs@proton.me if you wish to become a sponsor.
|
||||||
|
|
||||||
[](https://argos-ci.com?utm_source=%5Bhomarr%5D&utm_campaign=oss) \
|
[](https://argos-ci.com?utm_source=%5Bhomarr%5D&utm_campaign=oss) \
|
||||||
[](https://www.pikapods.com/pods?run=homarr-v1)
|
[](https://www.pikapods.com/pods?run=homarr-v1)
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 8.6 KiB |
|
After Width: | Height: | Size: 8.3 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 8.5 KiB |
|
After Width: | Height: | Size: 188 KiB |
|
Before Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 33 KiB |
@@ -1,9 +1,10 @@
|
|||||||
import { describe, expect, test } from "vitest";
|
import { describe, expect, test } from "vitest";
|
||||||
|
|
||||||
import { createHomarrContainer } from "./shared/create-homarr-container";
|
import { createHomarrContainer } from "./shared/create-homarr-container";
|
||||||
|
import { createRedisContainer } from "./shared/redis-container";
|
||||||
|
|
||||||
describe("Health checks", () => {
|
describe("Health checks", () => {
|
||||||
test("ready and live should return 200 OK", async () => {
|
test("ready and live should return 200 OK with normal image and no extra configuration", async () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const homarrContainer = await createHomarrContainer().start();
|
const homarrContainer = await createHomarrContainer().start();
|
||||||
|
|
||||||
@@ -15,4 +16,31 @@ describe("Health checks", () => {
|
|||||||
expect(readyResponse.status).toBe(200);
|
expect(readyResponse.status).toBe(200);
|
||||||
expect(liveResponse.status).toBe(200);
|
expect(liveResponse.status).toBe(200);
|
||||||
}, 20_000);
|
}, 20_000);
|
||||||
|
|
||||||
|
test("ready and live should return 200 OK with external redis", async () => {
|
||||||
|
// Arrange
|
||||||
|
const redisContainer = await createRedisContainer().start();
|
||||||
|
const homarrContainer = await createHomarrContainer({
|
||||||
|
environment: {
|
||||||
|
REDIS_IS_EXTERNAL: "true",
|
||||||
|
REDIS_HOST: "host.docker.internal",
|
||||||
|
REDIS_PORT: redisContainer.getMappedPort(6379).toString(),
|
||||||
|
REDIS_PASSWORD: redisContainer.getPassword(),
|
||||||
|
},
|
||||||
|
}).start();
|
||||||
|
|
||||||
|
// Act
|
||||||
|
const readyResponse = await fetch(`http://localhost:${homarrContainer.getMappedPort(7575)}/api/health/ready`);
|
||||||
|
const liveResponse = await fetch(`http://localhost:${homarrContainer.getMappedPort(7575)}/api/health/live`);
|
||||||
|
|
||||||
|
// Assert
|
||||||
|
expect(
|
||||||
|
readyResponse.status,
|
||||||
|
`Expected ready to return OK statusCode=${readyResponse.status} content=${await readyResponse.text()}`,
|
||||||
|
).toBe(200);
|
||||||
|
expect(
|
||||||
|
liveResponse.status,
|
||||||
|
`Expected live to return OK statusCode=${liveResponse.status} content=${await liveResponse.text()}`,
|
||||||
|
).toBe(200);
|
||||||
|
}, 20_000);
|
||||||
});
|
});
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import { RedisContainer } from "@testcontainers/redis";
|
||||||
|
|
||||||
|
export const createRedisContainer = () => {
|
||||||
|
return new RedisContainer("redis:latest").withPassword("homarr");
|
||||||
|
};
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "homarr",
|
"name": "homarr",
|
||||||
"version": "1.29.0",
|
"version": "1.32.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "cross-env CI=true turbo build",
|
"build": "cross-env CI=true turbo build",
|
||||||
@@ -27,7 +27,8 @@
|
|||||||
"test:e2e": "cross-env NODE_ENV=development CI=true vitest e2e",
|
"test:e2e": "cross-env NODE_ENV=development CI=true vitest e2e",
|
||||||
"test:ui": "cross-env NODE_ENV=development CI=true vitest --exclude e2e --ui --coverage.enabled",
|
"test:ui": "cross-env NODE_ENV=development CI=true vitest --exclude e2e --ui --coverage.enabled",
|
||||||
"typecheck": "turbo typecheck",
|
"typecheck": "turbo typecheck",
|
||||||
"with-env": "dotenv -e .env --"
|
"with-env": "dotenv -e .env --",
|
||||||
|
"scripts:update-readme-integrations": "tsx ./scripts/update-integration-list.mts"
|
||||||
},
|
},
|
||||||
"prettier": "@homarr/prettier-config",
|
"prettier": "@homarr/prettier-config",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -38,24 +39,25 @@
|
|||||||
"@semantic-release/github": "^11.0.3",
|
"@semantic-release/github": "^11.0.3",
|
||||||
"@semantic-release/npm": "^12.0.2",
|
"@semantic-release/npm": "^12.0.2",
|
||||||
"@semantic-release/release-notes-generator": "^14.0.3",
|
"@semantic-release/release-notes-generator": "^14.0.3",
|
||||||
|
"@testcontainers/redis": "^11.5.1",
|
||||||
"@turbo/gen": "^2.5.5",
|
"@turbo/gen": "^2.5.5",
|
||||||
"@vitejs/plugin-react": "^4.7.0",
|
"@vitejs/plugin-react": "^4.7.0",
|
||||||
"@vitest/coverage-v8": "^3.2.4",
|
"@vitest/coverage-v8": "^3.2.4",
|
||||||
"@vitest/ui": "^3.2.4",
|
"@vitest/ui": "^3.2.4",
|
||||||
"conventional-changelog-conventionalcommits": "^9.1.0",
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^10.0.0",
|
||||||
"jsdom": "^26.1.0",
|
"jsdom": "^26.1.0",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"semantic-release": "^24.2.7",
|
"semantic-release": "^24.2.7",
|
||||||
"testcontainers": "^11.2.1",
|
"testcontainers": "^11.5.1",
|
||||||
"turbo": "^2.5.5",
|
"turbo": "^2.5.5",
|
||||||
"typescript": "^5.8.3",
|
"typescript": "^5.9.2",
|
||||||
"vite-tsconfig-paths": "^5.1.4",
|
"vite-tsconfig-paths": "^5.1.4",
|
||||||
"vitest": "^3.2.4"
|
"vitest": "^3.2.4"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.13.1",
|
"packageManager": "pnpm@10.14.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=22.17.1"
|
"node": ">=22.18.0"
|
||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"onlyBuiltDependencies": [
|
"onlyBuiltDependencies": [
|
||||||
@@ -70,7 +72,7 @@
|
|||||||
"tree-sitter-json"
|
"tree-sitter-json"
|
||||||
],
|
],
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"proxmox-api>undici": "7.12.0"
|
"proxmox-api>undici": "7.13.0"
|
||||||
},
|
},
|
||||||
"allowUnusedPatches": true,
|
"allowUnusedPatches": true,
|
||||||
"ignoredBuiltDependencies": [
|
"ignoredBuiltDependencies": [
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -35,30 +35,31 @@
|
|||||||
"@homarr/log": "workspace:^",
|
"@homarr/log": "workspace:^",
|
||||||
"@homarr/old-import": "workspace:^0.1.0",
|
"@homarr/old-import": "workspace:^0.1.0",
|
||||||
"@homarr/old-schema": "workspace:^0.1.0",
|
"@homarr/old-schema": "workspace:^0.1.0",
|
||||||
|
"@homarr/ping": "workspace:^0.1.0",
|
||||||
"@homarr/redis": "workspace:^0.1.0",
|
"@homarr/redis": "workspace:^0.1.0",
|
||||||
"@homarr/request-handler": "workspace:^0.1.0",
|
"@homarr/request-handler": "workspace:^0.1.0",
|
||||||
"@homarr/server-settings": "workspace:^0.1.0",
|
"@homarr/server-settings": "workspace:^0.1.0",
|
||||||
"@homarr/validation": "workspace:^0.1.0",
|
"@homarr/validation": "workspace:^0.1.0",
|
||||||
"@kubernetes/client-node": "^1.3.0",
|
"@kubernetes/client-node": "^1.3.0",
|
||||||
"@tanstack/react-query": "^5.83.0",
|
"@tanstack/react-query": "^5.84.2",
|
||||||
"@trpc/client": "^11.4.3",
|
"@trpc/client": "^11.4.4",
|
||||||
"@trpc/react-query": "^11.4.3",
|
"@trpc/react-query": "^11.4.4",
|
||||||
"@trpc/server": "^11.4.3",
|
"@trpc/server": "^11.4.4",
|
||||||
"@trpc/tanstack-react-query": "^11.4.3",
|
"@trpc/tanstack-react-query": "^11.4.4",
|
||||||
"lodash.clonedeep": "^4.5.0",
|
"lodash.clonedeep": "^4.5.0",
|
||||||
"next": "15.4.1",
|
"next": "15.4.6",
|
||||||
"react": "19.1.0",
|
"react": "19.1.1",
|
||||||
"react-dom": "19.1.0",
|
"react-dom": "19.1.1",
|
||||||
"superjson": "2.2.2",
|
"superjson": "2.2.2",
|
||||||
"trpc-to-openapi": "^2.3.2",
|
"trpc-to-openapi": "^2.4.0",
|
||||||
"zod": "^3.25.76"
|
"zod": "^3.25.76"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -8,6 +8,7 @@ import { groupRouter } from "./router/group";
|
|||||||
import { homeRouter } from "./router/home";
|
import { homeRouter } from "./router/home";
|
||||||
import { iconsRouter } from "./router/icons";
|
import { iconsRouter } from "./router/icons";
|
||||||
import { importRouter } from "./router/import/import-router";
|
import { importRouter } from "./router/import/import-router";
|
||||||
|
import { infoRouter } from "./router/info";
|
||||||
import { integrationRouter } from "./router/integration/integration-router";
|
import { integrationRouter } from "./router/integration/integration-router";
|
||||||
import { inviteRouter } from "./router/invite";
|
import { inviteRouter } from "./router/invite";
|
||||||
import { kubernetesRouter } from "./router/kubernetes/router/kubernetes-router";
|
import { kubernetesRouter } from "./router/kubernetes/router/kubernetes-router";
|
||||||
@@ -47,6 +48,7 @@ export const appRouter = createTRPCRouter({
|
|||||||
media: mediaRouter,
|
media: mediaRouter,
|
||||||
updateChecker: updateCheckerRouter,
|
updateChecker: updateCheckerRouter,
|
||||||
certificates: certificateRouter,
|
certificates: certificateRouter,
|
||||||
|
info: infoRouter,
|
||||||
});
|
});
|
||||||
|
|
||||||
// export type definition of API
|
// export type definition of API
|
||||||
|
|||||||
@@ -277,12 +277,14 @@ export const groupRouter = createTRPCRouter({
|
|||||||
|
|
||||||
await ctx.db.delete(groupPermissions).where(eq(groupPermissions.groupId, input.groupId));
|
await ctx.db.delete(groupPermissions).where(eq(groupPermissions.groupId, input.groupId));
|
||||||
|
|
||||||
await ctx.db.insert(groupPermissions).values(
|
if (input.permissions.length > 0) {
|
||||||
input.permissions.map((permission) => ({
|
await ctx.db.insert(groupPermissions).values(
|
||||||
groupId: input.groupId,
|
input.permissions.map((permission) => ({
|
||||||
permission,
|
groupId: input.groupId,
|
||||||
})),
|
permission,
|
||||||
);
|
})),
|
||||||
|
);
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
transferOwnership: permissionRequiredProcedure
|
transferOwnership: permissionRequiredProcedure
|
||||||
.requiresPermission("admin")
|
.requiresPermission("admin")
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
import z from "zod";
|
||||||
|
|
||||||
|
import packageJson from "../../../../package.json";
|
||||||
|
import { createTRPCRouter, protectedProcedure } from "../trpc";
|
||||||
|
|
||||||
|
export const infoRouter = createTRPCRouter({
|
||||||
|
getInfo: protectedProcedure
|
||||||
|
.input(z.void())
|
||||||
|
.output(z.object({ version: z.string() }))
|
||||||
|
.meta({ openapi: { method: "GET", path: "/api/info", tags: ["info"] } })
|
||||||
|
.query(() => {
|
||||||
|
return {
|
||||||
|
version: packageJson.version,
|
||||||
|
};
|
||||||
|
}),
|
||||||
|
});
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
import { describe, expect, test, vi } from "vitest";
|
||||||
|
|
||||||
|
import type { Session } from "@homarr/auth";
|
||||||
|
import { createDb } from "@homarr/db/test";
|
||||||
|
import * as ping from "@homarr/ping";
|
||||||
|
|
||||||
|
import { appRouter } from "../../widgets/app";
|
||||||
|
|
||||||
|
// Mock the auth module to return an empty session
|
||||||
|
vi.mock("@homarr/auth", () => ({ auth: () => ({}) as Session }));
|
||||||
|
vi.mock("@homarr/ping", () => ({ sendPingRequestAsync: async () => await Promise.resolve(null) }));
|
||||||
|
|
||||||
|
describe("ping should call sendPingRequestAsync with url and return result", () => {
|
||||||
|
test("ping with error response should return error and url", async () => {
|
||||||
|
// Arrange
|
||||||
|
const spy = vi.spyOn(ping, "sendPingRequestAsync");
|
||||||
|
const url = "http://localhost";
|
||||||
|
const db = createDb();
|
||||||
|
const caller = appRouter.createCaller({
|
||||||
|
db,
|
||||||
|
deviceType: undefined,
|
||||||
|
session: null,
|
||||||
|
});
|
||||||
|
spy.mockImplementation(() => Promise.resolve({ error: "error" }));
|
||||||
|
|
||||||
|
// Act
|
||||||
|
const result = await caller.ping({ url });
|
||||||
|
|
||||||
|
// Assert
|
||||||
|
expect(result.url).toBe(url);
|
||||||
|
expect("error" in result).toBe(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
test("ping with success response should return statusCode and url", async () => {
|
||||||
|
// Arrange
|
||||||
|
const spy = vi.spyOn(ping, "sendPingRequestAsync");
|
||||||
|
const url = "http://localhost";
|
||||||
|
const db = createDb();
|
||||||
|
const caller = appRouter.createCaller({
|
||||||
|
db,
|
||||||
|
deviceType: undefined,
|
||||||
|
session: null,
|
||||||
|
});
|
||||||
|
spy.mockImplementation(() => Promise.resolve({ statusCode: 200, durationMs: 123 }));
|
||||||
|
|
||||||
|
// Act
|
||||||
|
const result = await caller.ping({ url });
|
||||||
|
|
||||||
|
// Assert
|
||||||
|
expect(result.url).toBe(url);
|
||||||
|
expect("statusCode" in result).toBe(true);
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -1,12 +1,20 @@
|
|||||||
import { observable } from "@trpc/server/observable";
|
import { observable } from "@trpc/server/observable";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { pingUrlChannel } from "@homarr/redis";
|
import { sendPingRequestAsync } from "@homarr/ping";
|
||||||
import { pingRequestHandler } from "@homarr/request-handler/ping";
|
import { pingChannel, pingUrlChannel } from "@homarr/redis";
|
||||||
|
|
||||||
import { createTRPCRouter, publicProcedure } from "../../trpc";
|
import { createTRPCRouter, publicProcedure } from "../../trpc";
|
||||||
|
|
||||||
export const appRouter = createTRPCRouter({
|
export const appRouter = createTRPCRouter({
|
||||||
|
ping: publicProcedure.input(z.object({ url: z.string() })).query(async ({ input }) => {
|
||||||
|
const pingResult = await sendPingRequestAsync(input.url);
|
||||||
|
|
||||||
|
return {
|
||||||
|
url: input.url,
|
||||||
|
...pingResult,
|
||||||
|
};
|
||||||
|
}),
|
||||||
updatedPing: publicProcedure
|
updatedPing: publicProcedure
|
||||||
.input(
|
.input(
|
||||||
z.object({
|
z.object({
|
||||||
@@ -15,20 +23,16 @@ export const appRouter = createTRPCRouter({
|
|||||||
)
|
)
|
||||||
.subscription(async ({ input }) => {
|
.subscription(async ({ input }) => {
|
||||||
await pingUrlChannel.addAsync(input.url);
|
await pingUrlChannel.addAsync(input.url);
|
||||||
const innerHandler = pingRequestHandler.handler({ url: input.url });
|
|
||||||
|
const pingResult = await sendPingRequestAsync(input.url);
|
||||||
|
|
||||||
return observable<{ url: string; statusCode: number; durationMs: number } | { url: string; error: string }>(
|
return observable<{ url: string; statusCode: number; durationMs: number } | { url: string; error: string }>(
|
||||||
(emit) => {
|
(emit) => {
|
||||||
// Run ping request in background
|
emit.next({ url: input.url, ...pingResult });
|
||||||
void innerHandler.getCachedOrUpdatedDataAsync({ forceUpdate: false }).then(({ data }) => {
|
const unsubscribe = pingChannel.subscribe((message) => {
|
||||||
emit.next({ url: input.url, ...data });
|
// Only emit if same url
|
||||||
});
|
if (message.url !== input.url) return;
|
||||||
|
emit.next(message);
|
||||||
const unsubscribe = innerHandler.subscribe((pingResponse) => {
|
|
||||||
emit.next({
|
|
||||||
url: input.url,
|
|
||||||
...pingResponse,
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
|
|||||||
@@ -0,0 +1,215 @@
|
|||||||
|
import { observable } from "@trpc/server/observable";
|
||||||
|
|
||||||
|
import type { Modify } from "@homarr/common/types";
|
||||||
|
import type { Integration } from "@homarr/db/schema";
|
||||||
|
import type { IntegrationKindByCategory } from "@homarr/definitions";
|
||||||
|
import { getIntegrationKindsByCategory } from "@homarr/definitions";
|
||||||
|
import type {
|
||||||
|
FirewallCpuSummary,
|
||||||
|
FirewallInterfacesSummary,
|
||||||
|
FirewallMemorySummary,
|
||||||
|
FirewallVersionSummary,
|
||||||
|
} from "@homarr/integrations";
|
||||||
|
import {
|
||||||
|
firewallCpuRequestHandler,
|
||||||
|
firewallInterfacesRequestHandler,
|
||||||
|
firewallMemoryRequestHandler,
|
||||||
|
firewallVersionRequestHandler,
|
||||||
|
} from "@homarr/request-handler/firewall";
|
||||||
|
|
||||||
|
import { createManyIntegrationMiddleware } from "../../middlewares/integration";
|
||||||
|
import { createTRPCRouter, publicProcedure } from "../../trpc";
|
||||||
|
|
||||||
|
export const firewallRouter = createTRPCRouter({
|
||||||
|
getFirewallCpuStatus: publicProcedure
|
||||||
|
.concat(createManyIntegrationMiddleware("query", ...getIntegrationKindsByCategory("firewall")))
|
||||||
|
.query(async ({ ctx }) => {
|
||||||
|
const results = await Promise.all(
|
||||||
|
ctx.integrations.map(async (integration) => {
|
||||||
|
const innerHandler = firewallCpuRequestHandler.handler(integration, {});
|
||||||
|
const { data, timestamp } = await innerHandler.getCachedOrUpdatedDataAsync({ forceUpdate: false });
|
||||||
|
|
||||||
|
return {
|
||||||
|
integration: {
|
||||||
|
id: integration.id,
|
||||||
|
name: integration.name,
|
||||||
|
kind: integration.kind,
|
||||||
|
updatedAt: timestamp,
|
||||||
|
},
|
||||||
|
summary: data,
|
||||||
|
};
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
return results;
|
||||||
|
}),
|
||||||
|
subscribeFirewallCpuStatus: publicProcedure
|
||||||
|
.concat(createManyIntegrationMiddleware("query", ...getIntegrationKindsByCategory("firewall")))
|
||||||
|
.subscription(({ ctx }) => {
|
||||||
|
return observable<{
|
||||||
|
integration: Modify<Integration, { kind: IntegrationKindByCategory<"firewall"> }>;
|
||||||
|
summary: FirewallCpuSummary;
|
||||||
|
}>((emit) => {
|
||||||
|
const unsubscribes: (() => void)[] = [];
|
||||||
|
for (const integrationWithSecrets of ctx.integrations) {
|
||||||
|
const { decryptedSecrets: _, ...integration } = integrationWithSecrets;
|
||||||
|
const innerHandler = firewallCpuRequestHandler.handler(integrationWithSecrets, {});
|
||||||
|
const unsubscribe = innerHandler.subscribe((summary) => {
|
||||||
|
emit.next({
|
||||||
|
integration,
|
||||||
|
summary,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
unsubscribes.push(unsubscribe);
|
||||||
|
}
|
||||||
|
return () => {
|
||||||
|
unsubscribes.forEach((unsubscribe) => {
|
||||||
|
unsubscribe();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}),
|
||||||
|
|
||||||
|
getFirewallInterfacesStatus: publicProcedure
|
||||||
|
.concat(createManyIntegrationMiddleware("query", ...getIntegrationKindsByCategory("firewall")))
|
||||||
|
.query(async ({ ctx }) => {
|
||||||
|
const results = await Promise.all(
|
||||||
|
ctx.integrations.map(async (integration) => {
|
||||||
|
const innerHandler = firewallInterfacesRequestHandler.handler(integration, {});
|
||||||
|
const { data, timestamp } = await innerHandler.getCachedOrUpdatedDataAsync({ forceUpdate: false });
|
||||||
|
|
||||||
|
return {
|
||||||
|
integration: {
|
||||||
|
id: integration.id,
|
||||||
|
name: integration.name,
|
||||||
|
kind: integration.kind,
|
||||||
|
updatedAt: timestamp,
|
||||||
|
},
|
||||||
|
summary: data,
|
||||||
|
};
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
return results;
|
||||||
|
}),
|
||||||
|
subscribeFirewallInterfacesStatus: publicProcedure
|
||||||
|
.concat(createManyIntegrationMiddleware("query", ...getIntegrationKindsByCategory("firewall")))
|
||||||
|
.subscription(({ ctx }) => {
|
||||||
|
return observable<{
|
||||||
|
integration: Modify<Integration, { kind: IntegrationKindByCategory<"firewall"> }>;
|
||||||
|
summary: FirewallInterfacesSummary[];
|
||||||
|
}>((emit) => {
|
||||||
|
const unsubscribes: (() => void)[] = [];
|
||||||
|
for (const integrationWithSecrets of ctx.integrations) {
|
||||||
|
const { decryptedSecrets: _, ...integration } = integrationWithSecrets;
|
||||||
|
const innerHandler = firewallInterfacesRequestHandler.handler(integrationWithSecrets, {});
|
||||||
|
const unsubscribe = innerHandler.subscribe((summary) => {
|
||||||
|
emit.next({
|
||||||
|
integration,
|
||||||
|
summary,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
unsubscribes.push(unsubscribe);
|
||||||
|
}
|
||||||
|
return () => {
|
||||||
|
unsubscribes.forEach((unsubscribe) => {
|
||||||
|
unsubscribe();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}),
|
||||||
|
|
||||||
|
getFirewallVersionStatus: publicProcedure
|
||||||
|
.concat(createManyIntegrationMiddleware("query", ...getIntegrationKindsByCategory("firewall")))
|
||||||
|
.query(async ({ ctx }) => {
|
||||||
|
const results = await Promise.all(
|
||||||
|
ctx.integrations.map(async (integration) => {
|
||||||
|
const innerHandler = firewallVersionRequestHandler.handler(integration, {});
|
||||||
|
const { data, timestamp } = await innerHandler.getCachedOrUpdatedDataAsync({ forceUpdate: false });
|
||||||
|
|
||||||
|
return {
|
||||||
|
integration: {
|
||||||
|
id: integration.id,
|
||||||
|
name: integration.name,
|
||||||
|
kind: integration.kind,
|
||||||
|
updatedAt: timestamp,
|
||||||
|
},
|
||||||
|
summary: data,
|
||||||
|
};
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
return results;
|
||||||
|
}),
|
||||||
|
subscribeFirewallVersionStatus: publicProcedure
|
||||||
|
.concat(createManyIntegrationMiddleware("query", ...getIntegrationKindsByCategory("firewall")))
|
||||||
|
.subscription(({ ctx }) => {
|
||||||
|
return observable<{
|
||||||
|
integration: Modify<Integration, { kind: IntegrationKindByCategory<"firewall"> }>;
|
||||||
|
summary: FirewallVersionSummary;
|
||||||
|
}>((emit) => {
|
||||||
|
const unsubscribes: (() => void)[] = [];
|
||||||
|
for (const integrationWithSecrets of ctx.integrations) {
|
||||||
|
const { decryptedSecrets: _, ...integration } = integrationWithSecrets;
|
||||||
|
const innerHandler = firewallVersionRequestHandler.handler(integrationWithSecrets, {});
|
||||||
|
const unsubscribe = innerHandler.subscribe((summary) => {
|
||||||
|
emit.next({
|
||||||
|
integration,
|
||||||
|
summary,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
unsubscribes.push(unsubscribe);
|
||||||
|
}
|
||||||
|
return () => {
|
||||||
|
unsubscribes.forEach((unsubscribe) => {
|
||||||
|
unsubscribe();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}),
|
||||||
|
|
||||||
|
getFirewallMemoryStatus: publicProcedure
|
||||||
|
.concat(createManyIntegrationMiddleware("query", ...getIntegrationKindsByCategory("firewall")))
|
||||||
|
.query(async ({ ctx }) => {
|
||||||
|
const results = await Promise.all(
|
||||||
|
ctx.integrations.map(async (integration) => {
|
||||||
|
const innerHandler = firewallMemoryRequestHandler.handler(integration, {});
|
||||||
|
const { data, timestamp } = await innerHandler.getCachedOrUpdatedDataAsync({ forceUpdate: false });
|
||||||
|
|
||||||
|
return {
|
||||||
|
integration: {
|
||||||
|
id: integration.id,
|
||||||
|
name: integration.name,
|
||||||
|
kind: integration.kind,
|
||||||
|
updatedAt: timestamp,
|
||||||
|
},
|
||||||
|
summary: data,
|
||||||
|
};
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
return results;
|
||||||
|
}),
|
||||||
|
subscribeFirewallMemoryStatus: publicProcedure
|
||||||
|
.concat(createManyIntegrationMiddleware("query", ...getIntegrationKindsByCategory("firewall")))
|
||||||
|
.subscription(({ ctx }) => {
|
||||||
|
return observable<{
|
||||||
|
integration: Modify<Integration, { kind: IntegrationKindByCategory<"firewall"> }>;
|
||||||
|
summary: FirewallMemorySummary;
|
||||||
|
}>((emit) => {
|
||||||
|
const unsubscribes: (() => void)[] = [];
|
||||||
|
for (const integrationWithSecrets of ctx.integrations) {
|
||||||
|
const { decryptedSecrets: _, ...integration } = integrationWithSecrets;
|
||||||
|
const innerHandler = firewallMemoryRequestHandler.handler(integrationWithSecrets, {});
|
||||||
|
const unsubscribe = innerHandler.subscribe((summary) => {
|
||||||
|
emit.next({
|
||||||
|
integration,
|
||||||
|
summary,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
unsubscribes.push(unsubscribe);
|
||||||
|
}
|
||||||
|
return () => {
|
||||||
|
unsubscribes.forEach((unsubscribe) => {
|
||||||
|
unsubscribe();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}),
|
||||||
|
});
|
||||||
@@ -3,8 +3,10 @@ import { appRouter } from "./app";
|
|||||||
import { calendarRouter } from "./calendar";
|
import { calendarRouter } from "./calendar";
|
||||||
import { dnsHoleRouter } from "./dns-hole";
|
import { dnsHoleRouter } from "./dns-hole";
|
||||||
import { downloadsRouter } from "./downloads";
|
import { downloadsRouter } from "./downloads";
|
||||||
|
import { firewallRouter } from "./firewall";
|
||||||
import { healthMonitoringRouter } from "./health-monitoring";
|
import { healthMonitoringRouter } from "./health-monitoring";
|
||||||
import { indexerManagerRouter } from "./indexer-manager";
|
import { indexerManagerRouter } from "./indexer-manager";
|
||||||
|
import { mediaReleaseRouter } from "./media-release";
|
||||||
import { mediaRequestsRouter } from "./media-requests";
|
import { mediaRequestsRouter } from "./media-requests";
|
||||||
import { mediaServerRouter } from "./media-server";
|
import { mediaServerRouter } from "./media-server";
|
||||||
import { mediaTranscodingRouter } from "./media-transcoding";
|
import { mediaTranscodingRouter } from "./media-transcoding";
|
||||||
@@ -27,6 +29,7 @@ export const widgetRouter = createTRPCRouter({
|
|||||||
smartHome: smartHomeRouter,
|
smartHome: smartHomeRouter,
|
||||||
stockPrice: stockPriceRouter,
|
stockPrice: stockPriceRouter,
|
||||||
mediaServer: mediaServerRouter,
|
mediaServer: mediaServerRouter,
|
||||||
|
mediaRelease: mediaReleaseRouter,
|
||||||
calendar: calendarRouter,
|
calendar: calendarRouter,
|
||||||
downloads: downloadsRouter,
|
downloads: downloadsRouter,
|
||||||
mediaRequests: mediaRequestsRouter,
|
mediaRequests: mediaRequestsRouter,
|
||||||
@@ -38,5 +41,6 @@ export const widgetRouter = createTRPCRouter({
|
|||||||
options: optionsRouter,
|
options: optionsRouter,
|
||||||
releases: releasesRouter,
|
releases: releasesRouter,
|
||||||
networkController: networkControllerRouter,
|
networkController: networkControllerRouter,
|
||||||
|
firewall: firewallRouter,
|
||||||
notifications: notificationsRouter,
|
notifications: notificationsRouter,
|
||||||
});
|
});
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
import { observable } from "@trpc/server/observable";
|
||||||
|
|
||||||
|
import type { Modify } from "@homarr/common/types";
|
||||||
|
import type { Integration } from "@homarr/db/schema";
|
||||||
|
import type { IntegrationKindByCategory } from "@homarr/definitions";
|
||||||
|
import { getIntegrationKindsByCategory } from "@homarr/definitions";
|
||||||
|
import type { MediaRelease } from "@homarr/integrations/types";
|
||||||
|
import { mediaReleaseRequestHandler } from "@homarr/request-handler/media-release";
|
||||||
|
|
||||||
|
import { createManyIntegrationMiddleware } from "../../middlewares/integration";
|
||||||
|
import { createTRPCRouter, publicProcedure } from "../../trpc";
|
||||||
|
|
||||||
|
export const mediaReleaseRouter = createTRPCRouter({
|
||||||
|
getMediaReleases: publicProcedure
|
||||||
|
.concat(createManyIntegrationMiddleware("query", ...getIntegrationKindsByCategory("mediaRelease")))
|
||||||
|
.query(async ({ ctx }) => {
|
||||||
|
const results = await Promise.all(
|
||||||
|
ctx.integrations.map(async (integration) => {
|
||||||
|
const innerHandler = mediaReleaseRequestHandler.handler(integration, {});
|
||||||
|
const { data, timestamp } = await innerHandler.getCachedOrUpdatedDataAsync({ forceUpdate: false });
|
||||||
|
|
||||||
|
return {
|
||||||
|
integration: {
|
||||||
|
id: integration.id,
|
||||||
|
name: integration.name,
|
||||||
|
kind: integration.kind,
|
||||||
|
updatedAt: timestamp,
|
||||||
|
},
|
||||||
|
releases: data,
|
||||||
|
};
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
return results.flatMap((result) =>
|
||||||
|
result.releases.map((release) => ({
|
||||||
|
...release,
|
||||||
|
integration: result.integration,
|
||||||
|
})),
|
||||||
|
);
|
||||||
|
}),
|
||||||
|
|
||||||
|
subscribeToReleases: publicProcedure
|
||||||
|
.concat(createManyIntegrationMiddleware("query", ...getIntegrationKindsByCategory("mediaRelease")))
|
||||||
|
.subscription(({ ctx }) => {
|
||||||
|
return observable<{
|
||||||
|
integration: Modify<Integration, { kind: IntegrationKindByCategory<"mediaRelease"> }>;
|
||||||
|
releases: MediaRelease[];
|
||||||
|
}>((emit) => {
|
||||||
|
const unsubscribes: (() => void)[] = [];
|
||||||
|
for (const integrationWithSecrets of ctx.integrations) {
|
||||||
|
const { decryptedSecrets: _, ...integration } = integrationWithSecrets;
|
||||||
|
const innerHandler = mediaReleaseRequestHandler.handler(integrationWithSecrets, {});
|
||||||
|
const unsubscribe = innerHandler.subscribe((releases) => {
|
||||||
|
emit.next({
|
||||||
|
integration,
|
||||||
|
releases,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
unsubscribes.push(unsubscribe);
|
||||||
|
}
|
||||||
|
return () => {
|
||||||
|
unsubscribes.forEach((unsubscribe) => {
|
||||||
|
unsubscribe();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}),
|
||||||
|
});
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
|
import { createBooleanSchema, createDurationSchema, createEnv } from "@homarr/core/infrastructure/env";
|
||||||
import { supportedAuthProviders } from "@homarr/definitions";
|
import { supportedAuthProviders } from "@homarr/definitions";
|
||||||
import { createEnv } from "@homarr/env";
|
|
||||||
import { createBooleanSchema, createDurationSchema } from "@homarr/env/schemas";
|
|
||||||
|
|
||||||
const authProvidersSchema = z
|
const authProvidersSchema = z
|
||||||
.string()
|
.string()
|
||||||
|
|||||||
@@ -27,28 +27,28 @@
|
|||||||
"@auth/drizzle-adapter": "^1.10.0",
|
"@auth/drizzle-adapter": "^1.10.0",
|
||||||
"@homarr/certificates": "workspace:^0.1.0",
|
"@homarr/certificates": "workspace:^0.1.0",
|
||||||
"@homarr/common": "workspace:^0.1.0",
|
"@homarr/common": "workspace:^0.1.0",
|
||||||
|
"@homarr/core": "workspace:^0.1.0",
|
||||||
"@homarr/db": "workspace:^0.1.0",
|
"@homarr/db": "workspace:^0.1.0",
|
||||||
"@homarr/definitions": "workspace:^0.1.0",
|
"@homarr/definitions": "workspace:^0.1.0",
|
||||||
"@homarr/env": "workspace:^0.1.0",
|
|
||||||
"@homarr/log": "workspace:^0.1.0",
|
"@homarr/log": "workspace:^0.1.0",
|
||||||
"@homarr/validation": "workspace:^0.1.0",
|
"@homarr/validation": "workspace:^0.1.0",
|
||||||
"bcrypt": "^6.0.0",
|
"bcrypt": "^6.0.0",
|
||||||
"cookies": "^0.9.1",
|
"cookies": "^0.9.1",
|
||||||
"ldapts": "8.0.6",
|
"ldapts": "8.0.9",
|
||||||
"next": "15.4.1",
|
"next": "15.4.6",
|
||||||
"next-auth": "5.0.0-beta.29",
|
"next-auth": "5.0.0-beta.29",
|
||||||
"react": "19.1.0",
|
"react": "19.1.1",
|
||||||
"react-dom": "19.1.0",
|
"react-dom": "19.1.1",
|
||||||
"zod": "^3.25.76"
|
"zod": "^3.25.76"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"@types/bcrypt": "5.0.2",
|
"@types/bcrypt": "6.0.0",
|
||||||
"@types/cookies": "0.9.1",
|
"@types/cookies": "0.9.1",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,14 +25,14 @@
|
|||||||
"prettier": "@homarr/prettier-config",
|
"prettier": "@homarr/prettier-config",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@homarr/api": "workspace:^0.1.0",
|
"@homarr/api": "workspace:^0.1.0",
|
||||||
"react": "19.1.0",
|
"react": "19.1.1",
|
||||||
"react-dom": "19.1.0"
|
"react-dom": "19.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -24,13 +24,13 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@homarr/common": "workspace:^0.1.0",
|
"@homarr/common": "workspace:^0.1.0",
|
||||||
"@homarr/db": "workspace:^0.1.0",
|
"@homarr/db": "workspace:^0.1.0",
|
||||||
"undici": "7.12.0"
|
"undici": "7.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6,6 +6,7 @@ import { Agent as HttpsAgent } from "node:https";
|
|||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { checkServerIdentity, rootCertificates } from "node:tls";
|
import { checkServerIdentity, rootCertificates } from "node:tls";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
import type { RequestInfo, RequestInit, Response } from "undici";
|
||||||
import { fetch } from "undici";
|
import { fetch } from "undici";
|
||||||
|
|
||||||
import { env } from "@homarr/common/env";
|
import { env } from "@homarr/common/env";
|
||||||
@@ -131,8 +132,8 @@ export const createAxiosCertificateInstanceAsync = async (
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
export const fetchWithTrustedCertificatesAsync: typeof fetch = async (url, options) => {
|
export const fetchWithTrustedCertificatesAsync = async (url: RequestInfo, options?: RequestInit): Promise<Response> => {
|
||||||
const agent = await createCertificateAgentAsync();
|
const agent = await createCertificateAgentAsync(undefined);
|
||||||
return fetch(url, {
|
return fetch(url, {
|
||||||
...options,
|
...options,
|
||||||
dispatcher: agent,
|
dispatcher: agent,
|
||||||
|
|||||||
@@ -28,14 +28,14 @@
|
|||||||
"@homarr/common": "workspace:^0.1.0",
|
"@homarr/common": "workspace:^0.1.0",
|
||||||
"@homarr/db": "workspace:^0.1.0",
|
"@homarr/db": "workspace:^0.1.0",
|
||||||
"@homarr/validation": "workspace:^0.1.0",
|
"@homarr/validation": "workspace:^0.1.0",
|
||||||
"dotenv": "^17.2.0"
|
"dotenv": "^17.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"esbuild": "^0.25.6",
|
"esbuild": "^0.25.8",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { randomBytes } from "crypto";
|
import { randomBytes } from "crypto";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { createEnv } from "@homarr/env";
|
import { createEnv } from "@homarr/core/infrastructure/env";
|
||||||
|
|
||||||
const errorSuffix = `, please generate a 64 character secret in hex format or use the following: "${randomBytes(32).toString("hex")}"`;
|
const errorSuffix = `, please generate a 64 character secret in hex format or use the following: "${randomBytes(32).toString("hex")}"`;
|
||||||
|
|
||||||
|
|||||||
@@ -27,14 +27,14 @@
|
|||||||
},
|
},
|
||||||
"prettier": "@homarr/prettier-config",
|
"prettier": "@homarr/prettier-config",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@homarr/env": "workspace:^0.1.0",
|
"@homarr/core": "workspace:^0.1.0",
|
||||||
"@homarr/log": "workspace:^0.1.0",
|
"@homarr/log": "workspace:^0.1.0",
|
||||||
"@paralleldrive/cuid2": "^2.2.2",
|
"@paralleldrive/cuid2": "^2.2.2",
|
||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.13",
|
||||||
"next": "15.4.1",
|
"next": "15.4.6",
|
||||||
"react": "19.1.0",
|
"react": "19.1.1",
|
||||||
"react-dom": "19.1.0",
|
"react-dom": "19.1.1",
|
||||||
"undici": "7.12.0",
|
"undici": "7.13.0",
|
||||||
"zod": "^3.25.76",
|
"zod": "^3.25.76",
|
||||||
"zod-validation-error": "^3.5.3"
|
"zod-validation-error": "^3.5.3"
|
||||||
},
|
},
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -12,3 +12,4 @@ export * from "./error";
|
|||||||
export * from "./fetch-with-timeout";
|
export * from "./fetch-with-timeout";
|
||||||
export * from "./theme";
|
export * from "./theme";
|
||||||
export * from "./function";
|
export * from "./function";
|
||||||
|
export * from "./id";
|
||||||
@@ -1,9 +1,4 @@
|
|||||||
import baseConfig from "@homarr/eslint-config/base";
|
import baseConfig from "@homarr/eslint-config/base";
|
||||||
|
|
||||||
/** @type {import('typescript-eslint').Config} */
|
/** @type {import('typescript-eslint').Config} */
|
||||||
export default [
|
export default [...baseConfig];
|
||||||
{
|
|
||||||
ignores: [],
|
|
||||||
},
|
|
||||||
...baseConfig,
|
|
||||||
];
|
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
"name": "@homarr/core",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"private": true,
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"type": "module",
|
||||||
|
"exports": {
|
||||||
|
"./infrastructure/redis": "./src/infrastructure/redis/client.ts",
|
||||||
|
"./infrastructure/env": "./src/infrastructure/env/index.ts",
|
||||||
|
".": "./src/index.ts"
|
||||||
|
},
|
||||||
|
"typesVersions": {
|
||||||
|
"*": {
|
||||||
|
"*": [
|
||||||
|
"src/*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"clean": "rm -rf .turbo node_modules",
|
||||||
|
"format": "prettier --check . --ignore-path ../../.gitignore",
|
||||||
|
"lint": "eslint",
|
||||||
|
"typecheck": "tsc --noEmit"
|
||||||
|
},
|
||||||
|
"prettier": "@homarr/prettier-config",
|
||||||
|
"dependencies": {
|
||||||
|
"@t3-oss/env-nextjs": "^0.13.8",
|
||||||
|
"ioredis": "5.7.0",
|
||||||
|
"zod": "^3.25.76"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
|
"eslint": "^9.32.0",
|
||||||
|
"typescript": "^5.9.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -7,3 +7,6 @@ export const defaultEnvOptions = {
|
|||||||
} satisfies Partial<Parameters<typeof createEnvT3>[0]>;
|
} satisfies Partial<Parameters<typeof createEnvT3>[0]>;
|
||||||
|
|
||||||
export const createEnv: typeof createEnvT3 = (options) => createEnvT3({ ...defaultEnvOptions, ...options });
|
export const createEnv: typeof createEnvT3 = (options) => createEnvT3({ ...defaultEnvOptions, ...options });
|
||||||
|
|
||||||
|
export * from "./prefix";
|
||||||
|
export * from "./schemas";
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
export const runtimeEnvWithPrefix = (prefix: `${string}_`) =>
|
||||||
|
Object.entries(process.env)
|
||||||
|
.filter(([key]) => key.startsWith(prefix))
|
||||||
|
.reduce(
|
||||||
|
(acc, [key, value]) => {
|
||||||
|
if (value === undefined) return acc;
|
||||||
|
|
||||||
|
const newKey = key.replace(prefix, "");
|
||||||
|
acc[newKey] = value;
|
||||||
|
return acc;
|
||||||
|
},
|
||||||
|
{} as Record<string, string>,
|
||||||
|
);
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
import type { RedisOptions } from "ioredis";
|
||||||
|
import { Redis } from "ioredis";
|
||||||
|
|
||||||
|
import { redisEnv } from "./env";
|
||||||
|
|
||||||
|
const defaultRedisOptions = {
|
||||||
|
connectionName: "homarr",
|
||||||
|
} satisfies RedisOptions;
|
||||||
|
|
||||||
|
export type { Redis as RedisClient } from "ioredis";
|
||||||
|
|
||||||
|
export const createRedisClient = () =>
|
||||||
|
redisEnv.IS_EXTERNAL
|
||||||
|
? new Redis({
|
||||||
|
...defaultRedisOptions,
|
||||||
|
host: redisEnv.HOST,
|
||||||
|
port: redisEnv.PORT,
|
||||||
|
tls: redisEnv.TLS_CA
|
||||||
|
? {
|
||||||
|
ca: redisEnv.TLS_CA,
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
|
username: redisEnv.USERNAME,
|
||||||
|
password: redisEnv.PASSWORD,
|
||||||
|
})
|
||||||
|
: new Redis(defaultRedisOptions);
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import { z } from "zod/v4";
|
||||||
|
|
||||||
|
import { createEnv } from "../env";
|
||||||
|
import { runtimeEnvWithPrefix } from "../env/prefix";
|
||||||
|
import { createBooleanSchema } from "../env/schemas";
|
||||||
|
|
||||||
|
export const redisEnv = createEnv({
|
||||||
|
server: {
|
||||||
|
IS_EXTERNAL: createBooleanSchema(false),
|
||||||
|
HOST: z.string().optional(),
|
||||||
|
PORT: z.coerce.number().default(6379).optional(),
|
||||||
|
TLS_CA: z.string().optional(),
|
||||||
|
USERNAME: z.string().optional(),
|
||||||
|
PASSWORD: z.string().optional(),
|
||||||
|
},
|
||||||
|
runtimeEnv: runtimeEnvWithPrefix("REDIS_"),
|
||||||
|
});
|
||||||
@@ -26,15 +26,15 @@
|
|||||||
"prettier": "@homarr/prettier-config",
|
"prettier": "@homarr/prettier-config",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@homarr/common": "workspace:^0.1.0",
|
"@homarr/common": "workspace:^0.1.0",
|
||||||
|
"@homarr/core": "workspace:^0.1.0",
|
||||||
"@homarr/cron-jobs": "workspace:^0.1.0",
|
"@homarr/cron-jobs": "workspace:^0.1.0",
|
||||||
"@homarr/env": "workspace:^0.1.0",
|
|
||||||
"@homarr/log": "workspace:^0.1.0",
|
"@homarr/log": "workspace:^0.1.0",
|
||||||
"@tanstack/react-query": "^5.83.0",
|
"@tanstack/react-query": "^5.84.2",
|
||||||
"@trpc/client": "^11.4.3",
|
"@trpc/client": "^11.4.4",
|
||||||
"@trpc/server": "^11.4.3",
|
"@trpc/server": "^11.4.4",
|
||||||
"@trpc/tanstack-react-query": "^11.4.3",
|
"@trpc/tanstack-react-query": "^11.4.4",
|
||||||
"node-cron": "^4.2.1",
|
"node-cron": "^4.2.1",
|
||||||
"react": "19.1.0",
|
"react": "19.1.1",
|
||||||
"zod": "^3.25.76"
|
"zod": "^3.25.76"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -42,8 +42,8 @@
|
|||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"@types/node-cron": "^3.0.11",
|
"@types/node-cron": "^3.0.11",
|
||||||
"@types/react": "19.1.8",
|
"@types/react": "19.1.9",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { z } from "zod/v4";
|
import { z } from "zod/v4";
|
||||||
|
|
||||||
import { env as commonEnv } from "@homarr/common/env";
|
import { env as commonEnv } from "@homarr/common/env";
|
||||||
import { createEnv } from "@homarr/env";
|
import { createEnv } from "@homarr/core/infrastructure/env";
|
||||||
|
|
||||||
export const env = createEnv({
|
export const env = createEnv({
|
||||||
server: {
|
server: {
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"@types/node-cron": "^3.0.11",
|
"@types/node-cron": "^3.0.11",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
import { checkCron } from "./validation";
|
import { checkCron } from "./validation";
|
||||||
|
|
||||||
export const EVERY_5_SECONDS = checkCron("*/5 * * * * *") satisfies string;
|
export const EVERY_5_SECONDS = checkCron("*/5 * * * * *") satisfies string;
|
||||||
|
export const EVERY_30_SECONDS = checkCron("*/30 * * * * *") satisfies string;
|
||||||
export const EVERY_MINUTE = checkCron("* * * * *") satisfies string;
|
export const EVERY_MINUTE = checkCron("* * * * *") satisfies string;
|
||||||
export const EVERY_5_MINUTES = checkCron("*/5 * * * *") satisfies string;
|
export const EVERY_5_MINUTES = checkCron("*/5 * * * *") satisfies string;
|
||||||
export const EVERY_10_MINUTES = checkCron("*/10 * * * *") satisfies string;
|
export const EVERY_10_MINUTES = checkCron("*/10 * * * *") satisfies string;
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
"@homarr/icons": "workspace:^0.1.0",
|
"@homarr/icons": "workspace:^0.1.0",
|
||||||
"@homarr/integrations": "workspace:^0.1.0",
|
"@homarr/integrations": "workspace:^0.1.0",
|
||||||
"@homarr/log": "workspace:^0.1.0",
|
"@homarr/log": "workspace:^0.1.0",
|
||||||
|
"@homarr/ping": "workspace:^0.1.0",
|
||||||
"@homarr/redis": "workspace:^0.1.0",
|
"@homarr/redis": "workspace:^0.1.0",
|
||||||
"@homarr/request-handler": "workspace:^0.1.0",
|
"@homarr/request-handler": "workspace:^0.1.0",
|
||||||
"@homarr/server-settings": "workspace:^0.1.0",
|
"@homarr/server-settings": "workspace:^0.1.0",
|
||||||
@@ -43,7 +44,7 @@
|
|||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3,6 +3,12 @@ import { dockerContainersJob } from "./jobs/docker";
|
|||||||
import { iconsUpdaterJob } from "./jobs/icons-updater";
|
import { iconsUpdaterJob } from "./jobs/icons-updater";
|
||||||
import { dnsHoleJob } from "./jobs/integrations/dns-hole";
|
import { dnsHoleJob } from "./jobs/integrations/dns-hole";
|
||||||
import { downloadsJob } from "./jobs/integrations/downloads";
|
import { downloadsJob } from "./jobs/integrations/downloads";
|
||||||
|
import {
|
||||||
|
firewallCpuJob,
|
||||||
|
firewallInterfacesJob,
|
||||||
|
firewallMemoryJob,
|
||||||
|
firewallVersionJob,
|
||||||
|
} from "./jobs/integrations/firewall";
|
||||||
import { healthMonitoringJob } from "./jobs/integrations/health-monitoring";
|
import { healthMonitoringJob } from "./jobs/integrations/health-monitoring";
|
||||||
import { smartHomeEntityStateJob } from "./jobs/integrations/home-assistant";
|
import { smartHomeEntityStateJob } from "./jobs/integrations/home-assistant";
|
||||||
import { indexerManagerJob } from "./jobs/integrations/indexer-manager";
|
import { indexerManagerJob } from "./jobs/integrations/indexer-manager";
|
||||||
@@ -39,6 +45,10 @@ export const jobGroup = createCronJobGroup({
|
|||||||
minecraftServerStatus: minecraftServerStatusJob,
|
minecraftServerStatus: minecraftServerStatusJob,
|
||||||
dockerContainers: dockerContainersJob,
|
dockerContainers: dockerContainersJob,
|
||||||
networkController: networkControllerJob,
|
networkController: networkControllerJob,
|
||||||
|
firewallCpu: firewallCpuJob,
|
||||||
|
firewallMemory: firewallMemoryJob,
|
||||||
|
firewallVersion: firewallVersionJob,
|
||||||
|
firewallInterfaces: firewallInterfacesJob,
|
||||||
refreshNotifications: refreshNotificationsJob,
|
refreshNotifications: refreshNotificationsJob,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,46 @@
|
|||||||
|
import { EVERY_5_SECONDS, EVERY_30_SECONDS, EVERY_HOUR, EVERY_MINUTE } from "@homarr/cron-jobs-core/expressions";
|
||||||
|
import {
|
||||||
|
firewallCpuRequestHandler,
|
||||||
|
firewallInterfacesRequestHandler,
|
||||||
|
firewallMemoryRequestHandler,
|
||||||
|
firewallVersionRequestHandler,
|
||||||
|
} from "@homarr/request-handler/firewall";
|
||||||
|
import { createRequestIntegrationJobHandler } from "@homarr/request-handler/lib/cached-request-integration-job-handler";
|
||||||
|
|
||||||
|
import { createCronJob } from "../../lib";
|
||||||
|
|
||||||
|
export const firewallCpuJob = createCronJob("firewallCpu", EVERY_5_SECONDS).withCallback(
|
||||||
|
createRequestIntegrationJobHandler(firewallCpuRequestHandler.handler, {
|
||||||
|
widgetKinds: ["firewall"],
|
||||||
|
getInput: {
|
||||||
|
firewall: () => ({}),
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
export const firewallMemoryJob = createCronJob("firewallMemory", EVERY_MINUTE).withCallback(
|
||||||
|
createRequestIntegrationJobHandler(firewallMemoryRequestHandler.handler, {
|
||||||
|
widgetKinds: ["firewall"],
|
||||||
|
getInput: {
|
||||||
|
firewall: () => ({}),
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
export const firewallInterfacesJob = createCronJob("firewallInterfaces", EVERY_30_SECONDS).withCallback(
|
||||||
|
createRequestIntegrationJobHandler(firewallInterfacesRequestHandler.handler, {
|
||||||
|
widgetKinds: ["firewall"],
|
||||||
|
getInput: {
|
||||||
|
firewall: () => ({}),
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
export const firewallVersionJob = createCronJob("firewallVersion", EVERY_HOUR).withCallback(
|
||||||
|
createRequestIntegrationJobHandler(firewallVersionRequestHandler.handler, {
|
||||||
|
widgetKinds: ["firewall"],
|
||||||
|
getInput: {
|
||||||
|
firewall: () => ({}),
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
);
|
||||||
@@ -15,9 +15,10 @@ export const healthMonitoringJob = createCronJob("healthMonitoring", EVERY_5_SEC
|
|||||||
return clusterInfoRequestHandler.handler({ ...integration, kind }, itemOptions);
|
return clusterInfoRequestHandler.handler({ ...integration, kind }, itemOptions);
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
widgetKinds: ["healthMonitoring"],
|
widgetKinds: ["healthMonitoring", "systemResources"],
|
||||||
getInput: {
|
getInput: {
|
||||||
healthMonitoring: () => ({}),
|
healthMonitoring: () => ({}),
|
||||||
|
systemResources: () => ({}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ import { EVERY_MINUTE } from "@homarr/cron-jobs-core/expressions";
|
|||||||
import { db } from "@homarr/db";
|
import { db } from "@homarr/db";
|
||||||
import { getServerSettingByKeyAsync } from "@homarr/db/queries";
|
import { getServerSettingByKeyAsync } from "@homarr/db/queries";
|
||||||
import { logger } from "@homarr/log";
|
import { logger } from "@homarr/log";
|
||||||
import { pingUrlChannel } from "@homarr/redis";
|
import { sendPingRequestAsync } from "@homarr/ping";
|
||||||
import { pingRequestHandler } from "@homarr/request-handler/ping";
|
import { pingChannel, pingUrlChannel } from "@homarr/redis";
|
||||||
|
|
||||||
import { createCronJob } from "../lib";
|
import { createCronJob } from "../lib";
|
||||||
|
|
||||||
@@ -28,6 +28,16 @@ export const pingJob = createCronJob("ping", EVERY_MINUTE, {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const pingAsync = async (url: string) => {
|
const pingAsync = async (url: string) => {
|
||||||
const handler = pingRequestHandler.handler({ url });
|
const pingResult = await sendPingRequestAsync(url);
|
||||||
await handler.getCachedOrUpdatedDataAsync({ forceUpdate: true });
|
|
||||||
|
if ("statusCode" in pingResult) {
|
||||||
|
logger.debug(`executed ping for url ${url} with status code ${pingResult.statusCode}`);
|
||||||
|
} else {
|
||||||
|
logger.error(`Executing ping for url ${url} failed with error: ${pingResult.error}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
await pingChannel.publishAsync({
|
||||||
|
url,
|
||||||
|
...pingResult,
|
||||||
|
});
|
||||||
};
|
};
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { env as commonEnv } from "@homarr/common/env";
|
import { env as commonEnv } from "@homarr/common/env";
|
||||||
import { createEnv } from "@homarr/env";
|
import { createEnv } from "@homarr/core/infrastructure/env";
|
||||||
|
|
||||||
const drivers = {
|
const drivers = {
|
||||||
betterSqlite3: "better-sqlite3",
|
betterSqlite3: "better-sqlite3",
|
||||||
|
|||||||
@@ -0,0 +1,52 @@
|
|||||||
|
import type { Database } from "../..";
|
||||||
|
import { and, eq } from "../..";
|
||||||
|
import { integrationSecrets } from "../../schema";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Previously the credentials for OPNsense were stored as username and password.
|
||||||
|
* However it should have been the api key and secret.
|
||||||
|
* For more information see:
|
||||||
|
* https://docs.opnsense.org/development/how-tos/api.html#creating-keys
|
||||||
|
*/
|
||||||
|
export async function migrateOpnsenseCredentialsAsync(db: Database) {
|
||||||
|
const existingIntegrations = await db.query.integrations.findMany({
|
||||||
|
where: (table, { eq }) => eq(table.kind, "opnsense"),
|
||||||
|
with: {
|
||||||
|
secrets: true,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
await Promise.all(
|
||||||
|
existingIntegrations.map(async (integration) => {
|
||||||
|
const username = integration.secrets.find((secret) => secret.kind === "username");
|
||||||
|
if (!username) return;
|
||||||
|
await db
|
||||||
|
.update(integrationSecrets)
|
||||||
|
.set({
|
||||||
|
kind: "opnsenseApiKey",
|
||||||
|
})
|
||||||
|
.where(
|
||||||
|
and(eq(integrationSecrets.integrationId, username.integrationId), eq(integrationSecrets.kind, "username")),
|
||||||
|
);
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
await Promise.all(
|
||||||
|
existingIntegrations.map(async (integration) => {
|
||||||
|
const password = integration.secrets.find((secret) => secret.kind === "password");
|
||||||
|
if (!password) return;
|
||||||
|
await db
|
||||||
|
.update(integrationSecrets)
|
||||||
|
.set({
|
||||||
|
kind: "opnsenseApiSecret",
|
||||||
|
})
|
||||||
|
.where(
|
||||||
|
and(eq(integrationSecrets.integrationId, password.integrationId), eq(integrationSecrets.kind, "password")),
|
||||||
|
);
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
if (existingIntegrations.length > 0) {
|
||||||
|
console.log(`Migrated OPNsense credentials count="${existingIntegrations.length}"`);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
import type { Database } from "../..";
|
import type { Database } from "../..";
|
||||||
import { migrateReleaseWidgetProviderToOptionsAsync } from "./0000_release_widget_provider_to_options";
|
import { migrateReleaseWidgetProviderToOptionsAsync } from "./0000_release_widget_provider_to_options";
|
||||||
|
import { migrateOpnsenseCredentialsAsync } from "./0001_opnsense_credentials";
|
||||||
|
|
||||||
export const applyCustomMigrationsAsync = async (db: Database) => {
|
export const applyCustomMigrationsAsync = async (db: Database) => {
|
||||||
await migrateReleaseWidgetProviderToOptionsAsync(db);
|
await migrateReleaseWidgetProviderToOptionsAsync(db);
|
||||||
|
await migrateOpnsenseCredentialsAsync(db);
|
||||||
};
|
};
|
||||||
@@ -40,19 +40,19 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@auth/core": "^0.40.0",
|
"@auth/core": "^0.40.0",
|
||||||
"@homarr/common": "workspace:^0.1.0",
|
"@homarr/common": "workspace:^0.1.0",
|
||||||
|
"@homarr/core": "workspace:^0.1.0",
|
||||||
"@homarr/definitions": "workspace:^0.1.0",
|
"@homarr/definitions": "workspace:^0.1.0",
|
||||||
"@homarr/env": "workspace:^0.1.0",
|
|
||||||
"@homarr/log": "workspace:^0.1.0",
|
"@homarr/log": "workspace:^0.1.0",
|
||||||
"@homarr/server-settings": "workspace:^0.1.0",
|
"@homarr/server-settings": "workspace:^0.1.0",
|
||||||
"@mantine/core": "^8.1.3",
|
"@mantine/core": "^8.2.4",
|
||||||
"@paralleldrive/cuid2": "^2.2.2",
|
"@paralleldrive/cuid2": "^2.2.2",
|
||||||
"@testcontainers/mysql": "^11.2.1",
|
"@testcontainers/mysql": "^11.5.1",
|
||||||
"better-sqlite3": "^12.2.0",
|
"better-sqlite3": "^12.2.0",
|
||||||
"dotenv": "^17.2.0",
|
"dotenv": "^17.2.1",
|
||||||
"drizzle-kit": "^0.31.4",
|
"drizzle-kit": "^0.31.4",
|
||||||
"drizzle-orm": "^0.44.3",
|
"drizzle-orm": "^0.44.4",
|
||||||
"drizzle-zod": "^0.7.1",
|
"drizzle-zod": "^0.7.1",
|
||||||
"mysql2": "3.14.2",
|
"mysql2": "3.14.3",
|
||||||
"superjson": "2.2.2"
|
"superjson": "2.2.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -60,11 +60,11 @@
|
|||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"@types/better-sqlite3": "7.6.13",
|
"@types/better-sqlite3": "7.6.13",
|
||||||
"dotenv-cli": "^8.0.0",
|
"dotenv-cli": "^10.0.0",
|
||||||
"esbuild": "^0.25.6",
|
"esbuild": "^0.25.8",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"tsx": "4.20.3",
|
"tsx": "4.20.3",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -31,8 +31,8 @@
|
|||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"tsx": "4.20.3",
|
"tsx": "4.20.3",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,8 +9,8 @@ export type HomarrDocumentationPath =
|
|||||||
| "/blog/2023/12/22/updated-documentation"
|
| "/blog/2023/12/22/updated-documentation"
|
||||||
| "/blog/2024/09/23/version-1.0"
|
| "/blog/2024/09/23/version-1.0"
|
||||||
| "/blog/2024/12/17/open-beta-1.0"
|
| "/blog/2024/12/17/open-beta-1.0"
|
||||||
| "/blog/2024/12/31/migrate-secret-enryption-key"
|
|
||||||
| "/blog/2025/01/19/migration-guide-1.0"
|
| "/blog/2025/01/19/migration-guide-1.0"
|
||||||
|
| "/blog/2025/08/02/using-argus"
|
||||||
| "/blog/archive"
|
| "/blog/archive"
|
||||||
| "/blog/authors"
|
| "/blog/authors"
|
||||||
| "/blog/authors/ajnart"
|
| "/blog/authors/ajnart"
|
||||||
@@ -39,22 +39,16 @@ export type HomarrDocumentationPath =
|
|||||||
| "/search"
|
| "/search"
|
||||||
| "/docs/tags"
|
| "/docs/tags"
|
||||||
| "/docs/tags/active-directory"
|
| "/docs/tags/active-directory"
|
||||||
| "/docs/tags/ad-guard"
|
|
||||||
| "/docs/tags/ad-guard-home"
|
|
||||||
| "/docs/tags/administration"
|
| "/docs/tags/administration"
|
||||||
| "/docs/tags/advanced"
|
| "/docs/tags/advanced"
|
||||||
| "/docs/tags/analytics"
|
| "/docs/tags/analytics"
|
||||||
| "/docs/tags/api"
|
| "/docs/tags/api"
|
||||||
| "/docs/tags/apps"
|
| "/docs/tags/apps"
|
||||||
| "/docs/tags/background"
|
| "/docs/tags/background"
|
||||||
| "/docs/tags/banner"
|
|
||||||
| "/docs/tags/blocking"
|
|
||||||
| "/docs/tags/boards"
|
| "/docs/tags/boards"
|
||||||
| "/docs/tags/bookmark"
|
|
||||||
| "/docs/tags/bookmarks"
|
| "/docs/tags/bookmarks"
|
||||||
| "/docs/tags/caddy"
|
| "/docs/tags/caddy"
|
||||||
| "/docs/tags/certificates"
|
| "/docs/tags/certificates"
|
||||||
| "/docs/tags/checklist"
|
|
||||||
| "/docs/tags/code"
|
| "/docs/tags/code"
|
||||||
| "/docs/tags/community"
|
| "/docs/tags/community"
|
||||||
| "/docs/tags/configuration"
|
| "/docs/tags/configuration"
|
||||||
@@ -64,63 +58,37 @@ export type HomarrDocumentationPath =
|
|||||||
| "/docs/tags/database"
|
| "/docs/tags/database"
|
||||||
| "/docs/tags/developer"
|
| "/docs/tags/developer"
|
||||||
| "/docs/tags/development"
|
| "/docs/tags/development"
|
||||||
| "/docs/tags/dns"
|
|
||||||
| "/docs/tags/docker"
|
| "/docs/tags/docker"
|
||||||
| "/docs/tags/donation"
|
| "/docs/tags/donation"
|
||||||
| "/docs/tags/edit-mode"
|
| "/docs/tags/edit-mode"
|
||||||
| "/docs/tags/env"
|
| "/docs/tags/env"
|
||||||
| "/docs/tags/environment-variables"
|
| "/docs/tags/environment-variables"
|
||||||
| "/docs/tags/feeds"
|
|
||||||
| "/docs/tags/finance"
|
|
||||||
| "/docs/tags/getting-started"
|
| "/docs/tags/getting-started"
|
||||||
| "/docs/tags/google"
|
| "/docs/tags/google"
|
||||||
| "/docs/tags/grafana"
|
|
||||||
| "/docs/tags/groups"
|
| "/docs/tags/groups"
|
||||||
| "/docs/tags/hardware"
|
|
||||||
| "/docs/tags/health"
|
|
||||||
| "/docs/tags/help"
|
| "/docs/tags/help"
|
||||||
| "/docs/tags/icon-picker"
|
| "/docs/tags/icon-picker"
|
||||||
| "/docs/tags/icon-repositories"
|
| "/docs/tags/icon-repositories"
|
||||||
| "/docs/tags/icons"
|
| "/docs/tags/icons"
|
||||||
| "/docs/tags/iframe"
|
|
||||||
| "/docs/tags/images"
|
|
||||||
| "/docs/tags/installation"
|
| "/docs/tags/installation"
|
||||||
| "/docs/tags/integrade"
|
|
||||||
| "/docs/tags/integration"
|
| "/docs/tags/integration"
|
||||||
| "/docs/tags/integrations"
|
| "/docs/tags/integrations"
|
||||||
| "/docs/tags/interface"
|
| "/docs/tags/interface"
|
||||||
| "/docs/tags/jellyserr"
|
|
||||||
| "/docs/tags/jobs"
|
| "/docs/tags/jobs"
|
||||||
| "/docs/tags/layout"
|
| "/docs/tags/layout"
|
||||||
| "/docs/tags/ldap"
|
| "/docs/tags/ldap"
|
||||||
| "/docs/tags/links"
|
|
||||||
| "/docs/tags/lists"
|
|
||||||
| "/docs/tags/management"
|
| "/docs/tags/management"
|
||||||
| "/docs/tags/market"
|
|
||||||
| "/docs/tags/media"
|
| "/docs/tags/media"
|
||||||
| "/docs/tags/minecraft"
|
|
||||||
| "/docs/tags/monitoring"
|
|
||||||
| "/docs/tags/network"
|
|
||||||
| "/docs/tags/news"
|
|
||||||
| "/docs/tags/notebook"
|
|
||||||
| "/docs/tags/notes"
|
|
||||||
| "/docs/tags/oidc"
|
| "/docs/tags/oidc"
|
||||||
| "/docs/tags/open-collective"
|
| "/docs/tags/open-collective"
|
||||||
| "/docs/tags/open-media-vault"
|
|
||||||
| "/docs/tags/overseerr"
|
|
||||||
| "/docs/tags/permissions"
|
| "/docs/tags/permissions"
|
||||||
| "/docs/tags/pgid"
|
| "/docs/tags/pgid"
|
||||||
| "/docs/tags/pi-hole"
|
|
||||||
| "/docs/tags/ping"
|
| "/docs/tags/ping"
|
||||||
| "/docs/tags/programming"
|
| "/docs/tags/programming"
|
||||||
| "/docs/tags/proxmox"
|
|
||||||
| "/docs/tags/proxy"
|
| "/docs/tags/proxy"
|
||||||
| "/docs/tags/puid"
|
| "/docs/tags/puid"
|
||||||
| "/docs/tags/releases"
|
|
||||||
| "/docs/tags/repositories"
|
|
||||||
| "/docs/tags/responsive"
|
| "/docs/tags/responsive"
|
||||||
| "/docs/tags/roles"
|
| "/docs/tags/roles"
|
||||||
| "/docs/tags/rss"
|
|
||||||
| "/docs/tags/search"
|
| "/docs/tags/search"
|
||||||
| "/docs/tags/search-engines"
|
| "/docs/tags/search-engines"
|
||||||
| "/docs/tags/security"
|
| "/docs/tags/security"
|
||||||
@@ -128,24 +96,15 @@ export type HomarrDocumentationPath =
|
|||||||
| "/docs/tags/seo"
|
| "/docs/tags/seo"
|
||||||
| "/docs/tags/server"
|
| "/docs/tags/server"
|
||||||
| "/docs/tags/settings"
|
| "/docs/tags/settings"
|
||||||
| "/docs/tags/sinkhole"
|
|
||||||
| "/docs/tags/sso"
|
| "/docs/tags/sso"
|
||||||
| "/docs/tags/stocks"
|
|
||||||
| "/docs/tags/system"
|
|
||||||
| "/docs/tags/table"
|
|
||||||
| "/docs/tags/tasks"
|
| "/docs/tags/tasks"
|
||||||
| "/docs/tags/technical-documentation"
|
| "/docs/tags/technical-documentation"
|
||||||
| "/docs/tags/text"
|
|
||||||
| "/docs/tags/torrent"
|
|
||||||
| "/docs/tags/traefik"
|
| "/docs/tags/traefik"
|
||||||
| "/docs/tags/translations"
|
| "/docs/tags/translations"
|
||||||
| "/docs/tags/unifi-controller"
|
|
||||||
| "/docs/tags/unraid"
|
| "/docs/tags/unraid"
|
||||||
| "/docs/tags/uploads"
|
| "/docs/tags/uploads"
|
||||||
| "/docs/tags/usenet"
|
|
||||||
| "/docs/tags/users"
|
| "/docs/tags/users"
|
||||||
| "/docs/tags/variables"
|
| "/docs/tags/variables"
|
||||||
| "/docs/tags/widgets"
|
|
||||||
| "/docs/advanced/command-line"
|
| "/docs/advanced/command-line"
|
||||||
| "/docs/advanced/command-line/fix-usernames"
|
| "/docs/advanced/command-line/fix-usernames"
|
||||||
| "/docs/advanced/command-line/password-recovery"
|
| "/docs/advanced/command-line/password-recovery"
|
||||||
@@ -188,17 +147,43 @@ export type HomarrDocumentationPath =
|
|||||||
| "/docs/getting-started/installation/source"
|
| "/docs/getting-started/installation/source"
|
||||||
| "/docs/getting-started/installation/synology"
|
| "/docs/getting-started/installation/synology"
|
||||||
| "/docs/getting-started/installation/unraid"
|
| "/docs/getting-started/installation/unraid"
|
||||||
| "/docs/integrations/cloud"
|
| "/docs/integrations/adguard-home"
|
||||||
| "/docs/integrations/containers"
|
| "/docs/integrations/aria2"
|
||||||
| "/docs/integrations/dns"
|
| "/docs/integrations/codeberg"
|
||||||
| "/docs/integrations/hardware"
|
| "/docs/integrations/dash-dot"
|
||||||
|
| "/docs/integrations/deluge"
|
||||||
|
| "/docs/integrations/docker-hub"
|
||||||
|
| "/docs/integrations/docker"
|
||||||
|
| "/docs/integrations/emby"
|
||||||
|
| "/docs/integrations/github-containerregistry"
|
||||||
|
| "/docs/integrations/github"
|
||||||
|
| "/docs/integrations/gitlab"
|
||||||
|
| "/docs/integrations/home-assistant"
|
||||||
|
| "/docs/integrations/jellyfin"
|
||||||
|
| "/docs/integrations/jellyseerr"
|
||||||
| "/docs/integrations/kubernetes"
|
| "/docs/integrations/kubernetes"
|
||||||
| "/docs/integrations/media-requester"
|
| "/docs/integrations/lidarr"
|
||||||
| "/docs/integrations/media-server"
|
| "/docs/integrations/linux-server-io"
|
||||||
| "/docs/integrations/network"
|
| "/docs/integrations/nextcloud"
|
||||||
| "/docs/integrations/servarr"
|
| "/docs/integrations/npm"
|
||||||
| "/docs/integrations/torrent"
|
| "/docs/integrations/ntfy"
|
||||||
| "/docs/integrations/usenet"
|
| "/docs/integrations/nzbget"
|
||||||
|
| "/docs/integrations/open-media-vault"
|
||||||
|
| "/docs/integrations/opnsense"
|
||||||
|
| "/docs/integrations/overseerr"
|
||||||
|
| "/docs/integrations/pi-hole"
|
||||||
|
| "/docs/integrations/plex"
|
||||||
|
| "/docs/integrations/prowlarr"
|
||||||
|
| "/docs/integrations/proxmox"
|
||||||
|
| "/docs/integrations/q-bittorent"
|
||||||
|
| "/docs/integrations/quay"
|
||||||
|
| "/docs/integrations/radarr"
|
||||||
|
| "/docs/integrations/readarr"
|
||||||
|
| "/docs/integrations/sabnzbd"
|
||||||
|
| "/docs/integrations/sonarr"
|
||||||
|
| "/docs/integrations/tdarr"
|
||||||
|
| "/docs/integrations/transmission"
|
||||||
|
| "/docs/integrations/unifi-controller"
|
||||||
| "/docs/management/api"
|
| "/docs/management/api"
|
||||||
| "/docs/management/apps"
|
| "/docs/management/apps"
|
||||||
| "/docs/management/boards"
|
| "/docs/management/boards"
|
||||||
@@ -209,23 +194,33 @@ export type HomarrDocumentationPath =
|
|||||||
| "/docs/management/settings"
|
| "/docs/management/settings"
|
||||||
| "/docs/management/tasks"
|
| "/docs/management/tasks"
|
||||||
| "/docs/management/users"
|
| "/docs/management/users"
|
||||||
|
| "/docs/widgets/app"
|
||||||
| "/docs/widgets/bookmarks"
|
| "/docs/widgets/bookmarks"
|
||||||
| "/docs/widgets/calendar"
|
| "/docs/widgets/calendar"
|
||||||
| "/docs/widgets/clock"
|
| "/docs/widgets/clock"
|
||||||
| "/docs/widgets/dns-hole"
|
| "/docs/widgets/dns-hole-controls"
|
||||||
|
| "/docs/widgets/dns-hole-summary"
|
||||||
|
| "/docs/widgets/docker-containers"
|
||||||
| "/docs/widgets/downloads"
|
| "/docs/widgets/downloads"
|
||||||
|
| "/docs/widgets/firewall"
|
||||||
| "/docs/widgets/health-monitoring"
|
| "/docs/widgets/health-monitoring"
|
||||||
| "/docs/widgets/home-assistant"
|
|
||||||
| "/docs/widgets/iframe"
|
| "/docs/widgets/iframe"
|
||||||
| "/docs/widgets/indexer-manager"
|
| "/docs/widgets/indexer-manager"
|
||||||
| "/docs/widgets/media-requests"
|
| "/docs/widgets/media-releases"
|
||||||
|
| "/docs/widgets/media-request-list"
|
||||||
|
| "/docs/widgets/media-request-stats"
|
||||||
| "/docs/widgets/media-server"
|
| "/docs/widgets/media-server"
|
||||||
|
| "/docs/widgets/media-transcoding"
|
||||||
| "/docs/widgets/minecraft-server-status"
|
| "/docs/widgets/minecraft-server-status"
|
||||||
| "/docs/widgets/network-controller"
|
| "/docs/widgets/network-controller-status"
|
||||||
|
| "/docs/widgets/network-controller-summary"
|
||||||
| "/docs/widgets/notebook"
|
| "/docs/widgets/notebook"
|
||||||
|
| "/docs/widgets/notifications"
|
||||||
| "/docs/widgets/releases"
|
| "/docs/widgets/releases"
|
||||||
| "/docs/widgets/rss"
|
| "/docs/widgets/rss-feed"
|
||||||
| "/docs/widgets/stocks"
|
| "/docs/widgets/smart-home-entity-state"
|
||||||
|
| "/docs/widgets/smart-home-execute-automation"
|
||||||
|
| "/docs/widgets/stock-price"
|
||||||
| "/docs/widgets/video"
|
| "/docs/widgets/video"
|
||||||
| "/docs/widgets/weather"
|
| "/docs/widgets/weather"
|
||||||
| ""
|
| ""
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
import { objectKeys } from "@homarr/common";
|
import { objectKeys } from "@homarr/common";
|
||||||
import type { AtLeastOneOf } from "@homarr/common/types";
|
import type { AtLeastOneOf } from "@homarr/common/types";
|
||||||
|
|
||||||
|
import { createDocumentationLink } from "./docs";
|
||||||
|
|
||||||
export const integrationSecretKindObject = {
|
export const integrationSecretKindObject = {
|
||||||
apiKey: { isPublic: false },
|
apiKey: { isPublic: false },
|
||||||
username: { isPublic: true },
|
username: { isPublic: true },
|
||||||
@@ -9,6 +11,8 @@ export const integrationSecretKindObject = {
|
|||||||
realm: { isPublic: true },
|
realm: { isPublic: true },
|
||||||
personalAccessToken: { isPublic: false },
|
personalAccessToken: { isPublic: false },
|
||||||
topic: { isPublic: true },
|
topic: { isPublic: true },
|
||||||
|
opnsenseApiKey: { isPublic: false },
|
||||||
|
opnsenseApiSecret: { isPublic: false },
|
||||||
} satisfies Record<string, { isPublic: boolean }>;
|
} satisfies Record<string, { isPublic: boolean }>;
|
||||||
|
|
||||||
export const integrationSecretKinds = objectKeys(integrationSecretKindObject);
|
export const integrationSecretKinds = objectKeys(integrationSecretKindObject);
|
||||||
@@ -18,6 +22,7 @@ interface integrationDefinition {
|
|||||||
iconUrl: string;
|
iconUrl: string;
|
||||||
secretKinds: AtLeastOneOf<IntegrationSecretKind[]>; // at least one secret kind set is required
|
secretKinds: AtLeastOneOf<IntegrationSecretKind[]>; // at least one secret kind set is required
|
||||||
category: AtLeastOneOf<IntegrationCategory>;
|
category: AtLeastOneOf<IntegrationCategory>;
|
||||||
|
documentationUrl: string | null;
|
||||||
defaultUrl?: string; // optional default URL for the integration
|
defaultUrl?: string; // optional default URL for the integration
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,150 +32,182 @@ export const integrationDefs = {
|
|||||||
secretKinds: [["apiKey"]],
|
secretKinds: [["apiKey"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/sabnzbd.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/sabnzbd.svg",
|
||||||
category: ["downloadClient", "usenet"],
|
category: ["downloadClient", "usenet"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/sabnzbd"),
|
||||||
},
|
},
|
||||||
nzbGet: {
|
nzbGet: {
|
||||||
name: "NZBGet",
|
name: "NZBGet",
|
||||||
secretKinds: [["username", "password"]],
|
secretKinds: [["username", "password"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/nzbget.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/nzbget.svg",
|
||||||
category: ["downloadClient", "usenet"],
|
category: ["downloadClient", "usenet"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/nzbget"),
|
||||||
},
|
},
|
||||||
deluge: {
|
deluge: {
|
||||||
name: "Deluge",
|
name: "Deluge",
|
||||||
secretKinds: [["password"]],
|
secretKinds: [["password"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/deluge.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/deluge.svg",
|
||||||
category: ["downloadClient", "torrent"],
|
category: ["downloadClient", "torrent"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/deluge"),
|
||||||
},
|
},
|
||||||
transmission: {
|
transmission: {
|
||||||
name: "Transmission",
|
name: "Transmission",
|
||||||
secretKinds: [["username", "password"]],
|
secretKinds: [["username", "password"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/transmission.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/transmission.svg",
|
||||||
category: ["downloadClient", "torrent"],
|
category: ["downloadClient", "torrent"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/transmission"),
|
||||||
},
|
},
|
||||||
qBittorrent: {
|
qBittorrent: {
|
||||||
name: "qBittorrent",
|
name: "qBittorrent",
|
||||||
secretKinds: [["username", "password"]],
|
secretKinds: [["username", "password"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/qbittorrent.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/qbittorrent.svg",
|
||||||
category: ["downloadClient", "torrent"],
|
category: ["downloadClient", "torrent"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/q-bittorent"),
|
||||||
},
|
},
|
||||||
aria2: {
|
aria2: {
|
||||||
name: "Aria2",
|
name: "Aria2",
|
||||||
secretKinds: [[], ["apiKey"]],
|
secretKinds: [[], ["apiKey"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/PapirusDevelopmentTeam/papirus_icons@latest/src/system_downloads_3.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/PapirusDevelopmentTeam/papirus_icons@latest/src/system_downloads_3.svg",
|
||||||
category: ["downloadClient", "torrent", "miscellaneous"],
|
category: ["downloadClient", "torrent", "miscellaneous"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/aria2"),
|
||||||
},
|
},
|
||||||
sonarr: {
|
sonarr: {
|
||||||
name: "Sonarr",
|
name: "Sonarr",
|
||||||
secretKinds: [["apiKey"]],
|
secretKinds: [["apiKey"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/sonarr.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/sonarr.svg",
|
||||||
category: ["calendar"],
|
category: ["calendar"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/sonarr"),
|
||||||
},
|
},
|
||||||
radarr: {
|
radarr: {
|
||||||
name: "Radarr",
|
name: "Radarr",
|
||||||
secretKinds: [["apiKey"]],
|
secretKinds: [["apiKey"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/radarr.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/radarr.svg",
|
||||||
category: ["calendar"],
|
category: ["calendar"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/radarr"),
|
||||||
},
|
},
|
||||||
lidarr: {
|
lidarr: {
|
||||||
name: "Lidarr",
|
name: "Lidarr",
|
||||||
secretKinds: [["apiKey"]],
|
secretKinds: [["apiKey"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/lidarr.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/lidarr.svg",
|
||||||
category: ["calendar"],
|
category: ["calendar"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/lidarr"),
|
||||||
},
|
},
|
||||||
readarr: {
|
readarr: {
|
||||||
name: "Readarr",
|
name: "Readarr",
|
||||||
secretKinds: [["apiKey"]],
|
secretKinds: [["apiKey"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/readarr.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/readarr.svg",
|
||||||
category: ["calendar"],
|
category: ["calendar"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/readarr"),
|
||||||
},
|
},
|
||||||
prowlarr: {
|
prowlarr: {
|
||||||
name: "Prowlarr",
|
name: "Prowlarr",
|
||||||
secretKinds: [["apiKey"]],
|
secretKinds: [["apiKey"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/prowlarr.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/prowlarr.svg",
|
||||||
category: ["indexerManager"],
|
category: ["indexerManager"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/prowlarr"),
|
||||||
},
|
},
|
||||||
jellyfin: {
|
jellyfin: {
|
||||||
name: "Jellyfin",
|
name: "Jellyfin",
|
||||||
secretKinds: [["username", "password"], ["apiKey"]],
|
secretKinds: [["username", "password"], ["apiKey"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/jellyfin.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/jellyfin.svg",
|
||||||
category: ["mediaService"],
|
category: ["mediaService", "mediaRelease"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/jellyfin"),
|
||||||
},
|
},
|
||||||
emby: {
|
emby: {
|
||||||
name: "Emby",
|
name: "Emby",
|
||||||
secretKinds: [["apiKey"]],
|
secretKinds: [["apiKey"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/emby.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/emby.svg",
|
||||||
category: ["mediaService"],
|
category: ["mediaService", "mediaRelease"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/emby"),
|
||||||
},
|
},
|
||||||
plex: {
|
plex: {
|
||||||
name: "Plex",
|
name: "Plex",
|
||||||
secretKinds: [["apiKey"]],
|
secretKinds: [["apiKey"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/plex.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/plex.svg",
|
||||||
category: ["mediaService"],
|
category: ["mediaService", "mediaRelease"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/plex"),
|
||||||
},
|
},
|
||||||
jellyseerr: {
|
jellyseerr: {
|
||||||
name: "Jellyseerr",
|
name: "Jellyseerr",
|
||||||
secretKinds: [["apiKey"]],
|
secretKinds: [["apiKey"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/jellyseerr.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/jellyseerr.svg",
|
||||||
category: ["mediaSearch", "mediaRequest", "search"],
|
category: ["mediaSearch", "mediaRequest", "search"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/jellyseerr"),
|
||||||
},
|
},
|
||||||
overseerr: {
|
overseerr: {
|
||||||
name: "Overseerr",
|
name: "Overseerr",
|
||||||
secretKinds: [["apiKey"]],
|
secretKinds: [["apiKey"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/overseerr.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/overseerr.svg",
|
||||||
category: ["mediaSearch", "mediaRequest", "search"],
|
category: ["mediaSearch", "mediaRequest", "search"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/overseerr"),
|
||||||
},
|
},
|
||||||
piHole: {
|
piHole: {
|
||||||
name: "Pi-hole",
|
name: "Pi-hole",
|
||||||
secretKinds: [["apiKey"]],
|
secretKinds: [["apiKey"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/pi-hole.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/pi-hole.svg",
|
||||||
category: ["dnsHole"],
|
category: ["dnsHole"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/pi-hole"),
|
||||||
},
|
},
|
||||||
adGuardHome: {
|
adGuardHome: {
|
||||||
name: "AdGuard Home",
|
name: "AdGuard Home",
|
||||||
secretKinds: [["username", "password"]],
|
secretKinds: [["username", "password"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/adguard-home.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/adguard-home.svg",
|
||||||
category: ["dnsHole"],
|
category: ["dnsHole"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/adguard-home"),
|
||||||
},
|
},
|
||||||
homeAssistant: {
|
homeAssistant: {
|
||||||
name: "Home Assistant",
|
name: "Home Assistant",
|
||||||
secretKinds: [["apiKey"]],
|
secretKinds: [["apiKey"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/home-assistant.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/home-assistant.svg",
|
||||||
category: ["smartHomeServer"],
|
category: ["smartHomeServer"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/home-assistant"),
|
||||||
},
|
},
|
||||||
openmediavault: {
|
openmediavault: {
|
||||||
name: "OpenMediaVault",
|
name: "OpenMediaVault",
|
||||||
secretKinds: [["username", "password"]],
|
secretKinds: [["username", "password"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/openmediavault.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/openmediavault.svg",
|
||||||
category: ["healthMonitoring"],
|
category: ["healthMonitoring"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/open-media-vault"),
|
||||||
},
|
},
|
||||||
dashDot: {
|
dashDot: {
|
||||||
name: "Dash.",
|
name: "Dash.",
|
||||||
secretKinds: [[]],
|
secretKinds: [[]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/png/dashdot.png",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/png/dashdot.png",
|
||||||
category: ["healthMonitoring"],
|
category: ["healthMonitoring"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/dash-dot"),
|
||||||
},
|
},
|
||||||
tdarr: {
|
tdarr: {
|
||||||
name: "Tdarr",
|
name: "Tdarr",
|
||||||
secretKinds: [[], ["apiKey"]],
|
secretKinds: [[], ["apiKey"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/png/tdarr.png",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/png/tdarr.png",
|
||||||
category: ["mediaTranscoding"],
|
category: ["mediaTranscoding"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/tdarr"),
|
||||||
},
|
},
|
||||||
proxmox: {
|
proxmox: {
|
||||||
name: "Proxmox",
|
name: "Proxmox",
|
||||||
secretKinds: [["username", "tokenId", "apiKey", "realm"]],
|
secretKinds: [["username", "tokenId", "apiKey", "realm"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/proxmox.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/proxmox.svg",
|
||||||
category: ["healthMonitoring"],
|
category: ["healthMonitoring"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/proxmox"),
|
||||||
},
|
},
|
||||||
nextcloud: {
|
nextcloud: {
|
||||||
name: "Nextcloud",
|
name: "Nextcloud",
|
||||||
secretKinds: [["username", "password"]],
|
secretKinds: [["username", "password"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/nextcloud.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/nextcloud.svg",
|
||||||
category: ["calendar"],
|
category: ["calendar"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/nextcloud"),
|
||||||
},
|
},
|
||||||
unifiController: {
|
unifiController: {
|
||||||
name: "Unifi Controller",
|
name: "Unifi Controller",
|
||||||
secretKinds: [["username", "password"]],
|
secretKinds: [["username", "password"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/png/unifi.png",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/png/unifi.png",
|
||||||
category: ["networkController"],
|
category: ["networkController"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/unifi-controller"),
|
||||||
|
},
|
||||||
|
opnsense: {
|
||||||
|
name: "OPNsense",
|
||||||
|
secretKinds: [["opnsenseApiKey", "opnsenseApiSecret"]],
|
||||||
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/opnsense.svg",
|
||||||
|
category: ["firewall"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/opnsense"),
|
||||||
},
|
},
|
||||||
github: {
|
github: {
|
||||||
name: "Github",
|
name: "Github",
|
||||||
@@ -178,6 +215,7 @@ export const integrationDefs = {
|
|||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/github.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/github.svg",
|
||||||
category: ["releasesProvider"],
|
category: ["releasesProvider"],
|
||||||
defaultUrl: "https://api.github.com",
|
defaultUrl: "https://api.github.com",
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/github"),
|
||||||
},
|
},
|
||||||
dockerHub: {
|
dockerHub: {
|
||||||
name: "Docker Hub",
|
name: "Docker Hub",
|
||||||
@@ -185,6 +223,7 @@ export const integrationDefs = {
|
|||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/docker.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/docker.svg",
|
||||||
category: ["releasesProvider"],
|
category: ["releasesProvider"],
|
||||||
defaultUrl: "https://hub.docker.com",
|
defaultUrl: "https://hub.docker.com",
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/docker-hub"),
|
||||||
},
|
},
|
||||||
gitlab: {
|
gitlab: {
|
||||||
name: "Gitlab",
|
name: "Gitlab",
|
||||||
@@ -192,6 +231,7 @@ export const integrationDefs = {
|
|||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/gitlab.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/gitlab.svg",
|
||||||
category: ["releasesProvider"],
|
category: ["releasesProvider"],
|
||||||
defaultUrl: "https://gitlab.com",
|
defaultUrl: "https://gitlab.com",
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/gitlab"),
|
||||||
},
|
},
|
||||||
npm: {
|
npm: {
|
||||||
name: "NPM",
|
name: "NPM",
|
||||||
@@ -199,6 +239,7 @@ export const integrationDefs = {
|
|||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/npm.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/npm.svg",
|
||||||
category: ["releasesProvider"],
|
category: ["releasesProvider"],
|
||||||
defaultUrl: "https://registry.npmjs.org",
|
defaultUrl: "https://registry.npmjs.org",
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/npm"),
|
||||||
},
|
},
|
||||||
codeberg: {
|
codeberg: {
|
||||||
name: "Codeberg",
|
name: "Codeberg",
|
||||||
@@ -206,12 +247,38 @@ export const integrationDefs = {
|
|||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/codeberg.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/codeberg.svg",
|
||||||
category: ["releasesProvider"],
|
category: ["releasesProvider"],
|
||||||
defaultUrl: "https://codeberg.org",
|
defaultUrl: "https://codeberg.org",
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/codeberg"),
|
||||||
|
},
|
||||||
|
linuxServerIO: {
|
||||||
|
name: "LinuxServer.io",
|
||||||
|
secretKinds: [[]],
|
||||||
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/linuxserver-io.svg",
|
||||||
|
category: ["releasesProvider"],
|
||||||
|
defaultUrl: "https://api.linuxserver.io",
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/linux-server-io"),
|
||||||
|
},
|
||||||
|
gitHubContainerRegistry: {
|
||||||
|
name: "GitHub Container Registry",
|
||||||
|
secretKinds: [[], ["personalAccessToken"]],
|
||||||
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/github.svg",
|
||||||
|
category: ["releasesProvider"],
|
||||||
|
defaultUrl: "https://api.github.com",
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/github"),
|
||||||
|
},
|
||||||
|
quay: {
|
||||||
|
name: "Quay",
|
||||||
|
secretKinds: [[], ["personalAccessToken"]],
|
||||||
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/png/quay.png",
|
||||||
|
category: ["releasesProvider"],
|
||||||
|
defaultUrl: "https://quay.io",
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/quay"),
|
||||||
},
|
},
|
||||||
ntfy: {
|
ntfy: {
|
||||||
name: "ntfy",
|
name: "ntfy",
|
||||||
secretKinds: [["topic"], ["topic", "apiKey"]],
|
secretKinds: [["topic"], ["topic", "apiKey"]],
|
||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/ntfy.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/ntfy.svg",
|
||||||
category: ["notifications"],
|
category: ["notifications"],
|
||||||
|
documentationUrl: createDocumentationLink("/docs/integrations/ntfy"),
|
||||||
},
|
},
|
||||||
// This integration only returns mock data, it is used during development (but can also be used in production by directly going to the create page)
|
// This integration only returns mock data, it is used during development (but can also be used in production by directly going to the create page)
|
||||||
mock: {
|
mock: {
|
||||||
@@ -224,6 +291,7 @@ export const integrationDefs = {
|
|||||||
"downloadClient",
|
"downloadClient",
|
||||||
"healthMonitoring",
|
"healthMonitoring",
|
||||||
"indexerManager",
|
"indexerManager",
|
||||||
|
"mediaRelease",
|
||||||
"mediaRequest",
|
"mediaRequest",
|
||||||
"mediaService",
|
"mediaService",
|
||||||
"mediaTranscoding",
|
"mediaTranscoding",
|
||||||
@@ -231,6 +299,7 @@ export const integrationDefs = {
|
|||||||
"notifications",
|
"notifications",
|
||||||
"smartHomeServer",
|
"smartHomeServer",
|
||||||
],
|
],
|
||||||
|
documentationUrl: null,
|
||||||
},
|
},
|
||||||
} as const satisfies Record<string, integrationDefinition>;
|
} as const satisfies Record<string, integrationDefinition>;
|
||||||
|
|
||||||
@@ -282,6 +351,7 @@ export const integrationCategories = [
|
|||||||
"mediaService",
|
"mediaService",
|
||||||
"calendar",
|
"calendar",
|
||||||
"mediaSearch",
|
"mediaSearch",
|
||||||
|
"mediaRelease",
|
||||||
"mediaRequest",
|
"mediaRequest",
|
||||||
"downloadClient",
|
"downloadClient",
|
||||||
"usenet",
|
"usenet",
|
||||||
@@ -295,6 +365,7 @@ export const integrationCategories = [
|
|||||||
"networkController",
|
"networkController",
|
||||||
"releasesProvider",
|
"releasesProvider",
|
||||||
"notifications",
|
"notifications",
|
||||||
|
"firewall",
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
export type IntegrationCategory = (typeof integrationCategories)[number];
|
export type IntegrationCategory = (typeof integrationCategories)[number];
|
||||||
@@ -24,7 +24,10 @@ export const widgetKinds = [
|
|||||||
"indexerManager",
|
"indexerManager",
|
||||||
"healthMonitoring",
|
"healthMonitoring",
|
||||||
"releases",
|
"releases",
|
||||||
|
"mediaReleases",
|
||||||
"dockerContainers",
|
"dockerContainers",
|
||||||
|
"firewall",
|
||||||
"notifications",
|
"notifications",
|
||||||
|
"systemResources",
|
||||||
] as const;
|
] as const;
|
||||||
export type WidgetKind = (typeof widgetKinds)[number];
|
export type WidgetKind = (typeof widgetKinds)[number];
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
"prettier": "@homarr/prettier-config",
|
"prettier": "@homarr/prettier-config",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@homarr/common": "workspace:^0.1.0",
|
"@homarr/common": "workspace:^0.1.0",
|
||||||
"@homarr/env": "workspace:^0.1.0",
|
"@homarr/core": "workspace:^0.1.0",
|
||||||
"dockerode": "^4.0.7"
|
"dockerode": "^4.0.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"@types/dockerode": "^3.3.42",
|
"@types/dockerode": "^3.3.42",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { createEnv } from "@homarr/env";
|
import { createBooleanSchema, createEnv } from "@homarr/core/infrastructure/env";
|
||||||
import { createBooleanSchema } from "@homarr/env/schemas";
|
|
||||||
|
|
||||||
export const env = createEnv({
|
export const env = createEnv({
|
||||||
server: {
|
server: {
|
||||||
|
|||||||
@@ -26,14 +26,14 @@
|
|||||||
"@homarr/common": "workspace:^0.1.0",
|
"@homarr/common": "workspace:^0.1.0",
|
||||||
"@homarr/translation": "workspace:^0.1.0",
|
"@homarr/translation": "workspace:^0.1.0",
|
||||||
"@homarr/validation": "workspace:^0.1.0",
|
"@homarr/validation": "workspace:^0.1.0",
|
||||||
"@mantine/form": "^8.1.3",
|
"@mantine/form": "^8.2.4",
|
||||||
"zod": "^3.25.76"
|
"zod": "^3.25.76"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -29,15 +29,15 @@
|
|||||||
"@homarr/notifications": "workspace:^0.1.0",
|
"@homarr/notifications": "workspace:^0.1.0",
|
||||||
"@homarr/translation": "workspace:^0.1.0",
|
"@homarr/translation": "workspace:^0.1.0",
|
||||||
"@homarr/validation": "workspace:^0.1.0",
|
"@homarr/validation": "workspace:^0.1.0",
|
||||||
"@mantine/core": "^8.1.3",
|
"@mantine/core": "^8.2.4",
|
||||||
"react": "19.1.0",
|
"react": "19.1.1",
|
||||||
"zod": "^3.25.76"
|
"zod": "^3.25.76"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import baseConfig from "@homarr/eslint-config/base";
|
||||||
|
|
||||||
|
/** @type {import('typescript-eslint').Config} */
|
||||||
|
export default [...baseConfig];
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"name": "@homarr/image-proxy",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"private": true,
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"type": "module",
|
||||||
|
"exports": {
|
||||||
|
".": "./src/index.ts"
|
||||||
|
},
|
||||||
|
"typesVersions": {
|
||||||
|
"*": {
|
||||||
|
"*": [
|
||||||
|
"src/*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"clean": "rm -rf .turbo node_modules",
|
||||||
|
"format": "prettier --check . --ignore-path ../../.gitignore",
|
||||||
|
"lint": "eslint",
|
||||||
|
"typecheck": "tsc --noEmit"
|
||||||
|
},
|
||||||
|
"prettier": "@homarr/prettier-config",
|
||||||
|
"dependencies": {
|
||||||
|
"@homarr/certificates": "workspace:^0.1.0",
|
||||||
|
"@homarr/common": "workspace:^0.1.0",
|
||||||
|
"@homarr/log": "workspace:^0.1.0",
|
||||||
|
"@homarr/redis": "workspace:^0.1.0",
|
||||||
|
"bcrypt": "^6.0.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
|
"@types/bcrypt": "6.0.0",
|
||||||
|
"eslint": "^9.32.0",
|
||||||
|
"typescript": "^5.9.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,133 @@
|
|||||||
|
import bcrypt from "bcrypt";
|
||||||
|
|
||||||
|
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
|
||||||
|
import { createId } from "@homarr/common";
|
||||||
|
import { decryptSecret, encryptSecret } from "@homarr/common/server";
|
||||||
|
import { logger } from "@homarr/log";
|
||||||
|
import { createGetSetChannel } from "@homarr/redis";
|
||||||
|
|
||||||
|
const createHashChannel = (hash: `${string}.${string}`) => createGetSetChannel<string>(`image-proxy:hash:${hash}`);
|
||||||
|
const createUrlByIdChannel = (id: string) =>
|
||||||
|
createGetSetChannel<{
|
||||||
|
url: `${string}.${string}`;
|
||||||
|
headers: `${string}.${string}`;
|
||||||
|
}>(`image-proxy:url:${id}`);
|
||||||
|
const saltChannel = createGetSetChannel<string>("image-proxy:salt");
|
||||||
|
|
||||||
|
export class ImageProxy {
|
||||||
|
private static salt: string | null = null;
|
||||||
|
private async getOrCreateSaltAsync(): Promise<string> {
|
||||||
|
if (ImageProxy.salt) return ImageProxy.salt;
|
||||||
|
const existingSalt = await saltChannel.getAsync();
|
||||||
|
if (existingSalt) {
|
||||||
|
ImageProxy.salt = existingSalt;
|
||||||
|
return existingSalt;
|
||||||
|
}
|
||||||
|
|
||||||
|
const salt = await bcrypt.genSalt(10);
|
||||||
|
logger.debug(`Generated new salt for image proxy salt="${salt}"`);
|
||||||
|
ImageProxy.salt = salt;
|
||||||
|
await saltChannel.setAsync(salt);
|
||||||
|
return salt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public async createImageAsync(url: string, headers?: Record<string, string>): Promise<string> {
|
||||||
|
const existingId = await this.getExistingIdAsync(url, headers);
|
||||||
|
if (existingId) {
|
||||||
|
logger.debug(
|
||||||
|
`Image already exists in the proxy id="${existingId}" url="${this.redactUrl(url)}" headers="${this.redactHeaders(headers ?? null)}"`,
|
||||||
|
);
|
||||||
|
return this.createImageUrl(existingId);
|
||||||
|
}
|
||||||
|
|
||||||
|
const id = createId();
|
||||||
|
await this.storeImageAsync(id, url, headers);
|
||||||
|
|
||||||
|
return this.createImageUrl(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async forwardImageAsync(id: string): Promise<Blob | null> {
|
||||||
|
const urlAndHeaders = await this.getImageUrlAndHeadersAsync(id);
|
||||||
|
if (!urlAndHeaders) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
const response = await fetchWithTrustedCertificatesAsync(urlAndHeaders.url, {
|
||||||
|
headers: urlAndHeaders.headers ?? {},
|
||||||
|
});
|
||||||
|
|
||||||
|
const proxyUrl = this.createImageUrl(id);
|
||||||
|
if (!response.ok) {
|
||||||
|
logger.error(
|
||||||
|
`Failed to fetch image id="${id}" url="${this.redactUrl(urlAndHeaders.url)}" headers="${this.redactHeaders(urlAndHeaders.headers)}" proxyUrl="${proxyUrl}" statusCode="${response.status}"`,
|
||||||
|
);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
const blob = (await response.blob()) as Blob;
|
||||||
|
logger.debug(
|
||||||
|
`Forwarding image succeeded id="${id}" url="${this.redactUrl(urlAndHeaders.url)}" headers="${this.redactHeaders(urlAndHeaders.headers)}" proxyUrl="${proxyUrl} size="${(blob.size / 1024).toFixed(1)}KB"`,
|
||||||
|
);
|
||||||
|
|
||||||
|
return blob;
|
||||||
|
}
|
||||||
|
|
||||||
|
private createImageUrl(id: string): string {
|
||||||
|
return `/api/image-proxy/${id}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
private async getImageUrlAndHeadersAsync(id: string) {
|
||||||
|
const urlHeaderChannel = createUrlByIdChannel(id);
|
||||||
|
const urlHeader = await urlHeaderChannel.getAsync();
|
||||||
|
if (!urlHeader) {
|
||||||
|
logger.warn(`Image not found in the proxy id="${id}"`);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
url: decryptSecret(urlHeader.url),
|
||||||
|
headers: JSON.parse(decryptSecret(urlHeader.headers)) as Record<string, string> | null,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
private async getExistingIdAsync(url: string, headers: Record<string, string> | undefined): Promise<string | null> {
|
||||||
|
const salt = await this.getOrCreateSaltAsync();
|
||||||
|
const urlHash = await bcrypt.hash(url, salt);
|
||||||
|
const headerHash = await bcrypt.hash(JSON.stringify(headers ?? null), salt);
|
||||||
|
|
||||||
|
const channel = createHashChannel(`${urlHash}.${headerHash}`);
|
||||||
|
return await channel.getAsync();
|
||||||
|
}
|
||||||
|
|
||||||
|
private async storeImageAsync(id: string, url: string, headers: Record<string, string> | undefined): Promise<void> {
|
||||||
|
const salt = await this.getOrCreateSaltAsync();
|
||||||
|
const urlHash = await bcrypt.hash(url, salt);
|
||||||
|
const headerHash = await bcrypt.hash(JSON.stringify(headers ?? null), salt);
|
||||||
|
|
||||||
|
const hashChannel = createHashChannel(`${urlHash}.${headerHash}`);
|
||||||
|
const urlHeaderChannel = createUrlByIdChannel(id);
|
||||||
|
await urlHeaderChannel.setAsync({
|
||||||
|
url: encryptSecret(url),
|
||||||
|
headers: encryptSecret(JSON.stringify(headers ?? null)),
|
||||||
|
});
|
||||||
|
await hashChannel.setAsync(id);
|
||||||
|
|
||||||
|
logger.debug(
|
||||||
|
`Stored image in the proxy id="${id}" url="${this.redactUrl(url)}" headers="${this.redactHeaders(headers ?? null)}"`,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
private redactUrl(url: string): string {
|
||||||
|
const urlObject = new URL(url);
|
||||||
|
|
||||||
|
const redactedSearch = [...urlObject.searchParams.keys()].map((key) => `${key}=REDACTED`).join("&");
|
||||||
|
|
||||||
|
return `${urlObject.origin}${urlObject.pathname}${redactedSearch ? `?${redactedSearch}` : ""}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
private redactHeaders(headers: Record<string, string> | null): string | null {
|
||||||
|
if (!headers) return null;
|
||||||
|
|
||||||
|
return Object.keys(headers).join(", ");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"extends": "@homarr/tsconfig/base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"types": ["node"],
|
||||||
|
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||||
|
},
|
||||||
|
"include": ["*.ts", "src"],
|
||||||
|
"exclude": ["node_modules"]
|
||||||
|
}
|
||||||
@@ -25,14 +25,15 @@
|
|||||||
},
|
},
|
||||||
"prettier": "@homarr/prettier-config",
|
"prettier": "@homarr/prettier-config",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ctrl/deluge": "^7.1.0",
|
"@ctrl/deluge": "^7.1.1",
|
||||||
"@ctrl/qbittorrent": "^9.6.0",
|
"@ctrl/qbittorrent": "^9.6.0",
|
||||||
"@ctrl/transmission": "^7.2.0",
|
"@ctrl/transmission": "^7.2.0",
|
||||||
"@gitbeaker/rest": "^42.5.0",
|
"@gitbeaker/rest": "^43.4.0",
|
||||||
"@homarr/certificates": "workspace:^0.1.0",
|
"@homarr/certificates": "workspace:^0.1.0",
|
||||||
"@homarr/common": "workspace:^0.1.0",
|
"@homarr/common": "workspace:^0.1.0",
|
||||||
"@homarr/db": "workspace:^0.1.0",
|
"@homarr/db": "workspace:^0.1.0",
|
||||||
"@homarr/definitions": "workspace:^0.1.0",
|
"@homarr/definitions": "workspace:^0.1.0",
|
||||||
|
"@homarr/image-proxy": "workspace:^0.1.0",
|
||||||
"@homarr/log": "workspace:^0.1.0",
|
"@homarr/log": "workspace:^0.1.0",
|
||||||
"@homarr/node-unifi": "^2.6.0",
|
"@homarr/node-unifi": "^2.6.0",
|
||||||
"@homarr/redis": "workspace:^0.1.0",
|
"@homarr/redis": "workspace:^0.1.0",
|
||||||
@@ -44,7 +45,7 @@
|
|||||||
"octokit": "^5.0.3",
|
"octokit": "^5.0.3",
|
||||||
"proxmox-api": "1.1.1",
|
"proxmox-api": "1.1.1",
|
||||||
"tsdav": "^2.1.5",
|
"tsdav": "^2.1.5",
|
||||||
"undici": "7.12.0",
|
"undici": "7.13.0",
|
||||||
"xml2js": "^0.6.2",
|
"xml2js": "^0.6.2",
|
||||||
"zod": "^3.25.76"
|
"zod": "^3.25.76"
|
||||||
},
|
},
|
||||||
@@ -54,7 +55,7 @@
|
|||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"@types/node-unifi": "^2.5.1",
|
"@types/node-unifi": "^2.5.1",
|
||||||
"@types/xml2js": "^0.4.14",
|
"@types/xml2js": "^0.4.14",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.32.0",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -14,11 +14,13 @@ import { QBitTorrentIntegration } from "../download-client/qbittorrent/qbittorre
|
|||||||
import { SabnzbdIntegration } from "../download-client/sabnzbd/sabnzbd-integration";
|
import { SabnzbdIntegration } from "../download-client/sabnzbd/sabnzbd-integration";
|
||||||
import { TransmissionIntegration } from "../download-client/transmission/transmission-integration";
|
import { TransmissionIntegration } from "../download-client/transmission/transmission-integration";
|
||||||
import { EmbyIntegration } from "../emby/emby-integration";
|
import { EmbyIntegration } from "../emby/emby-integration";
|
||||||
|
import { GitHubContainerRegistryIntegration } from "../github-container-registry/github-container-registry-integration";
|
||||||
import { GithubIntegration } from "../github/github-integration";
|
import { GithubIntegration } from "../github/github-integration";
|
||||||
import { GitlabIntegration } from "../gitlab/gitlab-integration";
|
import { GitlabIntegration } from "../gitlab/gitlab-integration";
|
||||||
import { HomeAssistantIntegration } from "../homeassistant/homeassistant-integration";
|
import { HomeAssistantIntegration } from "../homeassistant/homeassistant-integration";
|
||||||
import { JellyfinIntegration } from "../jellyfin/jellyfin-integration";
|
import { JellyfinIntegration } from "../jellyfin/jellyfin-integration";
|
||||||
import { JellyseerrIntegration } from "../jellyseerr/jellyseerr-integration";
|
import { JellyseerrIntegration } from "../jellyseerr/jellyseerr-integration";
|
||||||
|
import { LinuxServerIOIntegration } from "../linuxserverio/linuxserverio-integration";
|
||||||
import { LidarrIntegration } from "../media-organizer/lidarr/lidarr-integration";
|
import { LidarrIntegration } from "../media-organizer/lidarr/lidarr-integration";
|
||||||
import { RadarrIntegration } from "../media-organizer/radarr/radarr-integration";
|
import { RadarrIntegration } from "../media-organizer/radarr/radarr-integration";
|
||||||
import { ReadarrIntegration } from "../media-organizer/readarr/readarr-integration";
|
import { ReadarrIntegration } from "../media-organizer/readarr/readarr-integration";
|
||||||
@@ -29,11 +31,13 @@ import { NextcloudIntegration } from "../nextcloud/nextcloud.integration";
|
|||||||
import { NPMIntegration } from "../npm/npm-integration";
|
import { NPMIntegration } from "../npm/npm-integration";
|
||||||
import { NTFYIntegration } from "../ntfy/ntfy-integration";
|
import { NTFYIntegration } from "../ntfy/ntfy-integration";
|
||||||
import { OpenMediaVaultIntegration } from "../openmediavault/openmediavault-integration";
|
import { OpenMediaVaultIntegration } from "../openmediavault/openmediavault-integration";
|
||||||
|
import { OPNsenseIntegration } from "../opnsense/opnsense-integration";
|
||||||
import { OverseerrIntegration } from "../overseerr/overseerr-integration";
|
import { OverseerrIntegration } from "../overseerr/overseerr-integration";
|
||||||
import { createPiHoleIntegrationAsync } from "../pi-hole/pi-hole-integration-factory";
|
import { createPiHoleIntegrationAsync } from "../pi-hole/pi-hole-integration-factory";
|
||||||
import { PlexIntegration } from "../plex/plex-integration";
|
import { PlexIntegration } from "../plex/plex-integration";
|
||||||
import { ProwlarrIntegration } from "../prowlarr/prowlarr-integration";
|
import { ProwlarrIntegration } from "../prowlarr/prowlarr-integration";
|
||||||
import { ProxmoxIntegration } from "../proxmox/proxmox-integration";
|
import { ProxmoxIntegration } from "../proxmox/proxmox-integration";
|
||||||
|
import { QuayIntegration } from "../quay/quay-integration";
|
||||||
import { UnifiControllerIntegration } from "../unifi-controller/unifi-controller-integration";
|
import { UnifiControllerIntegration } from "../unifi-controller/unifi-controller-integration";
|
||||||
import type { Integration, IntegrationInput } from "./integration";
|
import type { Integration, IntegrationInput } from "./integration";
|
||||||
|
|
||||||
@@ -99,11 +103,15 @@ export const integrationCreators = {
|
|||||||
emby: EmbyIntegration,
|
emby: EmbyIntegration,
|
||||||
nextcloud: NextcloudIntegration,
|
nextcloud: NextcloudIntegration,
|
||||||
unifiController: UnifiControllerIntegration,
|
unifiController: UnifiControllerIntegration,
|
||||||
|
opnsense: OPNsenseIntegration,
|
||||||
github: GithubIntegration,
|
github: GithubIntegration,
|
||||||
dockerHub: DockerHubIntegration,
|
dockerHub: DockerHubIntegration,
|
||||||
gitlab: GitlabIntegration,
|
gitlab: GitlabIntegration,
|
||||||
npm: NPMIntegration,
|
npm: NPMIntegration,
|
||||||
codeberg: CodebergIntegration,
|
codeberg: CodebergIntegration,
|
||||||
|
linuxServerIO: LinuxServerIOIntegration,
|
||||||
|
gitHubContainerRegistry: GitHubContainerRegistryIntegration,
|
||||||
|
quay: QuayIntegration,
|
||||||
ntfy: NTFYIntegration,
|
ntfy: NTFYIntegration,
|
||||||
mock: MockIntegration,
|
mock: MockIntegration,
|
||||||
} satisfies Record<IntegrationKind, IntegrationInstance | [(input: IntegrationInput) => Promise<Integration>]>;
|
} satisfies Record<IntegrationKind, IntegrationInstance | [(input: IntegrationInput) => Promise<Integration>]>;
|
||||||
|
|||||||
@@ -3,8 +3,10 @@ import { logger } from "@homarr/log";
|
|||||||
|
|
||||||
import type { Integration } from "../integration";
|
import type { Integration } from "../integration";
|
||||||
import type { IIntegrationErrorHandler } from "./handler";
|
import type { IIntegrationErrorHandler } from "./handler";
|
||||||
|
import { integrationFetchHttpErrorHandler } from "./http";
|
||||||
import { IntegrationError } from "./integration-error";
|
import { IntegrationError } from "./integration-error";
|
||||||
import { IntegrationUnknownError } from "./integration-unknown-error";
|
import { IntegrationUnknownError } from "./integration-unknown-error";
|
||||||
|
import { integrationJsonParseErrorHandler, integrationZodParseErrorHandler } from "./parse";
|
||||||
|
|
||||||
const localLogger = logger.child({
|
const localLogger = logger.child({
|
||||||
module: "HandleIntegrationErrors",
|
module: "HandleIntegrationErrors",
|
||||||
@@ -13,7 +15,14 @@ const localLogger = logger.child({
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-empty-object-type, @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type, @typescript-eslint/no-explicit-any
|
||||||
type AbstractConstructor<T = {}> = abstract new (...args: any[]) => T;
|
type AbstractConstructor<T = {}> = abstract new (...args: any[]) => T;
|
||||||
|
|
||||||
|
const defaultErrorHandlers: IIntegrationErrorHandler[] = [
|
||||||
|
integrationZodParseErrorHandler,
|
||||||
|
integrationJsonParseErrorHandler,
|
||||||
|
integrationFetchHttpErrorHandler,
|
||||||
|
];
|
||||||
|
|
||||||
export const HandleIntegrationErrors = (errorHandlers: IIntegrationErrorHandler[]) => {
|
export const HandleIntegrationErrors = (errorHandlers: IIntegrationErrorHandler[]) => {
|
||||||
|
const combinedErrorHandlers = [...defaultErrorHandlers, ...errorHandlers];
|
||||||
return <T extends AbstractConstructor<Integration>>(IntegrationBaseClass: T): T => {
|
return <T extends AbstractConstructor<Integration>>(IntegrationBaseClass: T): T => {
|
||||||
abstract class ErrorHandledIntegration extends IntegrationBaseClass {
|
abstract class ErrorHandledIntegration extends IntegrationBaseClass {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
@@ -42,7 +51,7 @@ export const HandleIntegrationErrors = (errorHandlers: IIntegrationErrorHandler[
|
|||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const handler of errorHandlers) {
|
for (const handler of combinedErrorHandlers) {
|
||||||
const handledError = handler.handleError(error, this.publicIntegration);
|
const handledError = handler.handleError(error, this.publicIntegration);
|
||||||
if (!handledError) continue;
|
if (!handledError) continue;
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,6 @@ import { removeTrailingSlash } from "@homarr/common";
|
|||||||
import type { IntegrationSecretKind } from "@homarr/definitions";
|
import type { IntegrationSecretKind } from "@homarr/definitions";
|
||||||
|
|
||||||
import { HandleIntegrationErrors } from "./errors/decorator";
|
import { HandleIntegrationErrors } from "./errors/decorator";
|
||||||
import { integrationFetchHttpErrorHandler } from "./errors/http";
|
|
||||||
import { integrationJsonParseErrorHandler, integrationZodParseErrorHandler } from "./errors/parse";
|
|
||||||
import { TestConnectionError } from "./test-connection/test-connection-error";
|
import { TestConnectionError } from "./test-connection/test-connection-error";
|
||||||
import type { TestingResult } from "./test-connection/test-connection-service";
|
import type { TestingResult } from "./test-connection/test-connection-service";
|
||||||
import { TestConnectionService } from "./test-connection/test-connection-service";
|
import { TestConnectionService } from "./test-connection/test-connection-service";
|
||||||
@@ -32,11 +30,7 @@ export interface IntegrationTestingInput {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@HandleIntegrationErrors([
|
@HandleIntegrationErrors([])
|
||||||
integrationZodParseErrorHandler,
|
|
||||||
integrationJsonParseErrorHandler,
|
|
||||||
integrationFetchHttpErrorHandler,
|
|
||||||
])
|
|
||||||
export abstract class Integration {
|
export abstract class Integration {
|
||||||
constructor(protected integration: IntegrationInput) {}
|
constructor(protected integration: IntegrationInput) {}
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ const localLogger = logger.child({ module: "CodebergIntegration" });
|
|||||||
|
|
||||||
export class CodebergIntegration extends Integration implements ReleasesProviderIntegration {
|
export class CodebergIntegration extends Integration implements ReleasesProviderIntegration {
|
||||||
private async withHeadersAsync(callback: (headers: RequestInit["headers"]) => Promise<Response>): Promise<Response> {
|
private async withHeadersAsync(callback: (headers: RequestInit["headers"]) => Promise<Response>): Promise<Response> {
|
||||||
if (!this.hasSecretValue("personalAccessToken")) return await callback({});
|
if (!this.hasSecretValue("personalAccessToken")) return await callback(undefined);
|
||||||
|
|
||||||
return await callback({
|
return await callback({
|
||||||
Authorization: `token ${this.getSecretValue("personalAccessToken")}`,
|
Authorization: `token ${this.getSecretValue("personalAccessToken")}`,
|
||||||
@@ -61,7 +61,7 @@ export class CodebergIntegration extends Integration implements ReleasesProvider
|
|||||||
const details = await this.getDetailsAsync(owner, name);
|
const details = await this.getDetailsAsync(owner, name);
|
||||||
|
|
||||||
const releasesResponse = await this.withHeadersAsync(async (headers) => {
|
const releasesResponse = await this.withHeadersAsync(async (headers) => {
|
||||||
return fetchWithTrustedCertificatesAsync(
|
return await fetchWithTrustedCertificatesAsync(
|
||||||
this.url(`/api/v1/repos/${encodeURIComponent(owner)}/${encodeURIComponent(name)}/releases`),
|
this.url(`/api/v1/repos/${encodeURIComponent(owner)}/${encodeURIComponent(name)}/releases`),
|
||||||
{ headers },
|
{ headers },
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { z } from "zod";
|
|||||||
|
|
||||||
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
|
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
|
||||||
|
|
||||||
import { createChannelEventHistory } from "../../../redis/src/lib/channel";
|
import { createChannelEventHistoryOld } from "../../../redis/src/lib/channel";
|
||||||
import type { IntegrationTestingInput } from "../base/integration";
|
import type { IntegrationTestingInput } from "../base/integration";
|
||||||
import { Integration } from "../base/integration";
|
import { Integration } from "../base/integration";
|
||||||
import { TestConnectionError } from "../base/test-connection/test-connection-error";
|
import { TestConnectionError } from "../base/test-connection/test-connection-error";
|
||||||
@@ -32,14 +32,16 @@ export class DashDotIntegration extends Integration implements ISystemHealthMoni
|
|||||||
const cpuLoad = await this.getCurrentCpuLoadAsync();
|
const cpuLoad = await this.getCurrentCpuLoadAsync();
|
||||||
const memoryLoad = await this.getCurrentMemoryLoadAsync();
|
const memoryLoad = await this.getCurrentMemoryLoadAsync();
|
||||||
const storageLoad = await this.getCurrentStorageLoadAsync();
|
const storageLoad = await this.getCurrentStorageLoadAsync();
|
||||||
|
const networkLoad = await this.getCurrentNetworkLoadAsync();
|
||||||
|
|
||||||
const channel = this.getChannel();
|
const channel = this.getChannel();
|
||||||
const history = await channel.getSliceUntilTimeAsync(dayjs().subtract(15, "minutes").toDate());
|
const history = await channel.getSliceUntilTimeAsync(dayjs().subtract(15, "minutes").toDate());
|
||||||
|
|
||||||
return {
|
return {
|
||||||
cpuUtilization: cpuLoad.sumLoad,
|
cpuUtilization: cpuLoad.sumLoad,
|
||||||
memUsed: `${memoryLoad.loadInBytes}`,
|
memUsedInBytes: memoryLoad.loadInBytes,
|
||||||
memAvailable: `${info.maxAvailableMemoryBytes - memoryLoad.loadInBytes}`,
|
memAvailableInBytes: info.maxAvailableMemoryBytes - memoryLoad.loadInBytes,
|
||||||
|
network: networkLoad,
|
||||||
fileSystem: info.storage
|
fileSystem: info.storage
|
||||||
.filter((_, index) => storageLoad[index] !== -1) // filter out undermoutned drives, they display as -1 in the load API
|
.filter((_, index) => storageLoad[index] !== -1) // filter out undermoutned drives, they display as -1 in the load API
|
||||||
.map((storage, index) => ({
|
.map((storage, index) => ({
|
||||||
@@ -113,8 +115,13 @@ export class DashDotIntegration extends Integration implements ISystemHealthMoni
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private async getCurrentNetworkLoadAsync() {
|
||||||
|
const response = await fetchWithTrustedCertificatesAsync(this.url("/load/network"));
|
||||||
|
return await networkLoadApi.parseAsync(await response.json());
|
||||||
|
}
|
||||||
|
|
||||||
private getChannel() {
|
private getChannel() {
|
||||||
return createChannelEventHistory<z.infer<typeof cpuLoadPerCoreApiList>>(
|
return createChannelEventHistoryOld<z.infer<typeof cpuLoadPerCoreApiList>>(
|
||||||
`integration:${this.integration.id}:history:cpu`,
|
`integration:${this.integration.id}:history:cpu`,
|
||||||
100,
|
100,
|
||||||
);
|
);
|
||||||
@@ -130,6 +137,11 @@ const memoryLoadApi = z.object({
|
|||||||
load: z.number().min(0),
|
load: z.number().min(0),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const networkLoadApi = z.object({
|
||||||
|
up: z.number().min(0),
|
||||||
|
down: z.number().min(0),
|
||||||
|
});
|
||||||
|
|
||||||
const internalServerInfoApi = z.object({
|
const internalServerInfoApi = z.object({
|
||||||
os: z.object({
|
os: z.object({
|
||||||
distro: z.string(),
|
distro: z.string(),
|
||||||
|
|||||||
@@ -30,7 +30,8 @@ export class DockerHubIntegration extends Integration implements ReleasesProvide
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async withHeadersAsync(callback: (headers: RequestInit["headers"]) => Promise<Response>): Promise<Response> {
|
private async withHeadersAsync(callback: (headers: RequestInit["headers"]) => Promise<Response>): Promise<Response> {
|
||||||
if (!this.hasSecretValue("username") || !this.hasSecretValue("personalAccessToken")) return await callback({});
|
if (!this.hasSecretValue("username") || !this.hasSecretValue("personalAccessToken"))
|
||||||
|
return await callback(undefined);
|
||||||
|
|
||||||
const storedSession = await this.sessionStore.getAsync();
|
const storedSession = await this.sessionStore.getAsync();
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client/models";
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
|
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
|
||||||
|
import { ResponseError } from "@homarr/common/server";
|
||||||
|
|
||||||
import type { IntegrationTestingInput } from "../base/integration";
|
import type { IntegrationTestingInput } from "../base/integration";
|
||||||
import { Integration } from "../base/integration";
|
import { Integration } from "../base/integration";
|
||||||
@@ -10,6 +11,7 @@ import type { TestingResult } from "../base/test-connection/test-connection-serv
|
|||||||
import type { IMediaServerIntegration } from "../interfaces/media-server/media-server-integration";
|
import type { IMediaServerIntegration } from "../interfaces/media-server/media-server-integration";
|
||||||
import type { CurrentSessionsInput, StreamSession } from "../interfaces/media-server/media-server-types";
|
import type { CurrentSessionsInput, StreamSession } from "../interfaces/media-server/media-server-types";
|
||||||
import { convertJellyfinType } from "../jellyfin/jellyfin-integration";
|
import { convertJellyfinType } from "../jellyfin/jellyfin-integration";
|
||||||
|
import type { IMediaReleasesIntegration, MediaRelease } from "../types";
|
||||||
|
|
||||||
const sessionSchema = z.object({
|
const sessionSchema = z.object({
|
||||||
NowPlayingItem: z
|
NowPlayingItem: z
|
||||||
@@ -31,7 +33,34 @@ const sessionSchema = z.object({
|
|||||||
UserName: z.string().nullish(),
|
UserName: z.string().nullish(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export class EmbyIntegration extends Integration implements IMediaServerIntegration {
|
const itemSchema = z.object({
|
||||||
|
Id: z.string(),
|
||||||
|
ServerId: z.string(),
|
||||||
|
Name: z.string(),
|
||||||
|
Taglines: z.array(z.string()),
|
||||||
|
Studios: z.array(z.object({ Name: z.string() })),
|
||||||
|
Overview: z.string().optional(),
|
||||||
|
PremiereDate: z
|
||||||
|
.string()
|
||||||
|
.datetime()
|
||||||
|
.transform((date) => new Date(date))
|
||||||
|
.optional(),
|
||||||
|
DateCreated: z
|
||||||
|
.string()
|
||||||
|
.datetime()
|
||||||
|
.transform((date) => new Date(date)),
|
||||||
|
Genres: z.array(z.string()),
|
||||||
|
CommunityRating: z.number().optional(),
|
||||||
|
RunTimeTicks: z.number(),
|
||||||
|
Type: z.string(), // for example "Movie"
|
||||||
|
});
|
||||||
|
|
||||||
|
const userSchema = z.object({
|
||||||
|
Id: z.string(),
|
||||||
|
Name: z.string(),
|
||||||
|
});
|
||||||
|
|
||||||
|
export class EmbyIntegration extends Integration implements IMediaServerIntegration, IMediaReleasesIntegration {
|
||||||
private static readonly apiKeyHeader = "X-Emby-Token";
|
private static readonly apiKeyHeader = "X-Emby-Token";
|
||||||
private static readonly deviceId = "homarr-emby-integration";
|
private static readonly deviceId = "homarr-emby-integration";
|
||||||
private static readonly authorizationHeaderValue = `Emby Client="Dashboard", Device="Homarr", DeviceId="${EmbyIntegration.deviceId}", Version="0.0.1"`;
|
private static readonly authorizationHeaderValue = `Emby Client="Dashboard", Device="Homarr", DeviceId="${EmbyIntegration.deviceId}", Version="0.0.1"`;
|
||||||
@@ -103,4 +132,69 @@ export class EmbyIntegration extends Integration implements IMediaServerIntegrat
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async getMediaReleasesAsync(): Promise<MediaRelease[]> {
|
||||||
|
const limit = 100;
|
||||||
|
const users = await this.fetchUsersPublicAsync();
|
||||||
|
const userId = users.at(0)?.id;
|
||||||
|
if (!userId) {
|
||||||
|
throw new Error("No users found");
|
||||||
|
}
|
||||||
|
|
||||||
|
const apiKey = super.getSecretValue("apiKey");
|
||||||
|
const response = await fetchWithTrustedCertificatesAsync(
|
||||||
|
super.url(
|
||||||
|
`/Users/${userId}/Items/Latest?Limit=${limit}&Fields=CommunityRating,Studios,PremiereDate,Genres,ChildCount,ProductionYear,DateCreated,Overview,Taglines`,
|
||||||
|
),
|
||||||
|
{
|
||||||
|
headers: {
|
||||||
|
[EmbyIntegration.apiKeyHeader]: apiKey,
|
||||||
|
Authorization: EmbyIntegration.authorizationHeaderValue,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!response.ok) {
|
||||||
|
throw new ResponseError(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
const items = z.array(itemSchema).parse(await response.json());
|
||||||
|
|
||||||
|
return items.map((item) => ({
|
||||||
|
id: item.Id,
|
||||||
|
type: item.Type === "Movie" ? "movie" : item.Type === "Series" ? "tv" : "unknown",
|
||||||
|
title: item.Name,
|
||||||
|
subtitle: item.Taglines.at(0),
|
||||||
|
description: item.Overview,
|
||||||
|
releaseDate: item.PremiereDate ?? item.DateCreated,
|
||||||
|
imageUrls: {
|
||||||
|
poster: super.url(`/Items/${item.Id}/Images/Primary?maxHeight=492&maxWidth=328&quality=90`).toString(),
|
||||||
|
backdrop: super.url(`/Items/${item.Id}/Images/Backdrop/0?maxWidth=960&quality=70`).toString(),
|
||||||
|
},
|
||||||
|
producer: item.Studios.at(0)?.Name,
|
||||||
|
rating: item.CommunityRating?.toFixed(1),
|
||||||
|
tags: item.Genres,
|
||||||
|
href: super.url(`/web/index.html#!/item?id=${item.Id}&serverId=${item.ServerId}`).toString(),
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
// https://dev.emby.media/reference/RestAPI/UserService/getUsersPublic.html
|
||||||
|
private async fetchUsersPublicAsync(): Promise<{ id: string; name: string }[]> {
|
||||||
|
const apiKey = super.getSecretValue("apiKey");
|
||||||
|
const response = await fetchWithTrustedCertificatesAsync(super.url("/Users/Public"), {
|
||||||
|
headers: {
|
||||||
|
[EmbyIntegration.apiKeyHeader]: apiKey,
|
||||||
|
Authorization: EmbyIntegration.authorizationHeaderValue,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
if (!response.ok) {
|
||||||
|
throw new ResponseError(response);
|
||||||
|
}
|
||||||
|
const users = z.array(userSchema).parse(await response.json());
|
||||||
|
|
||||||
|
return users.map((user) => ({
|
||||||
|
id: user.Id,
|
||||||
|
name: user.Name,
|
||||||
|
}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,145 @@
|
|||||||
|
import { Octokit, RequestError } from "octokit";
|
||||||
|
|
||||||
|
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
|
||||||
|
import { logger } from "@homarr/log";
|
||||||
|
|
||||||
|
import type { IntegrationTestingInput } from "../base/integration";
|
||||||
|
import { Integration } from "../base/integration";
|
||||||
|
import { TestConnectionError } from "../base/test-connection/test-connection-error";
|
||||||
|
import type { TestingResult } from "../base/test-connection/test-connection-service";
|
||||||
|
import type { ReleasesProviderIntegration } from "../interfaces/releases-providers/releases-providers-integration";
|
||||||
|
import { getLatestRelease } from "../interfaces/releases-providers/releases-providers-integration";
|
||||||
|
import type {
|
||||||
|
DetailsProviderResponse,
|
||||||
|
ReleaseProviderResponse,
|
||||||
|
ReleasesRepository,
|
||||||
|
ReleasesResponse,
|
||||||
|
} from "../interfaces/releases-providers/releases-providers-types";
|
||||||
|
|
||||||
|
const localLogger = logger.child({ module: "GitHubContainerRegistryIntegration" });
|
||||||
|
|
||||||
|
export class GitHubContainerRegistryIntegration extends Integration implements ReleasesProviderIntegration {
|
||||||
|
private static readonly userAgent = "Homarr-Lab/Homarr:GitHubContainerRegistryIntegration";
|
||||||
|
|
||||||
|
protected async testingAsync(input: IntegrationTestingInput): Promise<TestingResult> {
|
||||||
|
const headers: RequestInit["headers"] = {
|
||||||
|
"User-Agent": GitHubContainerRegistryIntegration.userAgent,
|
||||||
|
};
|
||||||
|
|
||||||
|
if (this.hasSecretValue("personalAccessToken"))
|
||||||
|
headers.Authorization = `Bearer ${this.getSecretValue("personalAccessToken")}`;
|
||||||
|
|
||||||
|
const response = await input.fetchAsync(this.url("/octocat"), {
|
||||||
|
headers,
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!response.ok) {
|
||||||
|
return TestConnectionError.StatusResult(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
success: true,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
public async getLatestMatchingReleaseAsync(repository: ReleasesRepository): Promise<ReleasesResponse> {
|
||||||
|
const [owner, name] = repository.identifier.split("/");
|
||||||
|
if (!owner || !name) {
|
||||||
|
localLogger.warn(
|
||||||
|
`Invalid identifier format. Expected 'owner/name', for ${repository.identifier} with GitHub Container Registry integration`,
|
||||||
|
{
|
||||||
|
identifier: repository.identifier,
|
||||||
|
},
|
||||||
|
);
|
||||||
|
return {
|
||||||
|
id: repository.id,
|
||||||
|
error: { code: "invalidIdentifier" },
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
const api = this.getApi();
|
||||||
|
const details = await this.getDetailsAsync(api, owner, name);
|
||||||
|
|
||||||
|
try {
|
||||||
|
const releasesResponse = await api.rest.packages.getAllPackageVersionsForPackageOwnedByUser({
|
||||||
|
username: owner,
|
||||||
|
package_type: "container",
|
||||||
|
package_name: name,
|
||||||
|
per_page: 100,
|
||||||
|
});
|
||||||
|
|
||||||
|
const releasesProviderResponse = releasesResponse.data.reduce<ReleaseProviderResponse[]>((acc, release) => {
|
||||||
|
if (!release.metadata?.container?.tags || !(release.metadata.container.tags.length > 0)) return acc;
|
||||||
|
|
||||||
|
release.metadata.container.tags.forEach((tag) => {
|
||||||
|
acc.push({
|
||||||
|
latestRelease: tag,
|
||||||
|
latestReleaseAt: new Date(release.updated_at),
|
||||||
|
releaseUrl: release.html_url,
|
||||||
|
releaseDescription: release.description ?? undefined,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
return acc;
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
return getLatestRelease(releasesProviderResponse, repository, details);
|
||||||
|
} catch (error) {
|
||||||
|
const errorMessage = error instanceof RequestError ? error.message : String(error);
|
||||||
|
|
||||||
|
localLogger.warn(`Failed to get releases for ${owner}\\${name} with GitHub Container Registry integration`, {
|
||||||
|
owner,
|
||||||
|
name,
|
||||||
|
error: errorMessage,
|
||||||
|
});
|
||||||
|
|
||||||
|
return {
|
||||||
|
id: repository.id,
|
||||||
|
error: { message: errorMessage },
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected async getDetailsAsync(
|
||||||
|
api: Octokit,
|
||||||
|
owner: string,
|
||||||
|
name: string,
|
||||||
|
): Promise<DetailsProviderResponse | undefined> {
|
||||||
|
try {
|
||||||
|
const response = await api.rest.packages.getPackageForUser({
|
||||||
|
username: owner,
|
||||||
|
package_type: "container",
|
||||||
|
package_name: name,
|
||||||
|
});
|
||||||
|
|
||||||
|
return {
|
||||||
|
projectUrl: response.data.repository?.html_url ?? response.data.html_url,
|
||||||
|
projectDescription: response.data.repository?.description ?? undefined,
|
||||||
|
isFork: response.data.repository?.fork,
|
||||||
|
isArchived: response.data.repository?.archived,
|
||||||
|
createdAt: new Date(response.data.created_at),
|
||||||
|
starsCount: response.data.repository?.stargazers_count,
|
||||||
|
openIssues: response.data.repository?.open_issues_count,
|
||||||
|
forksCount: response.data.repository?.forks_count,
|
||||||
|
};
|
||||||
|
} catch (error) {
|
||||||
|
localLogger.warn(`Failed to get details for ${owner}\\${name} with GitHub Container Registry integration`, {
|
||||||
|
owner,
|
||||||
|
name,
|
||||||
|
error: error instanceof RequestError ? error.message : String(error),
|
||||||
|
});
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private getApi() {
|
||||||
|
return new Octokit({
|
||||||
|
baseUrl: this.url("/").origin,
|
||||||
|
request: {
|
||||||
|
fetch: fetchWithTrustedCertificatesAsync,
|
||||||
|
},
|
||||||
|
userAgent: GitHubContainerRegistryIntegration.userAgent,
|
||||||
|
throttle: { enabled: false }, // Disable throttling for this integration, Octokit will retry by default after a set time, thus delaying the repsonse to the user in case of errors. Errors will be shown to the user, no need to retry the request.
|
||||||
|
...(this.hasSecretValue("personalAccessToken") ? { auth: this.getSecretValue("personalAccessToken") } : {}),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -58,7 +58,6 @@ export class GithubIntegration extends Integration implements ReleasesProviderIn
|
|||||||
}
|
}
|
||||||
|
|
||||||
const api = this.getApi();
|
const api = this.getApi();
|
||||||
|
|
||||||
const details = await this.getDetailsAsync(api, owner, name);
|
const details = await this.getDetailsAsync(api, owner, name);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -21,13 +21,20 @@ export { PiHoleIntegrationV5 } from "./pi-hole/v5/pi-hole-integration-v5";
|
|||||||
export { PiHoleIntegrationV6 } from "./pi-hole/v6/pi-hole-integration-v6";
|
export { PiHoleIntegrationV6 } from "./pi-hole/v6/pi-hole-integration-v6";
|
||||||
export { PlexIntegration } from "./plex/plex-integration";
|
export { PlexIntegration } from "./plex/plex-integration";
|
||||||
export { ProwlarrIntegration } from "./prowlarr/prowlarr-integration";
|
export { ProwlarrIntegration } from "./prowlarr/prowlarr-integration";
|
||||||
|
export { OPNsenseIntegration } from "./opnsense/opnsense-integration";
|
||||||
|
|
||||||
// Types
|
// Types
|
||||||
export type { IntegrationInput } from "./base/integration";
|
export type { IntegrationInput } from "./base/integration";
|
||||||
export type { DownloadClientJobsAndStatus } from "./interfaces/downloads/download-client-data";
|
export type { DownloadClientJobsAndStatus } from "./interfaces/downloads/download-client-data";
|
||||||
export type { ExtendedDownloadClientItem } from "./interfaces/downloads/download-client-items";
|
export type { ExtendedDownloadClientItem } from "./interfaces/downloads/download-client-items";
|
||||||
export type { ExtendedClientStatus } from "./interfaces/downloads/download-client-status";
|
export type { ExtendedClientStatus } from "./interfaces/downloads/download-client-status";
|
||||||
|
export type {
|
||||||
|
FirewallInterface,
|
||||||
|
FirewallCpuSummary,
|
||||||
|
FirewallInterfacesSummary,
|
||||||
|
FirewallVersionSummary,
|
||||||
|
FirewallMemorySummary,
|
||||||
|
} from "./interfaces/firewall-summary/firewall-summary-types";
|
||||||
export type { SystemHealthMonitoring } from "./interfaces/health-monitoring/health-monitoring-types";
|
export type { SystemHealthMonitoring } from "./interfaces/health-monitoring/health-monitoring-types";
|
||||||
export { MediaRequestStatus } from "./interfaces/media-requests/media-request-types";
|
export { MediaRequestStatus } from "./interfaces/media-requests/media-request-types";
|
||||||
export type { MediaRequestList, MediaRequestStats } from "./interfaces/media-requests/media-request-types";
|
export type { MediaRequestList, MediaRequestStats } from "./interfaces/media-requests/media-request-types";
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import type {
|
||||||
|
FirewallCpuSummary,
|
||||||
|
FirewallInterfacesSummary,
|
||||||
|
FirewallMemorySummary,
|
||||||
|
FirewallVersionSummary,
|
||||||
|
} from "./firewall-summary-types";
|
||||||
|
|
||||||
|
export interface FirewallSummaryIntegration {
|
||||||
|
getFirewallCpuAsync(): Promise<FirewallCpuSummary>;
|
||||||
|
getFirewallMemoryAsync(): Promise<FirewallMemorySummary>;
|
||||||
|
getFirewallInterfacesAsync(): Promise<FirewallInterfacesSummary[]>;
|
||||||
|
getFirewallVersionAsync(): Promise<FirewallVersionSummary>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
export interface FirewallInterfacesSummary {
|
||||||
|
data: FirewallInterface[];
|
||||||
|
timestamp: Date;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FirewallInterface {
|
||||||
|
name: string;
|
||||||
|
receive: number;
|
||||||
|
transmit: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FirewallVersionSummary {
|
||||||
|
version: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FirewallCpuSummary {
|
||||||
|
total: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FirewallMemorySummary {
|
||||||
|
used: number;
|
||||||
|
total: number;
|
||||||
|
percent: number;
|
||||||
|
}
|
||||||