37 lines
952 B
Plaintext
37 lines
952 B
Plaintext
[server]
|
|
host = "127.0.0.1"
|
|
port = 3000
|
|
static_dir = "static"
|
|
|
|
[auth]
|
|
# Change this secret key in production!
|
|
jwt_secret = "your-secret-key-change-in-production"
|
|
# Session timeout in seconds (24 hours)
|
|
session_timeout = 86400
|
|
|
|
[auth.providers]
|
|
# Enable local username/password authentication
|
|
local = true
|
|
|
|
[auth.providers.oauth]
|
|
# GitHub OAuth configuration (optional)
|
|
# [auth.providers.oauth.github]
|
|
# client_id = "your_github_client_id"
|
|
# client_secret = "your_github_client_secret"
|
|
|
|
# Google OAuth configuration (optional)
|
|
# [auth.providers.oauth.google]
|
|
# client_id = "your_google_client_id"
|
|
# client_secret = "your_google_client_secret"
|
|
|
|
# LDAP authentication (optional)
|
|
# [auth.providers.ldap]
|
|
# server = "ldap://your-ldap-server:389"
|
|
# bind_dn = "cn=admin,dc=example,dc=com"
|
|
# bind_password = "admin_password"
|
|
# user_base = "ou=users,dc=example,dc=com"
|
|
# user_filter = "(uid={})"
|
|
|
|
[database]
|
|
# SQLite database file path
|
|
url = "sqlite:obswiki.db" |