feat: database
This commit is contained in:
67
.env.example
67
.env.example
@@ -1,39 +1,48 @@
|
||||
# LDAP Configuration
|
||||
LDAP_ADDRESS=ldaps://ldap-server:636
|
||||
LDAP_IMPLEMENTATION=custom
|
||||
LDAP_TIMEOUT=5000
|
||||
LDAP_START_TLS=false
|
||||
LDAP_TLS_SERVER_NAME=ldap-server
|
||||
LDAP_TLS_SKIP_VERIFY=true
|
||||
LDAP_TLS_MINIMUM_VERSION=TLS1.2
|
||||
LDAP_BASE_DN=dc=dcentral,dc=systems
|
||||
LDAP_ADDITIONAL_USERS_DN=cn=users
|
||||
LDAP_USERS_FILTER=(&({username_attribute}={input}))
|
||||
LDAP_ADDITIONAL_GROUPS_DN=cn=groups
|
||||
LDAP_GROUPS_FILTER=(cn=users)
|
||||
LDAP_USER=uid=root,cn=users,dc=dcentral,dc=systems
|
||||
LDAP_PASSWORD=super-secret
|
||||
LDAP_ATTRIBUTE_DISTINGUISHED_NAME=distinguishedName
|
||||
LDAP_ATTRIBUTE_USERNAME=uid
|
||||
LDAP_ATTRIBUTE_MAIL=mail
|
||||
LDAP_ATTRIBUTE_MEMBER_OF=memberOf
|
||||
LDAP_ATTRIBUTE_GROUP_NAME=cn
|
||||
|
||||
# Session Configuration
|
||||
SESSION_SECRET=your-secret-key-change-this-in-production
|
||||
|
||||
# Server Configuration
|
||||
# Application Configuration
|
||||
NODE_ENV=production
|
||||
PORT=3000
|
||||
|
||||
# Database Configuration
|
||||
# Option 1: Use DATABASE_URL (recommended for production)
|
||||
# DATABASE_URL=postgresql://user:password@host:port/database
|
||||
# DATABASE_SSL=true
|
||||
|
||||
# Option 2: Use individual connection parameters (recommended for development)
|
||||
DB_HOST=localhost
|
||||
DB_PORT=5432
|
||||
DB_NAME=linkding
|
||||
DB_USER=postgres
|
||||
DB_PASSWORD=postgres
|
||||
|
||||
# Session Configuration
|
||||
SESSION_SECRET=your-secret-key-change-this-in-production
|
||||
SESSION_NAME=connect.sid
|
||||
TRUST_PROXY=true
|
||||
COOKIE_SECURE=true
|
||||
COOKIE_SAMESITE=none
|
||||
COOKIE_DOMAIN=
|
||||
COOKIE_PATH=/
|
||||
|
||||
# Server Configuration
|
||||
PORT=3000
|
||||
NODE_ENV=production
|
||||
# Proxy Configuration (for reverse proxy like Traefik)
|
||||
TRUST_PROXY=true
|
||||
|
||||
# LDAP Authentication Configuration
|
||||
LDAP_ADDRESS=ldap://ldap.example.com:389
|
||||
LDAP_BASE_DN=dc=example,dc=com
|
||||
LDAP_ADDITIONAL_USERS_DN=
|
||||
LDAP_USER=cn=admin,dc=example,dc=com
|
||||
LDAP_PASSWORD=admin_password
|
||||
LDAP_USERS_FILTER=(&(objectClass=person)(uid={{username}}))
|
||||
LDAP_TIMEOUT=5000
|
||||
|
||||
# LDAP Attribute Mapping
|
||||
LDAP_ATTRIBUTE_USERNAME=uid
|
||||
LDAP_ATTRIBUTE_MAIL=mail
|
||||
LDAP_ATTRIBUTE_DISTINGUISHED_NAME=distinguishedName
|
||||
LDAP_ATTRIBUTE_MEMBER_OF=memberOf
|
||||
|
||||
# LDAP TLS Configuration
|
||||
LDAP_TLS_SKIP_VERIFY=false
|
||||
LDAP_TLS_SERVER_NAME=
|
||||
|
||||
# Chrome/Chromium Configuration (for Puppeteer)
|
||||
CHROME_EXECUTABLE_PATH=/usr/bin/chromium
|
||||
|
||||
Reference in New Issue
Block a user