https://github.com/mountaingod2/homepage-config
Personal collection of config files for Homepage (benphelps/homepage)
https://github.com/mountaingod2/homepage-config
Last synced: 4 months ago
JSON representation
Personal collection of config files for Homepage (benphelps/homepage)
- Host: GitHub
- URL: https://github.com/mountaingod2/homepage-config
- Owner: MountainGod2
- Created: 2023-06-24T03:22:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-22T23:16:22.000Z (almost 2 years ago)
- Last Synced: 2024-12-20T09:17:17.433Z (6 months ago)
- Language: CSS
- Size: 34.2 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Homepage Config
A personal collection of example configuration files for [gethomepage/homepage](https://github.com/gethomepage/homepage/). These examples demonstrate how to configure and customize Homepage using environment variables, Docker, and custom themes.
## Getting Started
### Prerequisites
Before using these configurations, ensure you have the following:
- **Docker** installed on your system ([Install Docker](https://docs.docker.com/get-docker/)).
- A user-defined Docker network, such as `dsn` (create one with `docker network create dsn`).
- A `.env.homepage` file with required environment variables.### Setup
1. Clone this repository:
```bash
git clone https://github.com/MountainGod2/homepage_config.git
cd homepage_config
```2. Create a `.env.homepage` file in the appropriate directory. Example:
```env
HOMEPAGE_VAR_SERVER_IP=192.168.0.100
HOMEPAGE_VAR_DOMAIN_NAME=example.com
HOMEPAGE_VAR_CLOUDFLARE_ACCOUNT_ID=XXXX
```3. Run the Docker container using the provided commands.
---
## Configuration Examples
### Docker Run Command
#### Using a `.env.homepage` File
```bash
docker run \
-d \
--name='homepage' \
--net='dsn' \
--env-file /path/to/homepage/.secrets/.env.homepage \
-e TZ="America/Denver" \
-p '3000:3000/tcp' \
-v '/path/to/homepage/config:/app/config:rw' \
-v '/path/to/homepage/icons:/app/icons:rw' \ # Optional mount for local icons
-v '/path/to/homepage/images:/app/images:rw' \ # Option mount for local background images
-v '/mnt/':'/mnt':'ro' \ # Optional mount for local disk statistics
'ghcr.io/gethomepage/homepage:latest'
```#### Setting Environment Variables Inline
```bash
docker run \
-d \
--name='homepage' \
--net='dsn' \
-e 'HOMEPAGE_VAR_SERVER_IP=192.168.0.100' \
-e 'HOMEPAGE_VAR_DOMAIN_NAME=example.com' \
-e 'HOMEPAGE_VAR_CLOUDFLARE_ACCOUNT_ID=XXXX' \
-p '3000:3000/tcp' \
-v '/path/to/homepage/config:/app/config:rw' \
-v '/path/to/homepage/icons:/app/icons:rw' \ # Optional mount for local icons
-v '/path/to/homepage/images:/app/images:rw' \ # Option mount for local background images
-v '/mnt/':'/mnt':'ro' \ # Optional mount for local disk statistics
'ghcr.io/gethomepage/homepage:latest'
```### Environment Variables
Here is a list of key environment variables and their purposes:
| Variable | Description |
|--------------------------------------|----------------------------------------|
| `HOMEPAGE_VAR_SERVER_IP` | The IP address of the server. |
| `HOMEPAGE_VAR_DOMAIN_NAME` | The domain name for the services. |
| `HOMEPAGE_VAR_CLOUDFLARE_ACCOUNT_ID` | Cloudflare account ID for integration. |
| `HOMEPAGE_VAR_TAILSCALE_API_KEY` | API key for Tailscale integration. |
| ... | ... |---
## Custom Theme
A custom Dracula theme is included in this repository. To enable it:
1. Copy `config/custom.css` to your `config` directory.
2. Update your `settings.yaml` to include:
```yaml
theme: dark
color: gray
background: /images/dracula-solid.png
```For more themes, check [homepage-dracula](https://github.com/Jas-SinghFSU/homepage-dracula).
---
## Screenshots

---
## Credits
- Dracula Theme by [Jas-SinghFSU](https://github.com/Jas-SinghFSU/homepage-dracula)
- Homepage Dashboard by [gethomepage](https://github.com/gethomepage/homepage)---
## Contributing
Contributions are welcome! Please open an issue or submit a pull request for improvements or additional configurations.
---
## License
This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.