Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 0 additions & 48 deletions .env.ci

This file was deleted.

21 changes: 21 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Home Network Server Configuration
# Copy this file to .env and update with your values

# Domain Configuration
DOMAIN=home.local
# Timezone (use tz database names, e.g., America/New_York, Europe/London, Asia/Tokyo)
# Find your timezone: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TZ=America/Chicago

# Pi-hole Configuration
PIHOLE_PASSWORD=changeme
PIHOLE_DNS=8.8.8.8;1.1.1.1
ADMIN_EMAIL=

# Future Service Configuration (for Phase 2+)
# MEDIA_PATH=./media
# [email protected]

# Server IP (required for host networking mode)
# Set this to your server's IP address on your local network
SERVER_IP=192.168.0.243
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,17 @@ jobs:
node-version: ${{ steps.node-version.outputs.node_version }}

- name: Install dependencies
run: pnpm install --no-frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Check formatting
run: pnpm exec prettier --check .

- name: Validate docker-compose.yml
run: docker compose --env-file .env.ci config
env:
DOMAIN: test.local
TZ: UTC
PIHOLE_PASSWORD: test-password
PIHOLE_DNS: 8.8.8.8;1.1.1.1
SERVER_IP: 127.0.0.1
ADMIN_EMAIL: [email protected]
run: docker compose config
29 changes: 14 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
# Environment variables
.env

# Node.js
node_modules/
.pnpm-store/
.pnpm_store/

# Environment files
.env

# Docker
.docker/
docker-compose.override.yml

# Traefik
traefik/acme.json

# Service data
service-configs/
homepage/data/
# Docker volumes and data
pihole/
syncthing/
jellyfin/
traefik/letsencrypt/
media/

# IDE
*.swp
*.swo
# Homepage config (contains personal data)
homepage/config/

# OS
# OS files
.DS_Store
Thumbs.db
Thumbs.db
17 changes: 8 additions & 9 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/bin/sh

# shellcheck disable=SC1091
. "$(dirname "$0")/_/husky.sh"
if [ "$SKIP_SIMPLE_GIT_HOOKS" = "1" ]; then
echo "[INFO] SKIP_SIMPLE_GIT_HOOKS is set to 1, skipping hook."
exit 0
fi

echo "Running Prettier..."
pnpm exec prettier --write .
if [ -f "$SIMPLE_GIT_HOOKS_RC" ]; then
. "$SIMPLE_GIT_HOOKS_RC"
fi

echo "Running ShellCheck..."
pnpm run lint:shell

echo "Adding formatted files..."
git add .
pnpm pretty-quick --staged
3 changes: 3 additions & 0 deletions .simple-git-hooks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"pre-commit": "pnpm pretty-quick --staged"
}
Loading