A fava management panel.
If you want to deploy fava on the server, you will find that the fava process may crash frequently. This project is a fava controller that allows you to restart fava in your browser. In addition, this project also added Django-based authentication to Fava.
- Fava restart
- Fava authentication
git clone https://github.com/quewen08/fava-management
cd fava-management
# If you have your own fava and beancount installed, you can just
# pip install django django-revproxy
pip install -r requirements.txt
# Create database
python manage.py migrate
# Create superuser
python manage.py createsuperuser
# This path must be an absolute path
python3 manage.py runserver --fava="your_beancount_entrypoint_file"
See Django documentation for details.
BEANCOUNT_FILE=your_beancount_entrypoint_file gunicorn management.wsgi
See Gunicorn documentation for details.
docker run --rm -v/home/ubuntu/bean:/bean -p8000:8000 -eBEANCOUNT_FILE=/bean/main.bean -eUSERNAME=admin -ePASSWORD=12345678 -eCSRF_TRUSTED_ORIGINS="https://domain1.com,https://domain2.com" -it quewen08/fava-management
Try them:
- https://github.com/sdonk/django-admin-ip-restrictor/
- https://github.com/django-otp/django-otp
- https://github.com/volrath/django-captcha-admin
The MIT License