68 lines
1.8 KiB
YAML
68 lines
1.8 KiB
YAML
# Environment variables override values from this file.
|
|
app:
|
|
host: 127.0.0.1
|
|
port: 3000
|
|
|
|
database:
|
|
url: "sqlite:///var/lib/rustpad/db/rustpad.db?mode=rwc"
|
|
max_connections: 8
|
|
|
|
static_dir: /opt/rustpad/static
|
|
files_dir: /var/lib/rustpad/files
|
|
# Optional; bare domains are normalized to HTTPS. Serve or proxy /f/* there.
|
|
# files_public_url: files.note.example.org
|
|
storage_driver: local
|
|
upload_max_size_mb: 20
|
|
guest_upload_enabled: false
|
|
guest_upload_max_size_mb: 5
|
|
asset_cache_max_age_seconds: 600
|
|
file_cache_max_age_seconds: 600
|
|
|
|
registration_enabled: false
|
|
account_confirmation_required: false
|
|
share_confirmation_required: false
|
|
frontend_log_level: warn
|
|
anonymous_access_token_ttl_days: 7
|
|
user_session_ttl_days: 3
|
|
unconfirmed_account_ttl_days: 3
|
|
|
|
authorization:
|
|
type: local
|
|
|
|
# Uncomment for LDAP/AD and set authorization.type to ldap or ad.
|
|
# ldap:
|
|
# url: "ldaps://ldap.example.org:636"
|
|
# starttls: false
|
|
# bind_dn: "cn=rustpad,ou=services,dc=example,dc=org"
|
|
# bind_password: "change-me"
|
|
# base_dn: "ou=people,dc=example,dc=org"
|
|
# user_filter: "(uid={username})"
|
|
# username_attribute: uid
|
|
# email_attribute: mail
|
|
# display_name_attribute: displayName
|
|
# external_id_attribute: entryUUID
|
|
# organization: example
|
|
# email_required: true
|
|
# link_existing_by_email: false
|
|
# tls_verify: true
|
|
# connect_timeout_seconds: 5
|
|
# operation_timeout_seconds: 10
|
|
|
|
# Uncomment to enable SMTP.
|
|
# smtp:
|
|
# host: smtp.example.org
|
|
# port: 587
|
|
# username: rustpad
|
|
# password: "change-me"
|
|
# from: "RustPad <rustpad@example.org>"
|
|
# public_url: "https://pad.example.org"
|
|
|
|
# For S3, set storage_driver: s3 and configure:
|
|
# s3:
|
|
# endpoint: "https://s3.example.org"
|
|
# region: eu-central-1
|
|
# bucket: rustpad
|
|
# access_key: "change-me"
|
|
# secret_key: "change-me"
|
|
# force_path_style: true
|