[codimd] Move configuration

This commit is contained in:
Alexandre Iooss 2019-07-25 09:30:35 +02:00
parent bad3ac80f9
commit bcfd8b4a17
No known key found for this signature in database
GPG key ID: 6C79278F3FCDCC02
2 changed files with 23 additions and 24 deletions

View file

@ -6,9 +6,9 @@ services:
# You need to migrate the Database to the new PostgreSQL version # You need to migrate the Database to the new PostgreSQL version
image: postgres:9.6-alpine image: postgres:9.6-alpine
environment: environment:
- POSTGRES_USER=codimd POSTGRES_USER: codimd
- POSTGRES_PASSWORD=codimdpass POSTGRES_PASSWORD: codimdpass
- POSTGRES_DB=codimd POSTGRES_DB: codimd
volumes: volumes:
- ./data_db:/var/lib/postgresql/data - ./data_db:/var/lib/postgresql/data
restart: always restart: always
@ -20,8 +20,23 @@ services:
- "VERSION=1.4.0" - "VERSION=1.4.0"
- "CODIMD_REPOSITORY=https://github.com/codimd/server.git" - "CODIMD_REPOSITORY=https://github.com/codimd/server.git"
environment: environment:
# DB_URL is formatted like: <databasetype>://<username>:<password>@<hostname>/<database> DEBUG: false
- CMD_DB_URL=postgres://codimd:codimdpass@database:5432/codimd CMD_DB_URL: postgres://codimd:codimdpass@database:5432/codimd
CMD_URL_ADDPORT: false
CMD_EMAIL: false
CMD_DOMAIN: codimd.auro.re
CMD_PROTOCOL_USESSL: true
CMD_USECDN: false
CMD_ALLOW_FREEURL: true
CMD_LDAP_URL: ldap://10.128.0.11
CMD_LDAP_BINDDN: cn=codimd,ou=service-users,dc=auro,dc=re
CMD_LDAP_BINDCREDENTIALS: CHANGE ME IN PRODUCTION, I WILL DIFFER !
CMD_LDAP_SEARCHBASE: cn=Utilisateurs,dc=auro,dc=re
CMD_LDAP_SEARCHFILTER: (uid={{username}})
CMD_LDAP_SEARCHATTRIBUTES: uid, givenName, mail
CMD_LDAP_USERIDFIELD: uid
CMD_LDAP_USERNAMEFIELD: uid
CMD_LDAP_PROVIDERNAME: Aurore
ports: ports:
- "8081:3000" - "8081:3000"
volumes: volumes:

View file

@ -1,7 +1,7 @@
{ {
"production": { "production": {
"urlAddPort": false, "urlAddPort": true,
"email": false, "email": true,
"db": { "db": {
"username": "codimd", "username": "codimd",
"password": "codimdpass", "password": "codimdpass",
@ -11,22 +11,6 @@
"dialect": "postgres" "dialect": "postgres"
}, },
"imageUploadType": "filesystem", "imageUploadType": "filesystem",
"domain": "codimd.auro.re", "useSSL": false
"debug": false,
"useSSL": false,
"protocolUseSSL": true,
"useCDN": false,
"ldap": {
"url": "ldap://10.128.0.11",
"bindDn": "cn=codimd,ou=service-users,dc=auro,dc=re",
"bindCredentials": "CHANGE ME IN PRODUCTION, I WILL DIFFER !",
"searchBase": "cn=Utilisateurs,dc=auro,dc=re",
"searchFilter": "(uid={{username}})",
"searchAttributes": ["uid", "givenName", "mail"],
"usernameField": "uid",
"useridField": "uid",
"providerName": "Compte Aurore"
},
"allowFreeURL": true
} }
} }