- HTML 43.3%
- Python 38.8%
- Shell 16%
- JavaScript 1.6%
- Dockerfile 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| deploy | ||
| docker | ||
| frontend | ||
| scripts | ||
| .dockerignore | ||
| .gitignore | ||
| .semgrepignore | ||
| .trivyignore | ||
| app.py | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| docker-compose.website.yml | ||
| env.website.example | ||
| LICENSE | ||
| README.md | ||
| renovate.json | ||
| requirements.txt | ||
| test_app.py | ||
| test_contact_frontend.js | ||
| test_proxy.py | ||
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.