-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
156 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
# -*- coding:utf-8 -*- | ||
|
||
############################## | ||
## Fichier de configuration ## | ||
############################## | ||
|
||
# Connexion de l'application à la BDD | ||
# Remplacer user, monpassachanger, IPADRESSE (localhost si la BDD est sur le même serveur que l'application), | ||
# eventuellement le port de la BDD et le nom de la BDD avec l'utilisateur qui a des droits de lecture sur les vues de l'atlas (user_pg dans settings.ini) | ||
database_connection = "postgresql://user:monpassachanger@IPADRESSE:5432/databaseName" | ||
|
||
# Recharger automatiquement les templates | ||
TEMPLATES_AUTO_RELOAD = False | ||
|
||
################################# | ||
################################# | ||
### Customisation application ### | ||
################################# | ||
################################# | ||
|
||
# Nom de la structure | ||
STRUCTURE = "Nom de la structure" | ||
|
||
# Nom de l'application | ||
NOM_APPLICATION = "Nom de l application" | ||
|
||
# URL de l'application depuis la racine du domaine | ||
# ex "/atlas" pour une URL: http://mon-domaine/atlas OU "" si l'application est accessible à la racine du domaine | ||
URL_APPLICATION = "" | ||
|
||
################################# | ||
################################# | ||
###### Modules activation ####### | ||
################################# | ||
################################# | ||
|
||
# Enable organism module : organism sheet + organism participation on species sheet | ||
ORGANISM_MODULE = False | ||
|
||
########################### | ||
###### Multilingual ####### | ||
########################### | ||
|
||
# Default language, also used when multilingual is disabled | ||
DEFAULT_LANGUAGE = 'fr' | ||
|
||
# Activate multilingual | ||
MULTILINGUAL = False | ||
|
||
# Available languages | ||
# Don't delete, even if you disable MULTILINGUAL | ||
# You need to add your own default language (DEFAULT_LANGUAGE) here if it's not present | ||
# Check documentation to add another language | ||
LANGUAGES = { | ||
'en': { | ||
'name' : 'English', | ||
'flag_icon' : 'flag-icon-gb', | ||
'months' : ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] | ||
}, | ||
'fr': { | ||
'name' : 'Français', | ||
'flag_icon' : 'flag-icon-fr', | ||
'months' : ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Decembre'] | ||
}, | ||
'it': { | ||
'name' : 'Italiano', | ||
'flag_icon' : 'flag-icon-it', | ||
'months' : ['Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre'] | ||
} | ||
} | ||
|
||
########################### | ||
########################### | ||
###### Cartographie ####### | ||
########################### | ||
########################### | ||
|
||
# Configuration des cartes (centre du territoire, couches CARTE et ORTHO, échelle par défaut...) | ||
MAP = { | ||
'LAT_LONG': [44.7952, 6.2287], | ||
'FIRST_MAP': { | ||
'url' : '//{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', | ||
'attribution' : '© OpenStreetMap', | ||
'tileName' : 'OSM' | ||
}, | ||
'SECOND_MAP' : {'url' :'//a.tile.opentopomap.org/{z}/{x}/{y}.png', | ||
'attribution' : '© OpenStreetMap-contributors, SRTM | Style: © OpenTopoMap (CC-BY-SA)', | ||
'tileName' : 'OTM' | ||
}, | ||
'ZOOM' : 10, | ||
# Pas du slider sur les annees d'observations: 1 = pas de 1 an sur le slider | ||
'STEP': 1, | ||
# Couleur et épaisseur des limites du territoire | ||
'BORDERS_COLOR': '#000000', | ||
'BORDERS_WEIGHT': 3, | ||
'ENABLE_SLIDER': True | ||
} | ||
|
||
########################### | ||
########################### | ||
#### Security Config ##### | ||
########################### | ||
########################### | ||
|
||
SECRET_KEY = 'INSERT_A_RANDOM_SECRET_KEY' |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
services: | ||
atlas: | ||
image: ${GDS_ATLAS_IMAGE} | ||
depends_on: | ||
- postgres | ||
- geonature-backend | ||
environment: | ||
- POSTGRES_DB=${POSTGRES_DB} | ||
- POSTGRES_USER=${POSTGRES_USER} | ||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} | ||
- POSTGRES_HOST=${POSTGRES_HOST:-postgres} | ||
- POSTGRES_PORT= ${POSTGRES_PORT:-5432} | ||
- ATLAS_ALTITUDES=${ATLAS_ALTITUDES:-(0 500 1000 1500 2000 2500 3000 3500 4000)} | ||
- ATLAS_TYPE_TERRITOIRE=${ATLAS_TYPE_TERRITOIRE:-'PEC'} | ||
- ATLAS_TYPE_MAILLE=${ATLAS_TYPE_MAILLE:-'M1'} | ||
- ATLAS_INSTALL_SCHEMA=${ATLAS_INSTALL_SCHEMA:-false} | ||
- ATLAS_RESET_SCHEMA=${ATLAS_RESET_SCHEMA:-false} | ||
- ATLAS_URL_APPLICATION="${GDS_ATLAS_PROTOCOL:-http}://${GDS_ATLAS_HOST}${GDS_ATLAS_PREFIX:-/atlas}" | ||
- ATLAS_APPLICATION_ROOT="${GDS_ATLAS_PREFIX:-/atlas}" | ||
- ATLAS_REMOTE_MEDIAS_URL="${GDS_TAXHUB_PROTOCOL:-http}://${GDS_TAXHUB_HOST}${GDS_TAXHUB_PREFIX:-/taxhub}/" | ||
- ATLAS_TAXHUB_URL="${GDS_TAXHUB_PROTOCOL:-http}://${GDS_TAXHUB_HOST}${GDS_TAXHUB_PREFIX:-/taxhub}" | ||
- ATLAS_REDIMENSIONNEMENT_IMAGE=${ATLAS_REDIMENSIONNEMENT_IMAGE:-true} | ||
- ATLAS_database_connection=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT:-5432}/${POSTGRES_DB} | ||
volumes: | ||
- ${GDS_GEONATURE_ATLAS_CONFIG_DIRECTORY:-./data/apps/atlas/config}:/dist/config | ||
- ${GDS_GEONATURE_ATLAS_CUSTOM_DIRECTORY:-./data/apps/atlas/custom}:/dist/static/custom | ||
labels: | ||
- "traefik.enable=true" | ||
- "traefik.http.routers.atlas.rule=Host(`${GDS_ATLAS_DOMAIN}`) && PathPrefix(`${GDS_ATLAS_PREFIX:-/atlas}`)" | ||
- "traefik.http.routers.atlas.entrypoints=web" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule GeoNature-atlas
added at
be25ae