Add project image carousel, HTTPS support, and deployment setup

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbertandClaude Sonnet 5.5 committed 2026-10-01 19:07:09 +01:00
1 parent 7d1d2feccb
commit 2e67bc1418
11 files changed
+197 -11

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
# Deploying
## Adding project images
1. Copy the files into `public/images/projects/`.
2. Add the filenames under the project's id in `src/project-images.json`.
Several filenames = carousel.
## First-time server setup
1. `git clone` the repo, then create `secrets/.env` from `.env.example`
(set `VITE_*` values, `GITHUB_TOKEN` (read-only PAT), `ALLOWED_ORIGIN`, and
either `TLS_CERT`/`TLS_KEY` or `FORCE_HTTPS=true` behind a TLS proxy).
2. Put your CV at `public/CV/` (gitignored, so copy it over manually).
3. `npm run deploy` — installs, builds, and starts the server (default port 3001).
## Updating
```
git pull && npm run setup && npm run build
```
then restart the process (systemd/pm2). The token lives only in `secrets/.env`
and is only ever used by `server/index.js`; the browser never sees it.