Commit graph

11 commits

Author SHA1 Message Date
miloschwartz
67ba225003
add statistics 2025-08-14 17:06:07 -07:00
Adrian Astles
69baa6785f feat: Add setup token security for initial server setup
- Add setupTokens database table with proper schema
- Implement setup token generation on first server startup
- Add token validation endpoint and modify admin creation
- Update initial setup page to require setup token
- Add migration scripts for both SQLite and PostgreSQL
- Add internationalization support for setup token fields
- Implement proper error handling and logging
- Add CLI command for resetting user security keys

This prevents unauthorized access during initial server setup by requiring
a token that is generated and displayed in the server console.
2025-08-03 21:17:18 +08:00
Owen
4d7e25f97b
Complete migrations 2025-07-28 17:22:53 -07:00
Fernando Rodrigues
9e87c42d0c
add shebangs to migration and server scripts
In NixOS, we wrap these files in a bash script to allow users to just run them as normal executables, instead of calling them as arguments to Node.JS. In our build scripts, we just add the shebang after the files have been compiled, but adding it upstream will allow all Pangolin users to just run ./server.mjs to start their Pangolin instances.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-07-27 13:10:18 +10:00
Owen
963bc5f0bc
Add migrations to the callers 2025-07-15 15:59:37 -07:00
miloschwartz
acf25e8ad7
Merge branch 'dev' into clients-pops 2025-06-19 16:34:06 -04:00
miloschwartz
58ba0d07b0
add migration to set trust_proxy to 1 if it exists in config 2025-06-19 12:08:06 -04:00
miloschwartz
72d8ad3204
disable migrations 2025-06-16 15:23:28 -04:00
miloschwartz
af98610d0d
fix migration number and add allowed_headers migration 2025-06-04 17:15:11 -04:00
Owen
27a0df4ed4
Add migration for 1.4.0 2025-06-04 15:16:42 -04:00
miloschwartz
2cca561e51
support postgresql as database option 2025-06-04 12:02:07 -04:00
Renamed from server/setup/migrations.ts (Browse further)