inventaire: add map tiles, analytics, and media storage configuration
This commit is contained in:
20
dotenv
20
dotenv
@@ -21,6 +21,26 @@ MAILER_SMTP_PORT=587
|
||||
MAILER_SMTP_USERNAME=your_username_on_smtp.example.org
|
||||
MAILER_SMTP_PASSWORD=your_password_on_smtp.example.org
|
||||
|
||||
# Required to use MapBox tiles within leaflet maps
|
||||
# See https://console.mapbox.com/account/access-tokens/
|
||||
MAP_TILES_ACCESS_TOKEN='youraccesstoken'
|
||||
|
||||
# [OPTIONAL] Setup Matomo analytics https://matomo.org/
|
||||
MOTOMO_ENABLED=false
|
||||
MOTOMO_ENDPOINT=https://yourmatomoendpoint/matomo.php
|
||||
MOTOMO_IDSITE=1
|
||||
MOTOMO_REC=1
|
||||
|
||||
MEDIA_STORAGE_MODE=local
|
||||
# Set MEDIA_STORAGE_MODE=swift and the following variables
|
||||
# to store users and groups images in an OpenStack Swift container
|
||||
SWIFT_USERNAME=customizedInLocalConfig
|
||||
SWIFT_PASSWORD=customizedInLocalConfig
|
||||
SWIFT_AUTH_URL=https://openstackEndpointToCustomize
|
||||
SWIFT_PUBLIC_URL=https://swiftPublicURL
|
||||
SWIFT_TENANT_NAME=12345678
|
||||
SWIFT_REGION=SBG-1
|
||||
|
||||
########
|
||||
# Everything below is a default configuration
|
||||
# Modify if you know what you are doing
|
||||
|
||||
@@ -17,7 +17,6 @@ module.exports = {
|
||||
orgName: '${ORG_NAME}',
|
||||
orgUrl: '${ORG_URL}',
|
||||
contactAddress: '${CONTACT_ADDRESS}',
|
||||
|
||||
db: {
|
||||
username: '${COUCHDB_USER}',
|
||||
password: '${COUCHDB_PASSWORD}',
|
||||
@@ -37,6 +36,24 @@ module.exports = {
|
||||
},
|
||||
},
|
||||
},
|
||||
mapTilesAccessToken: '${MAP_TILES_ACCESS_TOKEN}',
|
||||
matomo: {
|
||||
enabled: ${MOTOMO_ENABLED},
|
||||
endpoint: '${MOTOMO_ENDPOINT}',
|
||||
idsite: ${MOTOMO_IDSITE},
|
||||
rec: ${MOTOMO_REC},
|
||||
},
|
||||
mediaStorage: {
|
||||
mode: '${MEDIA_STORAGE_MODE}',
|
||||
swift: {
|
||||
username: '${SWIFT_USERNAME}',
|
||||
password: '${SWIFT_PASSWORD}',
|
||||
authUrl: '${SWIFT_AUTH_URL}',
|
||||
publicURL: '${SWIFT_PUBLIC_URL}',
|
||||
tenantName: '${SWIFT_TENANT_NAME}',
|
||||
region: '${SWIFT_REGION}',
|
||||
},
|
||||
},
|
||||
|
||||
}
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user