This is the web portal for Snikket Chat services. To learn more about what Snikket Chat services are, check the website.
Go to file
2025-06-05 17:46:05 +01:00
.github/workflows Github: Use flake8 target 2025-06-05 17:32:34 +01:00
docker Add policy URLs and contact addresses for instances in the relevant places 2023-10-25 16:18:12 +01:00
docs Update readme screenshot 2021-02-03 18:30:38 +01:00
snikket_web prosodyclient: Fixes to satisfy mypy 2025-06-05 17:46:05 +01:00
tools Add 'share' button for browsers supporting Web Share API 2024-04-30 10:48:51 +01:00
.dockerignore Add dockerignore to avoid sending the virtual environment to Docker 2021-01-17 20:11:26 +01:00
.envrc 12-factorize application a little 2021-01-17 20:11:26 +01:00
.gitignore Include .pot file in repository 2021-01-23 12:53:29 +01:00
babel.cfg Unbreak translation text extraction 2022-05-30 20:51:37 +02:00
build-requirements.txt Switch to sassc for CSS building 2023-08-02 22:35:32 +02:00
Dockerfile Install as many packages as possible from Debian 2023-10-04 23:27:05 +02:00
example.env Fix environment example 2021-01-22 15:29:58 +01:00
example.env.py 12-factorize application a little 2021-01-17 20:11:26 +01:00
LICENSE Initial commit 2020-02-17 16:10:42 +00:00
Makefile Makefile: Add lint, format (black), flake8 and mypy targets 2025-06-05 17:29:44 +01:00
mypy.ini Update about page 2021-01-21 18:09:57 +01:00
README.md 12-factorize application a little 2021-01-17 20:11:26 +01:00
requirements.txt Fix python requirements to actually work 2024-01-16 16:52:47 +01:00

Snikket Web Portal

Screenshot of the app

Development quickstart

$ direnv allow
$ cp example.env .env
$ $EDITOR .env  # to adapt the configuration to your needs
$ pip install -r requirements.txt
$ pip install -r build-requirements.txt
$ make
$ quart run

Configuring

Purely via environment variables

For a list of required and understood environment variables as well as their semantics, please refer to example.env.

Via python code

In addition to statically setting environment variables, it is possible to initialise the environment variables in a python file. To do that, pass the path to the python file as SNIKKET_WEB_PYENV environment variable.

The python file is evaluated before further environment variable processing takes place. Every name defined in that file which begins with an upper case ASCII letter is included in the processing of environment variables for configuration purposes.

For a (non-productive) example of such a file, see example.env.py.