first commit

This commit is contained in:
2025-12-30 21:47:39 +09:00
commit 0a37314fa8
47 changed files with 6088 additions and 0 deletions

55
config.ini.example Normal file
View File

@@ -0,0 +1,55 @@
; 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