Commit Graph

32 Commits

Author SHA1 Message Date
Reese Norris
f63d89eb3e only do velocity distance calculation for relevant clients 2025-05-25 14:27:07 -07:00
Reese Norris
bc7a37e490 properly store sendfast state 2025-05-25 14:19:08 -07:00
Reese Norris
7d17066289 properly initialize Client latlon 2025-05-25 14:00:14 -07:00
Reese Norris
2943735be6 add AUTOMATIC entry to server list API for client compatibility 2025-05-25 13:52:19 -07:00
Reese Norris
c0155e78d4 store client coords as a single atomic unit 2025-05-25 11:57:06 -07:00
Reese Norris
2f423ed824 update gitignore 2025-05-25 11:56:38 -07:00
Reese Norris
456503ef84 remove build-and-push.sh v1.0-beta.3 2025-05-25 11:36:54 -07:00
Reese Norris
fa51997b33 support velocity SendFast 2025-05-25 11:33:04 -07:00
Reese Norris
cfab03a90f add license badge 2025-05-24 08:51:00 -07:00
Reese Norris
a4210f836a add LICENSE 2025-05-24 08:47:26 -07:00
Reese Norris
7adfae6a23 make batch file waiter silent 2025-05-23 22:55:46 -07:00
Reese Norris
96b318a5bb silently dismiss flightplan requests when no flightplan exists v1.0-beta.2 2025-05-23 20:59:05 -07:00
Reese Norris
5e1b9ea23d remove ridiculous typo. thanks jetbrains. 2025-05-23 20:57:49 -07:00
Reese Norris
2767fe9f30 fix bat 2025-05-23 20:21:16 -07:00
Reese Norris
028553738a add windows batch file runner 2025-05-23 20:20:28 -07:00
Reese Norris
d166112aa1 add configuration link href 2025-05-23 13:50:39 -07:00
Reese Norris
c28936d285 add documentation reference 2025-05-23 13:44:26 -07:00
Reese Norris
aad333c987 use container registry image 2025-05-23 13:37:07 -07:00
Reese Norris
556cd26227 fix pbh 2025-05-23 13:01:52 -07:00
Reese Norris
1e4967c52a edit README 2025-05-23 12:37:23 -07:00
Reese Norris
3929e1115f tweak REST API docs 2025-05-23 12:07:55 -07:00
Reese Norris
97a6292974 generalize Client Query packet forwarding logic 2025-05-23 11:50:48 -07:00
Reese Norris
e6e45b0e72 initial READMEs 2025-05-19 18:06:01 -07:00
Reese Norris
4eb7c0f235 add Dockerfile labels 2025-05-19 18:05:41 -07:00
Reese Norris
35dfc7d446 misc docker changes, fix typos, fix postoffice tests 2025-05-18 20:02:59 -07:00
Reese Norris
75178b7557 add kick user web interface 2025-05-18 15:37:36 -07:00
Reese Norris
f03855b7db Embed static assets and support external configuration 2025-05-18 14:13:44 -07:00
Reese Norris
0d8a0af404 fix fast pilot position min field length 2025-05-18 10:10:38 -07:00
Reese Norris
7e29193c80 Introduce SetIfNotExists, atomic Client, dynamic web config, ServerConfig, data APIs, and fixes. 2025-05-17 20:39:58 -07:00
Reese Norris
335409c4b4 Add ConfigRepository and enhance server configuration management
1. Database Enhancements (db/repositories.go):
   - Added ConfigRepository interface and implementations for PostgreSQL and SQLite
   - Updated Repositories struct to include ConfigRepository
   - Modified NewRepositories to initialize both UserRepo and ConfigRepo

2. FSD Server Improvements:
   - Removed hardcoded jwtSecret, now retrieved from ConfigRepository (fsd/conn.go, web/auth.go)
   - Added dynamic welcome message retrieval from ConfigRepository (fsd/conn.go)
   - Optimized METAR buffer size from 4096 to 512 bytes (fsd/metar.go)
   - Reduced minimum fields for DeleteATC and DeletePilot packets (fsd/packet.go)
   - Improved Haversine distance calculation with constants (fsd/postoffice.go)
   - Added thread-safety documentation for sendError (fsd/client.go)

3. Server Configuration (fsd/server.go):
   - Added NewDefaultServer to initialize server with environment-based config
   - Implemented automatic database migration and default admin user creation
   - Added configurable METAR worker count
   - Improved logging with slog and environment-based debug level

4. Web Interface Enhancements:
   - Added user and config editor frontend routes (web/frontend.go, web/routes.go)
   - Improved JWT handling by retrieving secret from ConfigRepository (web/auth.go)
   - Enhanced user management API endpoints (web/user.go)
   - Updated dashboard to display CID and conditional admin links (web/templates/dashboard.html)
   - Embedded templates using go:embed (web/templates.go)

5. Frontend JavaScript Improvements:
   - Added networkRatingFromInt helper for readable ratings (web/static/js/openfsd/dashboard.js)
   - Improved API request handling with auth/no-auth variants (web/static/js/openfsd/api.js)

6. Miscellaneous:
   - Added sethvargo/go-envconfig dependency for environment variable parsing
   - Fixed parseVisRange to use 64-bit float parsing (fsd/util.go)
   - Added strPtr utility function (fsd/util.go, web/main.go)
   - Improved SVG logo rendering in layout (web/templates/layout.html)
2025-05-16 22:27:26 -07:00
Reese Norris
5cde160fe7 remove old webapp 2025-05-12 17:24:15 -07:00
Reese Norris
cde3128509 initial v1.0-beta commit 2025-05-12 17:21:16 -07:00