Compare commits

...

19 Commits

Author SHA1 Message Date
shamoon
6b4182ab96 Merge branch 'dev' 2025-03-14 18:16:55 -07:00
shamoon
8656b8e2f1 Revert hostname change 2025-03-14 18:16:45 -07:00
shamoon
dd8e9270f2 bump version 2025-03-14 17:59:05 -07:00
shamoon
90dd8e5967 Update index.md 2025-03-14 16:59:52 -07:00
shamoon
6fca9e342d Bump version to 1.0.1 2025-03-14 15:42:56 -07:00
shamoon
66a8b1c21e Just remove hostname 2025-03-14 15:13:08 -07:00
shamoon
a0dc8c9ccb Fix: fix larger breakpoint (#4935) 2025-03-14 14:20:33 -07:00
shamoon
8190260400 Fix: fix plex total size with larger libraries (#4933) 2025-03-14 14:12:33 -07:00
shamoon
7ced73b206 Merge branch 'main' into dev 2025-03-14 12:49:46 -07:00
shamoon
a2f4dd289b Update README.md 2025-03-14 12:48:03 -07:00
shamoon
0c7cac74ea Update docker.md 2025-03-14 12:47:32 -07:00
shamoon
d81fcee31f Merge branch 'main' into dev 2025-03-14 12:31:20 -07:00
shamoon
f7889eab27 Clarify port 2025-03-14 12:31:10 -07:00
shamoon
91518d972d Update index.md 2025-03-14 12:30:22 -07:00
shamoon
a090f98fab Add HOMEPAGE_ALLOWED_HOSTS to readme 2025-03-14 12:30:22 -07:00
shamoon
5629440acf Fix: fix fiveColumns option (#4924) 2025-03-14 12:20:10 -07:00
shamoon
471800d5bc Update index.md 2025-03-14 12:18:57 -07:00
shamoon
6ab57b7b14 Update middleware.js 2025-03-14 11:58:44 -07:00
shamoon
f767ff047f Add HOMEPAGE_ALLOWED_HOSTS to readme 2025-03-14 11:23:52 -07:00
9 changed files with 14 additions and 11 deletions

View File

@@ -80,6 +80,7 @@ services:
image: ghcr.io/gethomepage/homepage:latest
container_name: homepage
environment:
HOMEPAGE_ALLOWED_HOSTS: gethomepage.dev # required, may need port
PUID: 1000 # optional, your user id
PGID: 1000 # optional, your group id
ports:
@@ -94,6 +95,7 @@ or docker run:
```bash
docker run --name homepage \
-e HOMEPAGE_ALLOWED_HOSTS=gethomepage.dev \
-e PUID=1000 \
-e PGID=1000 \
-p 3000:3000 \

View File

@@ -16,7 +16,7 @@ services:
- /path/to/config:/app/config # Make sure your local config directory exists
- /var/run/docker.sock:/var/run/docker.sock # (optional) For docker integrations
environment:
HOMEPAGE_ALLOWED_HOSTS: gethomepage.dev # required when deploying via public URL
HOMEPAGE_ALLOWED_HOSTS: gethomepage.dev # required, may need port
```
### Running as non-root
@@ -38,7 +38,7 @@ services:
- /path/to/config:/app/config # Make sure your local config directory exists
- /var/run/docker.sock:/var/run/docker.sock # (optional) For docker integrations, see alternative methods
environment:
HOMEPAGE_ALLOWED_HOSTS: gethomepage.dev # required when deploying via public URL
HOMEPAGE_ALLOWED_HOSTS: gethomepage.dev # required, may need port
PUID: $PUID
PGID: $PGID
```

View File

@@ -29,4 +29,4 @@ You have a few options for deploying homepage, depending on your needs. We offer
### `HOMEPAGE_ALLOWED_HOSTS`
As of v1.0 there is one required environment variable when deploying via a public URL, <code>HOMEPAGE_ALLOWED_HOSTS</code>. This is a comma separated list of allowed hosts that can access your homepage. See the [docker](docker.md) and [source](source.md) installation pages for examples.
As of v1.0 there is one required environment variable when deploying via a public URL, <code>HOMEPAGE_ALLOWED_HOSTS</code>. This is a comma separated (no spaces) list of allowed hosts (sometimes with the port) that can access your homepage. See the [docker](docker.md) and [source](source.md) installation pages for examples.

View File

@@ -21,7 +21,7 @@ If this is your first time starting, copy the `src/skeleton` directory to `confi
Finally, run the server:
```bash
HOMEPAGE_ALLOWED_HOSTS=gethomepage.dev pnpm start
HOMEPAGE_ALLOWED_HOSTS=gethomepage.dev:1234 pnpm start
```
When updating homepage versions you will need to re-build the static files i.e. repeat the process above.

View File

@@ -1,6 +1,6 @@
{
"name": "homepage",
"version": "1.0.0",
"version": "1.0.2",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",

View File

@@ -11,7 +11,7 @@ export function middleware(req) {
if (!host || !allowedHosts.includes(host)) {
// eslint-disable-next-line no-console
console.error(
`Host validation failed for: ${host}. Hint: Set the HOMEPAGE_ALLOWED_HOSTS environment variable to allow requests from this host.`,
`Host validation failed for: ${host}. Hint: Set the HOMEPAGE_ALLOWED_HOSTS environment variable to allow requests from this host / port.`,
);
return NextResponse.json({ error: "Host validation failed. See logs for more details." }, { status: 400 });
}

View File

@@ -2,6 +2,10 @@
@config '../../tailwind.config.js';
@theme {
--breakpoint-3xl: 112rem;
}
/*
The default border color has changed to `currentColor` in Tailwind CSS v4,
so we've added these compatibility styles to make sure everything still

View File

@@ -111,7 +111,8 @@ export default async function plexProxyHandler(req, res) {
: `/library/sections/${library._attributes.key}/albums`; // music
[status, apiData] = await fetchFromPlexAPI(libraryURL, widget);
if (apiData && apiData.MediaContainer) {
const size = parseInt(apiData.MediaContainer._attributes.size, 10);
const sizeProp = apiData.MediaContainer._attributes["totalSize"] ? "totalSize" : "size";
const size = parseInt(apiData.MediaContainer._attributes[sizeProp], 10);
if (library._attributes.type === "movie") {
movies += size;
} else if (library._attributes.type === "show") {

View File

@@ -30,10 +30,6 @@ module.exports = {
900: "rgb(var(--color-900) / <alpha-value>)",
},
},
screens: {
"3xl": "1800px",
// => @media (min-width: 1800px) { ... }
},
},
},
plugins: [tailwindForms, tailwindScrollbars],