curl -fsSL https://pgp.mongodb.com/server-7.0.asc | gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor
echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] http://repo.mongodb.org/apt/debian bullseye/mongodb-org/7.0 main" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list
# Optional: if Status is not running (error 14) it may be that you need to remove socket lock (permissions are now incorrect)
cd /tmp
rm -rf mongodb*.sock
module.exports =
{
/////////////////////////////////////
// Configuration for D-DOK server
// All of these values may be overridden by setting environment variables
/////////////////////////////////////
// NODE_ENV: 'development' | 'production' (default)
NODE_ENV: 'production',
// PORT: web server port (default 80)
PORT: 3000,
// PROXY: trust reverse proxy when setting secure cookies (via the "X-Forwarded-Proto" header) (default false)
PROXY: false,
/////////////////////////////////////
// Logging
/////////////////////////////////////
// LOG_ENABLED: true (default) | false
LOG_ENABLED: true,
// LOG_LEVEL: 'error' | 'warn' | 'info' (default) | 'verbose' | 'debug' | 'silly'
LOG_LEVEL: 'verbose',
/////////////////////////////////////
// D-DOK Database
/////////////////////////////////////
// DESS_LINK_ENABLED: flag if D-DOK uses D-ESS database
DESS_LINK_ENABLED: true,
// DATABASE_TYPE: 'mysql' (required)
DATABASE_TYPE: 'mysql',
// DATABASE_USERNAME: (required)
DATABASE_USERNAME: 'root',
// DATABASE_PASSWORD: (required)
DATABASE_PASSWORD: 'xxxxxxxx',
// DATABASE_HOST: hostname or IP address of the database server (required)
DATABASE_HOST: 'localhost',
// DATABASE_PORT: port to which the database server is bound (required)
DATABASE_PORT: 3306,
// DATABASE_NAME: name of the database (required)
DATABASE_NAME: 'xxxxxxxx',
/////////////////////////////////////
// Mongo Database
/////////////////////////////////////
// MONGO_DATABASE_USERNAME: (required)
MONGO_DATABASE_USERNAME: 'ddok',
// MONGO_DATABASE_PASSWORD: (required)
MONGO_DATABASE_PASSWORD: 'xxxxxxxx',
// MONGO_DATABASE_HOST hostname or IP address of the database server (required)
MONGO_DATABASE_HOST: '127.0.0.1',
// MONGO_DATABASE_PORT: port to which the database server is bound (required)
MONGO_DATABASE_PORT: 27017,
// MONGO_DATABASE_NAME: name of the database (required)
MONGO_DATABASE_NAME: 'ddok',
/////////////////////////////////////
// Active Directory (LDAP) Authentication
/////////////////////////////////////
// AD_ENABLED: Active Directory auth enabled
AD_ENABLED: true,
// AD_URL: URL of the ldap server (required)
AD_URL: 'ldaps://DC1.xxxxxxxx.network',
// AD_BIND_DN: username that will be used to do the searching and request (required)
AD_BIND_DN: 'DC=bab,DC=network',
// AD_BIND_USER: username for LDAP bind (required)
AD_BIND_USER: 'noreply@xxxxxxxx.network',
// AD_BIND_PASSWORD: password for LDAP bind (required)
AD_BIND_PASSWORD: 'xxxxxxxx',
// AD_USERNAME_ATTRIBUTE: Username attribute
AD_USERNAME_ATTRIBUTE: 'sAMAccountName',
// AD_SEARCH_FILTER: search filter for user nodes. {{username}} is posted to LDAP (required)
AD_SEARCH_FILTER: '(sAMAccountName={{username}})',
// AD_GROUP_FILTER: search filter for group nodes.
AD_GROUP_FILTER: 'OU=Guest,DC=xxxxxxxx,DC=network',
/////////////////////////////////////
// OpenID Connect (OIDC) Authentication
/////////////////////////////////////
// OIDC_ENABLED: OIDC auth enabled
OIDC_ENABLED: true,
// OIDC_BUTTON_SHOW: Show button on login page
OIDC_BUTTON_SHOW: true,
// OIDC_BUTTON_TEXT: Text to show on login page button
OIDC_BUTTON_TEXT: 'Mit Keycloak Anmelden',
// OIDC_CLIENT_SECRET: secret application password in OIDC server
OIDC_CLIENT_SECRET: 'xxxxxxxx',
// OIDC_CLIENT_ID: public client id in OIDC server
OIDC_CLIENT_ID: 'dess',
// OIDC_ISSUER: OIDC Issuer URL
OIDC_ISSUER: 'https://sso.xxxxxxxx.at/realms/xxxxxxxx',
/////////////////////////////////////
// SMTP Email server (optional)
/////////////////////////////////////
// EMAIL_ENABLED: Email enabled
EMAIL_ENABLED: true,
// EMAIL_USERNAME: SMTP server username
EMAIL_USERNAME: 'noreply@xxx.network',
// EMAIL_PASSWORD: SMTP server password
EMAIL_PASSWORD: 'xxxxxxxx',
// EMAIL_FROM: Email address
EMAIL_FROM: 'noreply@xxx.network',
// EMAIL_HOST: hostname or IP address of the SMTP server
EMAIL_HOST: 'mail.xxx.network',
// EMAIL_PORT: port to which the SMTP server is bound
EMAIL_PORT: 587,
// EMAIL_SECURE: if true the connection will use TLS when connecting to server.
// If false (the default) then TLS is used if server supports the STARTTLS extension.
// In most cases set this value to true if you are connecting to port 465.
// For port 587 or 25 keep it false
EMAIL_SECURE: false,
// TEXT and HTML templates for email notifications
// {administrator} - substituted with name of user who has triggered the notification "Surname, Firstname"
// {dateTime} - substituted with formatted datetime of the event "DD.MM.YYYY HH:mm:ss"
// {projectName} - substituted with name of the project
// {publicationName} - substituted with name of the publication
// {fileNames} - substituted with comma separated list of added file names
EMAIL_ADD_PUBLICATION_NOTIFICATION_SUBJECT: 'D-DOK Notifikation: Neue Publikation',
EMAIL_ADD_PUBLICATION_NOTIFICATION_TEXT: 'Eine neue Publikation wurde von {administrator} am {dateTime} erstellt.',
EMAIL_ADD_PUBLICATION_NOTIFICATION_HTML: '{projectName}<br>Eine neue Publikation wurde von <b>{administrator}</b> am <b>{dateTime}</b> erstellt.<br>{publicationName}',
EMAIL_ADD_PUBLICATION_PDF_NOTIFICATION_SUBJECT: 'D-DOK Notifikation: Neue Publikation PDF',
EMAIL_ADD_PUBLICATION_PDF_NOTIFICATION_TEXT: 'Eine neue Publikation PDF wurde von {administrator} am {dateTime} hochgeladen.',
EMAIL_ADD_PUBLICATION_PDF_NOTIFICATION_HTML: '{projectName}<br>Eine neue Publikation PDF wurde von <b>{administrator}</b> am <b>{dateTime}</b> hochgeladen.<br>{publicationName}',
EMAIL_USER_ADD_PROJECT_ADMIN_NOTIFICATION_SUBJECT: 'D-DOK Notifikation: Ihnen wurde die Berechtigung eines Projektadministrators erteilt',
EMAIL_USER_ADD_PROJECT_ADMIN_NOTIFICATION_TEXT: 'Sie wurden von {administrator} am {dateTime} zum Projektadministrator für das Projekt {projectName} ernannt.',
EMAIL_USER_ADD_PROJECT_ADMIN_NOTIFICATION_HTML: '{projectName}<br>Sie wurden von <b>{administrator}</b> am <b>{dateTime}</b> zum Projektadministrator ernannt.',