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...

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flaskbump-1.0.0.tar.gz (39.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

FlaskBump-1.0.0-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

Details for the file flaskbump-1.0.0.tar.gz.

File metadata

  • Download URL: flaskbump-1.0.0.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.7

File hashes

Hashes for flaskbump-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a6023dd066392bdcc4edba0d3ee0d9ac552df51c84f0c90c9b4518503822aa37
MD5 77a4cac9e82457c0b40839113f3bd625
BLAKE2b-256 04f19b95579978bdd2d92167476892a868ee9086c91fe12c193151ade8d38be2

See more details on using hashes here.

File details

Details for the file FlaskBump-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: FlaskBump-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 27.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.7

File hashes

Hashes for FlaskBump-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71553be6985bce9aff8824008b566889024480f7b39887b768b718bde8b3b30d
MD5 5276906e051fbff789300e24c3cce64d
BLAKE2b-256 39c1f22beb7632d54f826da1af400409c42a213569b860c3870e88d239b5df32

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page