Files
Super-HomeworkManager/config.ini.example
2026-01-05 11:27:37 +09:00

61 lines
1.6 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
; Homework Manager 設定ファイル
; 環境変数が設定されている場合はそちらが優先されます
[server]
; サーバーポート
port = 8080
; デバッグモード (true/false)
debug = true
[database]
; データベースドライバー: sqlite, mysql, postgres
driver = sqlite
; SQLite用設定
path = homework.db
; MySQL/PostgreSQL用設定driverをmysqlまたはpostgresに変更して使用
; host = localhost
; port = 3306
; user = root
; password =
; name = homework_manager
; PostgreSQL例:
; driver = postgres
; host = localhost
; port = 5432
; user = postgres
; password = secret
; name = homework_manager
[session]
; セッション暗号化キー(本番環境では必ず変更してください)
secret = homework-manager-secret-key-change-in-production
[auth]
; 新規ユーザー登録を許可するか (true/false)
; falseにすると登録ページが無効化されます
allow_registration = true
[security]
; HTTPS使用時はtrueに設定Secure cookie属性が有効になります
https = false
; CSRFトークン秘密鍵本番環境では必ず変更してください
csrf_secret = change-this-to-a-secure-random-string
# Enable rate limiting
rate_limit_enabled = true
# Max requests per window
rate_limit_requests = 100
# Window size in seconds
rate_limit_window = 60
#; Trusted proxies (comma separated IP addresses or CIDR)
; trusted_proxies = 127.0.0.1, 10.0.0.0/8
[notification]
; Telegram Bot Token (@BotFatherで取得)
; ユーザーはプロフィール画面でChat IDを設定します
telegram_bot_token =