- Import the postgresql schema
schema.sql
- Copy the sample
settings.py.sample
tosettings.py
- Configure the variables
- Run
main.py
You can use python3's virtualenv to deploy the server.
virtualenv .
source bin/activate
pip install -r requirements.txt
- Proceed with regular setup
To use this server with your GPN17 Badge you need to configure a reverse proxy (for example nginx) with a working TLS setup. Note that you need at least one of the following ciphers:
TLS_RSA_AES128_CBC_SHA
TLS_RSA_AES256_CBC_SHA
Modify settings.py.docker, will be linked as settings.py in the container
copy the traefik.sample.toml to traefik.toml
cp traefik.sample.toml traefik.toml
Create a SSL cert for your domain (selfsign or LetsEncrypt) - name the file server.pem.
You can use Tools like acme.sh. https://github.com/Neilpang/acme.sh
Place Your Certfiles in the certs/ folder edit the Traefik.toml.
or use the Traefik Build in Let's Encrypt tool. Edit the Traefik.toml: https://docs.traefik.io/configuration/acme/
start the Docker-Stack
docker-compose up -d
start the RPI Docker-Stack
docker-compose -f docker-compose-rpi.yaml up -d
Set Admin password
docker exec -it push_python /usr/src/app/manage_users.py create --admin admin