fix: seed api_keys on fresh install (X-API-Key auth) + momentry-proxy web-server plist + test.sh SPA auth model
- install.sh: seed api_keys row (key_hash = SHA-256 of demo key) — missing row caused 401 on every X-API-Key request after clean-install - launchd/com.momentry.proxy.plist: serve via momentry-proxy binary (MOMENTRY_WEB_SERVER=true + TAURI_DIST_DIR) instead of serve_frontend.py - test.sh: remote probes use X-API-Key (SPA auth model) instead of Bearer (proxy login returns UUID session token, core expects JWT/X-API-Key)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key><string>com.momentry.proxy</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/Users/accusys/momentry/bin/momentry-proxy</string>
|
||||
</array>
|
||||
<key>WorkingDirectory</key><string>/Users/accusys/momentry</string>
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>MOMENTRY_API_KEY</key><string>muser_demo_key_32chars_abcdef1234567890</string>
|
||||
<key>MOMENTRY_DATA_DIR</key><string>/Users/accusys/data/users</string>
|
||||
<key>MOMENTRY_WEB_SERVER</key><string>true</string>
|
||||
<key>TAURI_DIST_DIR</key><string>/Users/accusys/momentry/dist</string>
|
||||
</dict>
|
||||
<key>RunAtLoad</key><true/>
|
||||
<key>KeepAlive</key><true/>
|
||||
<key>StandardOutPath</key><string>/Users/accusys/momentry/logs/momentry_proxy.log</string>
|
||||
<key>StandardErrorPath</key><string>/Users/accusys/momentry/logs/momentry_proxy.error.log</string>
|
||||
</dict>
|
||||
</plist>
|
||||
Reference in New Issue
Block a user