diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2c89c32 --- /dev/null +++ b/.gitignore @@ -0,0 +1,36 @@ +TODO.md + +*.exe +*.exe~ +*.dll +*.so +*.dylib +*.test +*.out + +/bin/ +/build/ + +/vendor/ + +.idea/ +.vscode/ +*.swp +*.swo +*~ + +.env +.env.local +.env.*.local + +*.db +*.sqlite +*.sqlite3 + +*.log +logs/ + +.DS_Store +Thumbs.db + +configs/config.local.yaml \ No newline at end of file diff --git a/configs/config.development.yaml b/configs/config.development.yaml deleted file mode 100644 index e69de29..0000000 diff --git a/configs/config.production.yaml b/configs/config.production.yaml deleted file mode 100644 index e69de29..0000000 diff --git a/configs/config.sample.ini b/configs/config.sample.ini new file mode 100644 index 0000000..56c3356 --- /dev/null +++ b/configs/config.sample.ini @@ -0,0 +1,25 @@ +[db] +DBTYPE = mysql +DBHOST = localhost +DBPORT = 3306 # 空欄の場合3306を利用します +DBUSER = likomment +DBPASS = likomment +DBNAME = likomment + +[server] +SERVERHOST = api.example.com +ALLOWORIGIN = *.example.com + +[security] +AI_SPAM_PROTECTION = false +AI_PROVIDER = openai # OpenAIもしくはその互換プロバイダ、Anthropicを指定可能 +AI_ENDPOINT = https://api.openai.com/v1/ # 空欄の場合選択したプロバイダのデフォルトエンドポイントを利用します +AI_APIKEY = +AI_SECRETKEY = +AI_MODEL = +AI_INSTURCTIONS = "あなたは優秀なスパム検出AIです。以下のコメントがスパムかどうかを判定してください。スパムの場合は「SPAM」、スパムでない場合は「NOT_SPAM」とだけ答えてください。" + +CAPTCHA_ENABLED = false +CAPTCHA_TYPE = selfhost # recaptcha_v2, recaptcha_v3, hcaptcha, turnstile, セルフホスト(selfhostと入力) から選択可能 +CAPTCHA_SITEKEY = +CAPTCHA_SECRETKEY = \ No newline at end of file diff --git a/configs/config.yaml b/configs/config.yaml deleted file mode 100644 index e69de29..0000000