Skip to content

entropia/gpn17-badge-notification-server

Repository files navigation

gpn17-badge-notification-server

Setup

  1. Import the postgresql schema schema.sql
  2. Copy the sample settings.py.sample to settings.py
  3. Configure the variables
  4. Run main.py

Virtualenv

You can use python3's virtualenv to deploy the server.

  1. virtualenv .
  2. source bin/activate
  3. pip install -r requirements.txt
  4. Proceed with regular setup

Security

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

Docker

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5