# 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 # ------------------------------------------------------------------ # Contact / Hire form # ------------------------------------------------------------------ # Email address that receives hire form submissions. # Requires a working local MTA (OpenSMTPD) listening on localhost:25. CONTACT_EMAIL=hire@ridgwaysystems.org # ------------------------------------------------------------------ # Service checker # ------------------------------------------------------------------ # How often (in minutes) to HTTP-check services with a check_url in status.json. # Default: 5 CHECK_INTERVAL=5 # ------------------------------------------------------------------ # Gitea integration (planned outage tagger) # ------------------------------------------------------------------ # Base URL of your Gitea instance (no trailing slash). GITEA_URL=https://git.ridgwaysystems.org # Gitea personal access token with "issues" write scope. # Generate at: /user/settings/applications GITEA_TOKEN=your-gitea-token-here # Owner (org or user) and repo to pull tickets from. GITEA_OWNER=ridgway-infra GITEA_REPO=tickets # Label name applied to planned-outage tickets (default: planned-outage). # The label is created automatically if it does not exist. GITEA_LABEL=planned-outage # ------------------------------------------------------------------ # Twitch integration (live badge + stream page) # ------------------------------------------------------------------ # Twitch application credentials. # Create an app at: https://dev.twitch.tv/console TWITCH_CLIENT_ID=your-client-id-here TWITCH_CLIENT_SECRET=your-client-secret-here # Your Twitch channel name (lowercase). TWITCH_CHANNEL=your-twitch-channel-here