split dotenv between what must be changed, and okay default variables

This commit is contained in:
jums
2025-02-27 09:49:21 +01:00
committed by maxlath
parent d3467f1945
commit 93d7955d99
2 changed files with 16 additions and 10 deletions

View File

@@ -6,7 +6,7 @@ It is composed of several services:
* **[Inventaire](https://hub.docker.com/r/inventaire/inventaire)**: a Docker image packaging:
* the Inventaire [server](https://github.com/inventaire/inventaire/)
* the [client](https://github.com/inventaire/inventaire-client/)
* the embeded database: LevelDB
* the embedded database: LevelDB
* **[CouchDB](https://hub.docker.com/_/couchdb)**: the primary database used by the Inventaire server
* **[Elasticsearch](https://hub.docker.com/_/elasticsearch)**: a secondary database used by Inventaire for text and geographic search features
* **[Nginx](https://hub.docker.com/_/nginx)**: a reverse proxy with TLS termination thank to Let's Encrypt [certbot](https://hub.docker.com/r/certbot/certbot).

24
dotenv
View File

@@ -1,21 +1,12 @@
# Your website domain name
PUBLIC_HOSTNAME=an-inventaire-site.org
# Root path within docker container
PROJECT_ROOT=/opt/inventaire
# Generic user, to modify only for good reason
COUCHDB_USER=couchdb
# Consider passwords with no less than 32 charracters, for example:
# cat /dev/urandom | tr -dc A-Za-z0-9-_ | head -c 32
COUCHDB_PASSWORD=your_password
NODE_ENV=production
NODE_APP_INSTANCE=federated
# Conventional port for Inventaire server in federated mode
INVENTAIRE_PORT=3016
INSTANCE_NAME='My Inventaire Instance'
# Will be displayed on landing screen
@@ -24,3 +15,18 @@ ORG_URL='https://inventaire.example.org'
# Users receiving emails from the instance can reply to this
CONTACT_ADDRESS='contact@inventaire.example.org'
########
# Everything below is a default configuration
# Modify if you know what you are doing
########
# Root path within docker container
PROJECT_ROOT=/opt/inventaire
NODE_ENV=production
NODE_APP_INSTANCE=federated
# Conventional port for Inventaire server in federated mode
INVENTAIRE_PORT=3016