The signal can only be used on the main thread and not the flask sub process one. Signed-off-by: Reed Wade <firstname.lastname@example.org>
|6 months ago|
|_static||1 year ago|
|contrib||1 year ago|
|emails||2 years ago|
|fosspay||6 months ago|
|scripts||2 years ago|
|templates||6 months ago|
|.gitignore||5 years ago|
|LICENSE||5 years ago|
|Makefile||1 year ago|
|README.md||6 months ago|
|app.py||6 months ago|
|config.ini.example||1 year ago|
|cronjob.py||1 year ago|
|invoice||2 years ago|
|requirements.txt||5 years ago|
Donation collection for FOSS groups and individuals.
It works for individuals (like me) and it works for organizations. Expect to spend about an hour or two setting up everything and then you're good to go.
For support, visit #cmpwn on irc.freenode.net or file a GitHub issue.
You will need a number of things set up before you start:
Install these things:
You're responsible for setting up PostgreSQL yourself. Prepare a connection string for later.
Clone the git repository on the server that you want to host fosspay on:
git clone https://git.sr.ht/~sircmpwn/fosspay cd fosspay
Install the Python packages:
sudo pip3 install -r requirements.txt
Compile the static assets:
Create a configuration file:
cp config.ini.example config.ini
config.ini to your liking. Then, you can run the following to start up
the development server:
Log into http://your-domain:5000, and you will receive further instructions.
Once you have everything configured, you will need to switch from the dev server
into something more permanent. Install gunicorn on your server and use the
systemd unit provided in
contrib/. You will also probably want to run this
through nginx instead of directly exposing gunicorn to the web, see
contrib/nginx.conf. Neither the nginx configuration or the systemd unit are
immediately ready to use - read them and change them to suit your needs.
Using nginx or something like it is necessary for SSL support, and you must serve your site with https for Stripe to work.