SafeHavenMaps / safehaven

An open-source solution to create collaborative maps
GNU General Public License v3.0
7 stars 0 forks source link
maps self-hosted

SafeHaven Banner

An open-source project to create a map of safe spaces for people in need.

Deploy

We provide docker images that are ready to deploy SafeHaven. You can find the releases in the packages view of the SafeHavenMaps organisation.

Pre-requisites

Prepare the database

Create a database:

CREATE DATABASE safehaven;

SafeHaven leverages PostgreSQL's full text search capabilities. You can help the indexer by setting a locale on the database:

ALTER DATABASE safehaven SET default_text_search_config = 'pg_catalog.french';

Configure

SafeHaven is initialized with a default user named admin with a random password, which can be retrieved from backend logs. The administration panel will provide you with the ability to create new users and manage the application.

To learn more about the configuration, you can visit our documentation website.

Start the docker container:

docker run -d \ 
  -e SH__DATABASE__URL="postgresql://user:password@host/safehaven" \  # Set the database path
  -e SH__DATABASE__POOL_SIZE="5" \                                    # Set the number of connections to the database
  -e SH__SECURE_COOKIE="true" \                                       # Activate if you have a reverse proxy with HTTPS.
  -e SH__TOKEN_SECRET="SecretForValidatingAngSigningTokens" \         # Set a secret that will be used to sign sessions
  ghcr.io/safehavenmaps/safehaven:1.0.0                               # Change latest to the latest version, check the releases

Contributing

We welcome contributions from everyone.

To spin up a development environment, follow these steps:

Pre-requisites:

Steps: