org-agenda-api: point production at railbird-sf
This commit is contained in:
@@ -7,7 +7,7 @@ description: Use when investigating production org-agenda-api state, testing end
|
|||||||
|
|
||||||
## Overview
|
## 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
|
## Credentials
|
||||||
|
|
||||||
|
|||||||
@@ -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:
|
Get credentials from pass:
|
||||||
```bash
|
```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.
|
**Note:** The `url` field in pass may be outdated. Use the base URL below.
|
||||||
|
|
||||||
## Base URL
|
## 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.
|
All requests use Basic Auth with the credentials from pass.
|
||||||
|
|
||||||
|
|||||||
@@ -85,8 +85,9 @@ in {
|
|||||||
echo ""
|
echo ""
|
||||||
echo "Commands:"
|
echo "Commands:"
|
||||||
echo " just --list - Show available API commands"
|
echo " just --list - Show available API commands"
|
||||||
echo " ./deploy.sh <instance> - Deploy to Fly.io (colonelpanic or kat)"
|
echo " railbird-sf hosts production at https://org-agenda-api.rocket-sense.duckdns.org"
|
||||||
echo " flyctl - Fly.io CLI"
|
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 " agenix -e <file> - Edit encrypted secrets"
|
||||||
echo ""
|
echo ""
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
services.org-agenda-api-host = {
|
services.org-agenda-api-host = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "colonelpanic8.duckdns.org";
|
domain = "rocket-sense.duckdns.org";
|
||||||
containerImage = orgAgendaApiImageName;
|
containerImage = orgAgendaApiImageName;
|
||||||
containerImageFile = orgAgendaApiContainer;
|
containerImageFile = orgAgendaApiContainer;
|
||||||
secretsFile = config.age.secrets.org-api-auth-password.path;
|
secretsFile = config.age.secrets.org-api-auth-password.path;
|
||||||
|
|||||||
@@ -1,10 +1,20 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
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...]
|
# Usage: ./deploy.sh <instance> [flyctl deploy args...]
|
||||||
# Example: ./deploy.sh colonelpanic
|
# Example: ./deploy.sh colonelpanic
|
||||||
# ./deploy.sh kat
|
# ./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)"
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
NIXOS_DIR="$SCRIPT_DIR/../nixos"
|
NIXOS_DIR="$SCRIPT_DIR/../nixos"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# org-agenda-api commands
|
# org-agenda-api commands
|
||||||
|
|
||||||
base_url := "https://colonelpanic-org-agenda.fly.dev"
|
base_url := "https://org-agenda-api.rocket-sense.duckdns.org"
|
||||||
user := "imalison"
|
user := "imalison"
|
||||||
|
|
||||||
# Get all todos
|
# Get all todos
|
||||||
|
|||||||
Reference in New Issue
Block a user