Refactor CLIProxyAPI: remove msg wrapper, remove creds file, update JSON notes

This commit is contained in:
CanbiZ (MickLesk)
2026-03-27 14:03:38 +01:00
parent b4f7bfae1d
commit eb36cb3133
3 changed files with 1 additions and 10 deletions

View File

@@ -35,9 +35,7 @@ function update_script() {
systemctl stop cliproxyapi systemctl stop cliproxyapi
msg_ok "Stopped CLIProxyAPI" msg_ok "Stopped CLIProxyAPI"
msg_info "Updating CLIProxyAPI"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "cliproxyapi" "router-for-me/CLIProxyAPI" "prebuild" "latest" "/opt/cliproxyapi" "CLIProxyAPI_*_linux_amd64.tar.gz" CLEAN_INSTALL=1 fetch_and_deploy_gh_release "cliproxyapi" "router-for-me/CLIProxyAPI" "prebuild" "latest" "/opt/cliproxyapi" "CLIProxyAPI_*_linux_amd64.tar.gz"
msg_ok "Updated CLIProxyAPI"
msg_info "Starting CLIProxyAPI" msg_info "Starting CLIProxyAPI"
systemctl start cliproxyapi systemctl start cliproxyapi

View File

@@ -40,13 +40,6 @@ routing:
strategy: "round-robin" strategy: "round-robin"
EOF EOF
{
echo "CLIProxyAPI Credentials"
echo "======================="
echo "API Key: ${API_KEY}"
echo "Management Password: ${MANAGEMENT_PASSWORD}"
} >~/cliproxyapi.creds
chmod 600 ~/cliproxyapi.creds
msg_ok "Configured CLIProxyAPI" msg_ok "Configured CLIProxyAPI"
msg_info "Creating Service" msg_info "Creating Service"

View File

@@ -33,7 +33,7 @@
}, },
"notes": [ "notes": [
{ {
"text": "Generated credentials (API Key, Management Password) are saved to `/root/cliproxyapi.creds` inside the LXC.", "text": "Generated credentials (API Key, Management Password) are stored in `/opt/cliproxyapi/config.yaml` inside the LXC.",
"type": "info" "type": "info"
}, },
{ {