Add the website: Go server + Vue SPA in site/, with CI
A standalone container for web_server, shaped like job-tracker: serves /usaco/ with solved problems public and solving/skipped plus edits (status, link, notes) for the site admin. Git is the only store: the server clones adamf/usaco from Gitea, pulls on the push webhook, and commits edits back. CI builds the image only when site/ changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
# Every variable the server reads. In production these are set by the main
|
||||
# site's docker-compose.yml (see README.md); for standalone development,
|
||||
# docker-compose.yml here sets what it needs.
|
||||
|
||||
# --- Core -------------------------------------------------------------------
|
||||
# URL prefix everything is served under. The SPA is built for /usaco.
|
||||
BASE_PATH=
|
||||
# The clone lives in $DATA_DIR/repo (default /data).
|
||||
DATA_DIR=
|
||||
# Listen port (default 8080).
|
||||
PORT=
|
||||
# "true" enables gin debug logging, and is required for AUTH_MODE=dev.
|
||||
DEV_MODE=
|
||||
|
||||
# --- Git --------------------------------------------------------------------
|
||||
# What to clone. Production: http://gitea:3000/adamf/usaco.git (Gitea on the
|
||||
# Docker network). Required.
|
||||
GIT_REMOTE_URL=
|
||||
# Default main.
|
||||
GIT_BRANCH=
|
||||
# HTTP credentials: a Gitea access token with read and write on the repo.
|
||||
# Given to git through GIT_ASKPASS, never written into .git/config.
|
||||
# GIT_USER defaults to adamf.
|
||||
GIT_USER=
|
||||
GIT_TOKEN=
|
||||
# Who the site's commits are by. Defaults: "usaco site" / [email protected].
|
||||
GIT_AUTHOR_NAME=
|
||||
GIT_AUTHOR_EMAIL=
|
||||
# "false" keeps edits as local commits (development). Default true.
|
||||
GIT_PUSH=
|
||||
# Fallback pull interval, a Go duration. Default 10m; the webhook is the
|
||||
# normal trigger.
|
||||
PULL_INTERVAL=
|
||||
# Shared secret of the Gitea push webhook. Blank turns the hook off.
|
||||
WEBHOOK_SECRET=
|
||||
|
||||
# --- Auth -------------------------------------------------------------------
|
||||
# "forward" (default): ask the main site's backend. "dev": admit everyone.
|
||||
AUTH_MODE=
|
||||
# The site backend's validate-admin route, on the Docker network
|
||||
# (default http://backend:8080/auth/validate-admin).
|
||||
AUTH_VALIDATE_URL=
|
||||
Reference in New Issue
Block a user