From 6667426e24bba82ade4702cb8f85849bebec6077 Mon Sep 17 00:00:00 2001 From: wikiapiserver Date: Thu, 25 Jun 2026 12:22:58 +0200 Subject: feat: initial wiki API server with account management - HTTP API with JSON over configurable port (default 8080) - Endpoints: POST /register, POST /login, POST /refresh, GET /health - MariaDB storage with SHA-256 hashed credentials and tokens - Token rotation on login and refresh - Config loaded from config.json (not tracked in git) - Graceful shutdown on SIGINT/SIGTERM - Connection pool (25 max open, 10 idle, 5min max lifetime) --- .gitignore | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitignore (limited to '.gitignore') diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..70367ca --- /dev/null +++ b/.gitignore @@ -0,0 +1,21 @@ +# Build output +*.exe +*.exe~ +*.test +*.out + +# Dependencies +!vendor/ + +# IDE +.idea/ +.vscode/ +*.swp +*.swo + +# OS +.DS_Store +Thumbs.db +# Config (contains secrets) +config.json +database_password -- cgit v1.2.3