Simplify compose, update privacy notice and demo screenshots
- Compose publishes 3001:3001 only (Nginx Proxy Manager fronts it), defaults filled from the CV details, CV mounted, token read from the gitignored root .env - Privacy notice now covers Cloudflare and its bot/AI/scraping protection - Real bullet points in the experience section - Recaptured the portfolio demo screenshots Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
No files matched your search
@@ -17,12 +17,11 @@ Everything else (About text, experience, projects, skills...) is in `src/data/*.
|
||||
```
|
||||
docker compose up -d --build # or: npm run docker
|
||||
```
|
||||
The container is non-root, read-only, capability-less and resource-capped, and bound
|
||||
to 127.0.0.1 (put a TLS proxy in front, or set `TLS_CERT`/`TLS_KEY` / `FORCE_HTTPS`).
|
||||
Values are passed at run time, so the same image works for any identity. Keep the
|
||||
committed compose file generic and put real values in a gitignored
|
||||
`docker-compose.override.yml`, or edit the environment block directly.
|
||||
To ship a CV, set `VITE_CV_URL` and uncomment the `volumes:` line (the CV is never baked in).
|
||||
The container is non-root, read-only, capability-less and resource-capped. It publishes
|
||||
port 3001 only; Nginx Proxy Manager sits in front for TLS and the public side.
|
||||
The compose defaults are the public details from the CV. Put the one secret, `GITHUB_TOKEN`,
|
||||
in a gitignored root `.env` file (compose reads it automatically), never in the compose file.
|
||||
The CV is mounted from `public/CV` at run time and is never baked into the image.
|
||||
|
||||
## Without Docker
|
||||
```
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
# copied into the image (.dockerignore), so nothing personal lives in it.
|
||||
# Running without Docker (npm run dev / npm start) reads secrets/.env instead.
|
||||
#
|
||||
# Edit the placeholders here, or keep this file generic and put your real
|
||||
# values in a gitignored docker-compose.override.yml (compose merges it in
|
||||
# automatically) or in a root .env file (compose substitutes ${VARS} from it).
|
||||
# The defaults below are the public details from the CV. The one secret,
|
||||
# GITHUB_TOKEN, is never written here: put it in a gitignored root .env file
|
||||
# (compose substitutes ${VARS} from it), or in docker-compose.override.yml.
|
||||
services:
|
||||
portfolio:
|
||||
build: .
|
||||
@@ -14,21 +14,21 @@ services:
|
||||
container_name: portfolio
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
# Localhost only; put a TLS reverse proxy in front for public access.
|
||||
- "${BIND:-127.0.0.1}:${HOST_PORT:-3001}:3001"
|
||||
# Nginx Proxy Manager handles TLS and the public side, so this is a plain mapping.
|
||||
- "3001:3001"
|
||||
environment:
|
||||
VITE_NAME: "${VITE_NAME:-Your Name}"
|
||||
VITE_EMAIL: "${VITE_EMAIL:-}" # empty hides the email button
|
||||
VITE_GITHUB_USER: "${VITE_GITHUB_USER:-your-github-username}"
|
||||
VITE_LINKEDIN: "${VITE_LINKEDIN:-}" # empty hides the LinkedIn button
|
||||
VITE_UNIVERSITY: "${VITE_UNIVERSITY:-Your University}"
|
||||
VITE_CV_URL: "${VITE_CV_URL:-}" # e.g. /CV/your-cv.pdf; empty hides CV buttons
|
||||
GITHUB_TOKEN: "${GITHUB_TOKEN:-}" # read-only PAT; empty disables the contribution graph
|
||||
VITE_NAME: "${VITE_NAME:-Mudabbir}"
|
||||
VITE_EMAIL: "${VITE_EMAIL:-mudabbira.uk@gmail.com}" # empty hides the email button
|
||||
VITE_GITHUB_USER: "${VITE_GITHUB_USER:-mudabbir-ahmad}"
|
||||
VITE_LINKEDIN: "${VITE_LINKEDIN:-https://www.linkedin.com/in/mudabbir-ahmad-4245a0281}" # empty hides the LinkedIn button
|
||||
VITE_UNIVERSITY: "${VITE_UNIVERSITY:-Kingston University}"
|
||||
VITE_CV_URL: "${VITE_CV_URL:-/CV/my_cv.pdf}" # e.g. /CV/your-cv.pdf; empty hides CV buttons
|
||||
GITHUB_TOKEN: "${GITHUB_TOKEN:-}" # read-only PAT, set in the gitignored root .env; empty disables the contribution graph
|
||||
ALLOWED_ORIGIN: "${ALLOWED_ORIGIN:-http://localhost:3001}"
|
||||
FORCE_HTTPS: "${FORCE_HTTPS:-false}"
|
||||
# Only if you set VITE_CV_URL: the CV is never baked into the image.
|
||||
# volumes:
|
||||
# - ./public/CV:/app/dist/CV:ro
|
||||
volumes:
|
||||
- ./public/CV:/app/dist/CV:ro
|
||||
read_only: true
|
||||
tmpfs: [/tmp]
|
||||
cap_drop: [ALL]
|
||||
|
||||
|
Before Width: | Height: | Size: 410 KiB After Width: | Height: | Size: 409 KiB |
|
Before Width: | Height: | Size: 131 KiB After Width: | Height: | Size: 132 KiB |
|
Before Width: | Height: | Size: 124 KiB After Width: | Height: | Size: 128 KiB |
|
Before Width: | Height: | Size: 393 KiB After Width: | Height: | Size: 394 KiB |
@@ -49,11 +49,14 @@ function PrivacyNote() {
|
||||
<div id="privacy-panel" className="privacy-panel">
|
||||
<p>
|
||||
<strong>{profile.name}</strong>{profile.email && ` (${profile.email})`} is the data controller for this
|
||||
site. No cookies, analytics, or third-party trackers are used, and nothing you do here
|
||||
is logged or stored on a server. Your light/dark theme choice is saved in your
|
||||
browser's local storage only and is never transmitted anywhere. The Contributions
|
||||
graph above is fetched by this site's own server, not your browser, so GitHub never
|
||||
sees you as a visitor. If you email me, I'll only use your details to reply.
|
||||
site. It sits behind Cloudflare, which handles traffic to it and applies bot, AI-crawler
|
||||
and scraping protection. In doing so Cloudflare may process your IP address and
|
||||
set its own security cookies; I don't receive or manage any of that, only the
|
||||
aggregate statistics Cloudflare provides. I run no analytics, advertising or
|
||||
tracking of my own, and nothing you do here is stored by the site itself. Your light/dark
|
||||
theme choice is saved in your browser's local storage only and is never transmitted.
|
||||
The Contributions graph is fetched by this site's own server, not your browser, so GitHub
|
||||
never sees you as a visitor. If you email me, I'll only use your details to reply.
|
||||
{profile.email && ` Under UK GDPR you can request access to or deletion of any data held about you by emailing ${profile.email}.`}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -928,7 +928,6 @@ main {
|
||||
color: var(--ink-soft);
|
||||
}
|
||||
|
||||
.timeline-points li::before,
|
||||
.project-features li::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
@@ -2281,3 +2280,15 @@ html.has-custom-cursor * {
|
||||
text-transform: uppercase;
|
||||
vertical-align: 2px;
|
||||
}
|
||||
|
||||
/* experience uses real bullets; project lists keep the short dash */
|
||||
.timeline-points li::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 4px;
|
||||
top: 0.72em;
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent);
|
||||
}
|
||||