Skip to main content

FlaskBump

$ curl -L bump.area51.jb2170.com
1989
$ curl -L bump.area51.jb2170.com
1990
$ curl -L bump.area51.jb2170.com
1991

A simple Flask app that counts the number of requests to it, a visitor count perchance

Installing

I run this as a reverse proxy via Apache. Example systemd unit files and friends are in daemon-files of this repo

  • create a venv, say in ~/.local/var/lib/FlaskBump, and source it
  • $ pip install FlaskBump gunicorn
  • place the systemd unit file and shell script into the correct folders, for example I use ~/.local/var/lib/systemd/{etc/user,usr/bin}
  • place the .htaccess file in the public http folder corresponding to the domain you want to serve the app from
  • adjust the unix socket path in the .htaccess file and .service unit
  • copy the default state.json file from daemon-files into the app's working directory (as specified as WorkingDirectory in the .service file)

Make sure you have the headers, proxy, and proxy_http modules enabled for Apache!

You can probably figure out the rest, enabling / starting the systemd service...

Metadata

Release files for FlaskBump 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for FlaskBump 1.0.0
File Size Uploaded
flaskbump-1.0.0.tar.gz 39.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for FlaskBump 1.0.0
File Interpreter ABI Platform
FlaskBump-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 67.2 kB

Release files / flaskbump-1.0.0.tar.gz

Download URL flaskbump-1.0.0.tar.gz
Size 39.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a6023dd066392bdcc4edba0d3ee0d9ac552df51c84f0c90c9b4518503822aa37
BLAKE2b-256 checksum
How to use checksums
04f19b95579978bdd2d92167476892a868ee9086c91fe12c193151ade8d38be2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.7

Release files / FlaskBump-1.0.0-py3-none-any.whl

Download URL FlaskBump-1.0.0-py3-none-any.whl
Size 27.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
71553be6985bce9aff8824008b566889024480f7b39887b768b718bde8b3b30d
BLAKE2b-256 checksum
How to use checksums
39c1f22beb7632d54f826da1af400409c42a213569b860c3870e88d239b5df32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.7

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page