-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathconfig-example.yaml
More file actions
57 lines (48 loc) · 1.79 KB
/
config-example.yaml
File metadata and controls
57 lines (48 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# LCP Server Configuration - Example
# This file shows how to configure administrator accounts
log_level: "info"
public_base_url: "https://your-lcp-server.com"
port: 8989
# DSN examples:
# SQLite: "sqlite:///data/lcp.db"
# MySQL with Docker secret: "mysql://lcp_user:PASSWORD_PLACEHOLDER@tcp(mysql:3306)/lcpserver"
# (password will be read from /run/secrets/mysql-password if MYSQL_PASSWORD_FILE is set)
# MySQL with direct password: "mysql://user:password@tcp(host:3306)/database"
dsn: "sqlite:///data/lcp.db"
# Basic access configuration for LCP API
access:
username: "lcp_api_user"
password: "lcp_api_password"
# Certificates for license signing
certificate:
cert: "/path/to/cert.pem"
private_key: "/path/to/private_key.pem"
# License configuration
license:
provider: "https://your-lcp-server.com"
profile: "http://readium.org/lcp/basic-profile"
hint_link: "https://your-lcp-server.com/hint"
# License status configuration
status:
fresh_license_link: "https://your-lcp-server.com/license"
allow_renew_on_expired_licenses: true
renew_default_days: 30
renew_max_days: 365
renew_link: "https://your-lcp-server.com/renew"
# Dashboard configuration
dashboard:
excessive_sharing_threshold: 5
limit_to_last_12_months: true
# JWT configuration and administrator accounts
jwt:
# Secret key for signing JWT tokens (CHANGE THIS KEY IN PRODUCTION!)
secret_key: "your-super-secret-jwt-key-change-this-in-production-environment"
# Administrator accounts for dashboard access
# Format: username: password
admin:
laurent: "secret" # Main administrator
alice: "secret" # Secondary administrator
manager: "manager123" # Manager
operator: "op3rat0r!" # Operator
support: "supp0rt_p@ss" # Technical support
resources: "/path/to/resources"