org-agenda-api: point production at railbird-sf

This commit is contained in:
2026-06-09 02:00:29 -07:00
parent 897c97c269
commit 267bd10095
6 changed files with 20 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ description: Use when investigating production org-agenda-api state, testing end
## Overview
Access the production org-agenda-api instance at https://colonelpanic-org-agenda.fly.dev/ for debugging, testing, or verification.
Access the production org-agenda-api instance at https://org-agenda-api.rocket-sense.duckdns.org/ for debugging, testing, or verification.
## Credentials

View File

@@ -11,16 +11,16 @@ HTTP API for org-mode agenda data. Use this skill when you need to query or modi
Get credentials from pass:
```bash
pass show colonelpanic-org-agenda.fly.dev
pass show org-agenda-api-imalison
```
Returns: password on first line, then `user:` and `url:` fields.
Returns: password on first line. The username is currently `imalison`.
**Note:** The `url` field in pass may be outdated. Use the base URL below.
## Base URL
`https://colonelpanic-org-agenda.fly.dev`
`https://org-agenda-api.rocket-sense.duckdns.org`
All requests use Basic Auth with the credentials from pass.

View File

@@ -85,8 +85,9 @@ in {
echo ""
echo "Commands:"
echo " just --list - Show available API commands"
echo " ./deploy.sh <instance> - Deploy to Fly.io (colonelpanic or kat)"
echo " flyctl - Fly.io CLI"
echo " railbird-sf hosts production at https://org-agenda-api.rocket-sense.duckdns.org"
echo " ./deploy.sh <instance> - Legacy Fly.io deploy; requires explicit opt-in"
echo " flyctl - Fly.io CLI for auditing suspended legacy apps"
echo " agenix -e <file> - Edit encrypted secrets"
echo ""
'';

View File

@@ -33,7 +33,7 @@
services.org-agenda-api-host = {
enable = true;
domain = "colonelpanic8.duckdns.org";
domain = "rocket-sense.duckdns.org";
containerImage = orgAgendaApiImageName;
containerImageFile = orgAgendaApiContainer;
secretsFile = config.age.secrets.org-api-auth-password.path;

View File

@@ -1,10 +1,20 @@
#!/usr/bin/env bash
set -euo pipefail
# Deploy customized org-agenda-api container to Fly.io
# Legacy Fly.io deployment for customized org-agenda-api containers.
# Usage: ./deploy.sh <instance> [flyctl deploy args...]
# Example: ./deploy.sh colonelpanic
# ./deploy.sh kat
#
# Production is hosted on railbird-sf via nixos/org-agenda-api-host.nix. Keep
# this script available for historical recovery, but require an explicit opt-in
# so normal maintenance cannot accidentally recreate Fly machines.
if [[ "${ORG_AGENDA_API_ENABLE_LEGACY_FLY_DEPLOY:-}" != "1" ]]; then
echo "Fly.io org-agenda-api deployment is decommissioned." >&2
echo "Production is https://org-agenda-api.rocket-sense.duckdns.org on railbird-sf." >&2
echo "Set ORG_AGENDA_API_ENABLE_LEGACY_FLY_DEPLOY=1 to run this legacy script." >&2
exit 1
fi
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
NIXOS_DIR="$SCRIPT_DIR/../nixos"

View File

@@ -1,6 +1,6 @@
# org-agenda-api commands
base_url := "https://colonelpanic-org-agenda.fly.dev"
base_url := "https://org-agenda-api.rocket-sense.duckdns.org"
user := "imalison"
# Get all todos