commit bcb354d07411f0b6e2d1cbec3e1b10a33418d0e8 Author: Kenji M Date: Fri Jun 19 15:02:49 2026 +0000 Initial Hello World site diff --git a/README.md b/README.md new file mode 100644 index 0000000..2a67c9c --- /dev/null +++ b/README.md @@ -0,0 +1,72 @@ +# www.kenjim.com + +Static website served via nginx Docker container on zet.home.arpa, proxied through nginx SSL termination at `https://www.kenjim.com`. + +## Development Workflow + +Edit on Mac → push to Gitea → pull on zet → site updates live. + +``` +Mac Gitea (git.kenjim.com) zet.home.arpa + │ git push │ │ + ├─────────────────────────────────►│ │ + │ │ git pull │ + │ ├───────────────────────────►│ + │ │ │ docker compose up -d +``` + +## Structure + +``` +www.kenjim.com/ +├── docker-compose.yml # runs nginx:alpine on host port 8080 +└── html/ # web root — edit files here + └── index.html +``` + +All files under `html/` are served directly. No build step required for static content. + +## Running on zet + +```bash +cd ~/workspace/src/personal/www.kenjim.com + +docker compose up -d # start +docker compose down # stop +docker compose logs -f # watch logs +``` + +## Deploying Changes + +On zet after pushing from Mac: + +```bash +cd ~/workspace/src/personal/www.kenjim.com +git pull +# nginx:alpine picks up file changes immediately via volume mount — no restart needed +``` + +If `docker-compose.yml` itself changes, recreate the container: + +```bash +docker compose up -d +``` + +## How It Connects to nginx + +The container listens on host port `8080`. The nginx reverse proxy on zet routes `https://www.kenjim.com` → `http://127.0.0.1:8080`. + +See `~/workspace/src/personal/appa-net/zet.home.arpa/nginx/kenjim.conf` for the nginx config. + +## Mac Setup (first time) + +```bash +# Clone the repo on your Mac +git clone http://kenjim@git.kenjim.com/kenjim/www.kenjim.com.git +cd www.kenjim.com + +# Edit html/ files, then: +git add . +git commit -m "your message" +git push +``` diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..aeee399 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +services: + www: + image: nginx:alpine + container_name: www-kenjim + ports: + - "8080:80" + volumes: + - ./html:/usr/share/nginx/html:ro + restart: always diff --git a/html/index.html b/html/index.html new file mode 100644 index 0000000..5d2884c --- /dev/null +++ b/html/index.html @@ -0,0 +1,35 @@ + + + + + + www.kenjim.com + + + +
+

Hello World

+

www.kenjim.com

+
+ +