# SETA

SETA is a Hebrew website for Romanian human hair sold to salons in Israel: a product catalog, a media gallery and one-click photo and video uploads. Editors work in integration; the owner reviews and publishes to production, with persistent storage and rollback on my Kubernetes cluster.

**Status:** Live · Websites · 2026

- **Local checkout:** `/Users/simon/Developer/seta` (branch `main`, last commit 51bfa6e, 2026-10-30 — Rename project to SETA: namespaces, portal, cookie and docs)
- **Repository:** https://github.com/ShimonNavon/seta
- **On another machine:** `git clone https://github.com/ShimonNavon/seta` — the paths below are Simon's Mac
- **Live:** https://seta.navonsimon.com/
- **Documentation:** https://projects.navonsimon.com/seta.html
- **Where it runs:** namespaces seta (30097) and seta-integration (30098) · Cloudflare -> ubuntu01 nginx

## Stack

Python 3.13 stdlib server, Hebrew RTL HTML/CSS/JS, Kubernetes, local-path PVC

## Start here

- `landing.html` — business homepage, inline CSS/JS
- `admin.html` — login, upload, edit, publish, restore
- `server.py` — dependency-free file server, auth, upload, content promotion
- `build_site.py, build_marketing.py, localize.py` — generate Hebrew pages and the editorial homepage
- `site/` — public output only, no secrets
- `deploy/deploy.py` — deploy to integration by default, promote code to production explicitly
- `tests/test_publishing.py` — auth, upload, environment separation, publishing, Range, restore

## Commands

- **Build site:** `python3 build_site.py`
- **Tests:** `python3 tests/test_publishing.py`
- **Deploy to integration:** `python3 deploy/deploy.py`
- **Promote tested code to production:** `python3 deploy/deploy.py --environment production --promote-code`

## Deploy and where it runs

- Production: namespace seta, NodePort 30097. Integration: namespace seta-integration, NodePort 30098.
- Each environment has its own 5 GiB local-path PVC. Replacing a pod or deploying code does not delete media.
- Traffic: Cloudflare Tunnel -> nginx on ubuntu01 -> NodePort. Edge request limit is 92 MB; video is capped at 90 MB.
- Code is read from ConfigMaps, so only tested code should be promoted.

## Current state

Live on seta.navonsimon.com, with integration-seta.navonsimon.com as the tested preview. The previous domain redirects to the current one. Both environments run the SETA brand. The team image portal is the password-only /admin page: editors upload and replace media in integration, the owner publishes the reviewed content to production. On 2026-10-30 the upload flow was verified end to end (login, PNG upload, cover selection, retitle, removal, cover restore).

## Watch out

- Content publishing (admin panel) and code deployment are separate actions; publishing content never ships code.
- Removing a gallery item does not delete the file immediately; cleanup is a deliberate owner task so restore keeps working.
- Stock images are illustrative, not real inventory; replace them before any campaign.
- The admin panel has no username, only a per-environment password. The integration password is a low-privilege team credential and cannot publish to production; do not reuse it for production.
- No business WhatsApp number is configured yet, so orders fall back to copy-to-message.

## Secrets — locations only, never print values

- .private/ACCESS.txt (mode 600, git-ignored): per-environment admin passwords, including the team integration password.
- .private/admin-access.json (mode 600, git-ignored): password hashes, session secrets and publish token used by deploy and seed scripts.
- .env.local: Higgsfield credential, never deployed.

## Links

- [Documentation](https://seta.navonsimon.com/docs.html)
- [Operations plan](https://seta.navonsimon.com/operations.html)
- [Project page](https://projects.navonsimon.com/seta.html)

## Tags

Hebrew RTL, Media uploads, Staging → production, Kubernetes

---

Brief generated 2026-11-08 from `~/Developer/my-projects/context/`. Canonical URL: https://projects.navonsimon.com/context/seta.md
