first commit

This commit is contained in:
Blake Ridgway
2026-03-07 21:16:51 -06:00
parent 21bd542469
commit 03fcf37beb
33 changed files with 3532 additions and 0 deletions

37
.env.example Normal file
View File

@@ -0,0 +1,37 @@
# Ridgway Systems website configuration
# Copy to .env and fill in values. Never commit .env to version control.
# ------------------------------------------------------------------
# Server
# ------------------------------------------------------------------
# Port to listen on (default: 8080)
PORT=8080
# Public URL of the site (no trailing slash)
SITE_URL=https://ridgwaysystems.org
# Path to content directory (default: content)
CONTENT_DIR=content
# Path to data directory containing status.json (default: data)
DATA_DIR=data
# Set to "1" to enable development mode (template reloading on each request)
DEV=0
# ------------------------------------------------------------------
# Admin authentication
# ------------------------------------------------------------------
# bcrypt hash of the admin password.
# Generate with: htpasswd -bnBC 12 "" yourpassword | tr -d ':\n'
# Or in Go:
# import "golang.org/x/crypto/bcrypt"
# hash, _ := bcrypt.GenerateFromPassword([]byte("yourpassword"), 12)
# fmt.Println(string(hash))
ADMIN_PASSWORD_HASH=$2a$12$examplehashgoeshere...
# Secret key for signing session cookies. Use a long random string.
# Generate with: openssl rand -hex 32
SESSION_SECRET=change-me-use-openssl-rand-hex-32