[BREAKING] Enhancement: require host validation (#4744)

This commit is contained in:
shamoon 2025-02-11 21:30:00 -08:00 committed by GitHub
parent 91d5fc8e42
commit 05af70d11b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 47 additions and 2 deletions

View file

@ -15,6 +15,8 @@ services:
volumes:
- /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
```
### Running as non-root
@ -36,6 +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
PUID: $PUID
PGID: $PGID
```
@ -43,7 +46,7 @@ services:
### With Docker Run
```bash
docker run -p 3000:3000 -v /path/to/config:/app/config -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/gethomepage/homepage:latest
docker run -p 3000:3000 -e HOMEPAGE_ALLOWED_HOSTS=gethomepage.dev -v /path/to/config:/app/config -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/gethomepage/homepage:latest
```
### Using Environment Secrets

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
pnpm start
HOMEPAGE_ALLOWED_HOSTS=gethomepage.dev pnpm start
```
When updating homepage versions you will need to re-build the static files i.e. repeat the process above.