This is the Django backend for passit.io. It's duty is to:
docker-compose updocker-compose run --rm web ./manage.py migratedocker-compose run --rm web ./manage.py loaddata users groupsGo to localhost:8000/api to view the api.
Just add the worker compose file like docker-compose -f docker-compose.yml -f docker-compose.worker.yml up
docker-compouse run --rm web ./manage.py test
You may submit issues to this repo directly or to the passit meta project here.
All settings can be managed with environment variables.
Passit is not as secure when run without SSL.
IS_DEBUG - Defaults to False. Leave this as default to be secure.SECURE_SSL_REDIRECT Defaults to False. Set this to True if you'd like Django to redirect HTTP to HTTPS for you. This may not work with all load balancers.SECURE_COOKIE - Defaults to True. Only set to False is not using SSLCelery is optional. It is recommended only for large scale deployments like app.passit.io Celery can run tasks like sending email or recording analytics.
CELERY_USE_FOR_EMAIL - Send email using celery. Defaults to False.CELERY_BROKER_URL - Celery broker (like redis). Example: redis://redis:6379/0Piwik requires running celery. Once celery is configured, set the following env vars:
PIWIK_SITE_ID - Your site's piwik ID. Example: 1PIWIK_API_URL - Where you piwik server is hosted. Example: https://your.site.com/piwik.phpPIWIK_TOKEN_AUTH - Your piwik API auth (settings, api) Example: 0000000000PIWIK_TRACK_USER_ID - Set to True to track user ids. Default is False. https://matomo.org/docs/user-id/DJANGO_LOG_LEVEL - Defaults to INFO. Valid settings are 'DEBUG', 'INFO', 'WARNING', 'ERROR', and 'CRITICAL'.Sentry/Raven error handling support is optional and is really only needed for testing and large scale deployments. To enable set the following:
RAVEN_DSN - Set this to enable Sentry error reporting.ERROR_REPORT_DEFAULT - Default for user opt in status for client side error reporting. Set to true to make default behavior to send error reports. Defaults to False because sending any client side data to a server carries some risk.ENVIRONMENT - Note which environment passit is running in (Staging, Production, etc). At this time only sentry makes use of this.CORS_ORIGIN_ALLOW_ALL - Only change this if you understand CORS. Defaults to True to allow web extensions to work with Passit. Setting to False will break web extensions unless you compile them yourself to allow your domain.Content type
Image
Digest
Size
94.8 MB
Last updated
almost 8 years ago
docker pull nightcruisetech/passit-backend