This commit is contained in:
2025-08-10 10:31:10 -04:00
commit db767dcabc
26 changed files with 8170 additions and 0 deletions

37
config.toml.example Normal file
View File

@@ -0,0 +1,37 @@
[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"