A simple Flask app that counts the number of requests to it, a visitor count perchance
Project description
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
.htaccessfile in the public http folder corresponding to the domain you want to serve the app from - adjust the unix socket path in the
.htaccessfile and.serviceunit - copy the default
state.jsonfile fromdaemon-filesinto the app's working directory (as specified asWorkingDirectoryin the.servicefile)
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...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6023dd066392bdcc4edba0d3ee0d9ac552df51c84f0c90c9b4518503822aa37
|
|
| MD5 |
77a4cac9e82457c0b40839113f3bd625
|
|
| BLAKE2b-256 |
04f19b95579978bdd2d92167476892a868ee9086c91fe12c193151ade8d38be2
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71553be6985bce9aff8824008b566889024480f7b39887b768b718bde8b3b30d
|
|
| MD5 |
5276906e051fbff789300e24c3cce64d
|
|
| BLAKE2b-256 |
39c1f22beb7632d54f826da1af400409c42a213569b860c3870e88d239b5df32
|