No description
  • HTML 43.3%
  • Python 38.8%
  • Shell 16%
  • JavaScript 1.6%
  • Dockerfile 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
stasaberg d691afc3a7
All checks were successful
Deploy Infrastructure / deploy-services (push) Successful in 18s
Trivy repository security / scan (push) Successful in 23s
Semgrep security / scan (push) Successful in 4m11s
Merge pull request 'Grant db_o11y pg_read_all_data for explain plans' (#124) from feat/db-o11y-explain-access into main
2026-11-29 20:23:30 +01:00
.forgejo/workflows Run functional tests on every pull request 2026-11-29 20:28:53 +02:00
deploy Prepare PostgreSQL statement observability 2026-11-29 20:48:14 +02:00
docker Disable unused Gunicorn control socket 2026-11-29 16:16:00 +02:00
frontend Fix contact retries and proxy client IP handling 2026-11-29 15:33:55 +02:00
scripts Grant db_o11y pg_read_all_data for explain plans 2026-11-29 21:19:52 +02:00
.dockerignore first test run 2025-11-09 14:42:36 +02:00
.gitignore Ignore Python caches and local security reports 2026-11-27 16:17:20 +02:00
.semgrepignore semgrep scanning fixes 2025-12-10 12:15:26 +02:00
.trivyignore update trivy ignore 2025-10-19 16:35:11 +03:00
app.py Fix contact retries and proxy client IP handling 2026-11-29 15:33:55 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2025-10-18 16:42:28 +03:00
CONTRIBUTING.md refactor: consolidate website into Python application 2026-11-29 14:49:45 +02:00
docker-compose.website.yml Fix contact retries and proxy client IP handling 2026-11-29 15:33:55 +02:00
env.website.example Fix contact retries and proxy client IP handling 2026-11-29 15:33:55 +02:00
LICENSE Create LICENSE 2025-10-18 17:07:53 +03:00
README.md refactor: consolidate website into Python application 2026-11-29 14:49:45 +02:00
renovate.json Enable scoped application dependency automerge 2026-11-29 20:11:56 +02:00
requirements.txt Update dependency gunicorn to v27 2026-11-29 13:58:48 +00:00
test_app.py Fix contact retries and proxy client IP handling 2026-11-29 15:33:55 +02:00
test_contact_frontend.js Fix contact retries and proxy client IP handling 2026-11-29 15:33:55 +02:00
test_proxy.py Fix contact retries and proxy client IP handling 2026-11-29 15:33:55 +02:00

My Stupid Website

A terminal-style DevOps playground, served by a single Python application using Flask and Jinja templates. The image-to-ASCII tool runs in the browser; the contact form sends mail via SMTP and uses PostgreSQL for rate limiting and deduplication.

Layout

  • app.py: web routes, security headers and contact form.
  • frontend/: Jinja templates, CSS, JavaScript and other assets.
  • docker/, docker-compose.website.yml: application image and deployment configuration.
  • .forgejo/workflows/: build, security and manual deployment workflows.

Development

python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
python -m unittest -v test_app
python app.py

The site listens on port 8080 by default. The contact form also needs PostgreSQL, SMTP and session settings; see env.website.example. Existing gateway contact rate-limit and deduplication tables are required.

Build and deployment

The Build CI Images workflow can be run manually on a branch. Once it completes, use its completed set-<commit>-<run>-<attempt> image-set tag with Deploy to Dev, selecting the same branch and commit. The workflow verifies the marker and deploys the image by digest. Production deployment remains a separate manual operation from main.

For local Compose usage, copy env.website.example to .env and fill in the values, then run:

docker compose -p website-dev -f docker-compose.website.yml --env-file .env up -d

License

See LICENSE.