1
0
Fork
You've already forked alertrixnightly
0
the development version of the alertrix service
  • Python 56.7%
  • Dockerfile 15.9%
  • HTML 13.6%
  • CSS 7.7%
  • Shell 6.1%
2024年12月12日 10:03:42 +01:00
data fix: use 'https' as X-Forwarded-Proto instead of the port number 2024年11月13日 16:33:15 +01:00
develop/nginx/conf.d add a synapse instance to the development docker project 2024年08月29日 15:08:48 +02:00
nginx/conf.d add health endpoint to production setup by using nginx 2024年10月16日 19:36:46 +02:00
src set a minimal height for pre elements that have code inside them 2024年12月02日 17:47:59 +01:00
test test: uninstall the matrix-nio library if its most up-to-date source code is mounted as directory anyways 2024年10月29日 09:56:13 +01:00
compose-develop.yml dev: update development matrix instance to v1.120.2 2024年12月07日 14:44:15 +01:00
compose-test.yml test: update synapse to matrixdotorg/synapse:v1.118.0 2024年11月13日 16:38:55 +01:00
docker-compose.yml pin postgres version to 16 2024年10月01日 18:13:28 +02:00
Dockerfile set up automatic testing 2024年08月18日 17:05:47 +02:00
entrypoint.sh migrate the database before starting the application 2024年05月20日 12:11:45 +02:00
LICENSE add LICENSE 2024年05月15日 14:57:45 +02:00
README.md allow the use of docker secrets for DJANGO_SECRET_KEY 2024年09月25日 14:59:25 +02:00
requirements.txt dep: update alertrix to v0.1.0a245001 2024年12月12日 10:03:42 +01:00
test.env test: define DJANGO_SECURE_PROXY_SSL_HEADER_KEY and DJANGO_SECURE_PROXY_SSL_HEADER_VALUE 2024年11月13日 16:38:16 +01:00
test.sh test: use the reverse proxy for alertrix only 2024年10月13日 18:14:48 +02:00

Alertrix

Der Messenger für Einsatzkräfte

Running the service

Starting for the first time

Before starting for the first time, run

sudo docker-compose build

Starting

sudo docker compose -f compose-develop.yml up -d

Stopping

sudo docker compose -f compose-develop.yml down --remove-orphans --volumes

Configuration options

PORT The port you want the docker container to publish

DATA_PATH relative or absolute path for where to store the persistent data

DJANGO_SECRET_KEY optional: a random secret key for django, you should use a file ./DJANGO_SECRET_KEY instead

DJANGO_SECRET_KEY_PATH optional: a custom file path

DJANGO_DEBUG optional: set to 'true', 'True' or '1' to use the debug mode

DJANGO_ALLOWED_HOSTS a comma separated list of allowed host names. Should include at least your domain

DJANGO_CSRF_TRUSTED_ORIGINS a list of hostnames that can generate csrf tokens, defaults to DJANGO_ALLOWED_HOSTS

CSP_IMG_SRC a comma separated list of domains that can provide images to this service. Should include any cdn (and - for now - as many homeserver domains as you can provide).

DATABASE_TYPE take a look at src/alertrix_deployment/settings.py where DATABASES is defined

DATABASE_HOST the databases host name

DATABASE_USER the username used to access the database

DATABASE_PASSWORD the databases password

DATABASE_NAME the databases table name

Secrets

You should store the following secrets in files

file namedescription
DJANGO_SECRET_KEYGenerate using openssl rand --hex 32