From 766f72dd83d68b84e1c560735ec2949c516bab23 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Tue, 24 Feb 2026 22:20:06 -0800 Subject: [PATCH] refactor: migrate EncryptID URLs from encryptid.jeffemmett.com to auth.ridentity.online Part of the ridentity.online branding migration. The EncryptID auth server is now accessible at auth.ridentity.online (with the legacy encryptid.jeffemmett.com kept as a backward-compatible alias). Co-Authored-By: Claude Opus 4.6 --- docker-compose.yml | 4 ++-- docker-compose.yml.pre-harden | 8 ++++---- src/app/api/auth/session/route.ts | 2 +- src/lib/auth.ts | 2 +- src/lib/space-role.ts | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7c60196..0410a68 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,8 +12,8 @@ services: - "traefik.docker.network=traefik-public" environment: - DATABASE_URL=postgresql://rvote:${DB_PASSWORD}@postgres:5432/rvote - - ENCRYPTID_SERVER_URL=https://encryptid.jeffemmett.com - - NEXT_PUBLIC_ENCRYPTID_SERVER_URL=https://encryptid.jeffemmett.com + - ENCRYPTID_SERVER_URL=https://auth.ridentity.online + - NEXT_PUBLIC_ENCRYPTID_SERVER_URL=https://auth.ridentity.online - SMTP_HOST=${SMTP_HOST:-mail.rmail.online} - SMTP_PORT=${SMTP_PORT:-587} - SMTP_USER=${SMTP_USER:-noreply@rmail.online} diff --git a/docker-compose.yml.pre-harden b/docker-compose.yml.pre-harden index 55f989b..27ede86 100644 --- a/docker-compose.yml.pre-harden +++ b/docker-compose.yml.pre-harden @@ -14,11 +14,11 @@ services: - NEXTAUTH_URL=https://rvote.online - RESEND_API_KEY=${RESEND_API_KEY} - ROOT_DOMAIN=rvote.online - - NEXT_PUBLIC_ENCRYPTID_SERVER_URL=https://encryptid.jeffemmett.com - - ENCRYPTID_SERVER_URL=https://encryptid.jeffemmett.com + - NEXT_PUBLIC_ENCRYPTID_SERVER_URL=https://auth.ridentity.online + - ENCRYPTID_SERVER_URL=https://auth.ridentity.online - NEXT_PUBLIC_ROOT_DOMAIN=rvote.online - - NEXT_PUBLIC_ENCRYPTID_SERVER_URL=https://encryptid.jeffemmett.com - - ENCRYPTID_SERVER_URL=https://encryptid.jeffemmett.com + - NEXT_PUBLIC_ENCRYPTID_SERVER_URL=https://auth.ridentity.online + - ENCRYPTID_SERVER_URL=https://auth.ridentity.online networks: - traefik-public - rvote-internal diff --git a/src/app/api/auth/session/route.ts b/src/app/api/auth/session/route.ts index 723e898..082fcf5 100644 --- a/src/app/api/auth/session/route.ts +++ b/src/app/api/auth/session/route.ts @@ -3,7 +3,7 @@ import { prisma } from '@/lib/prisma'; import { NextRequest, NextResponse } from 'next/server'; const SERVER_URL = - process.env.ENCRYPTID_SERVER_URL || 'https://encryptid.jeffemmett.com'; + process.env.ENCRYPTID_SERVER_URL || 'https://auth.ridentity.online'; /** * POST /api/auth/session — Verify EncryptID token and set session cookie. diff --git a/src/lib/auth.ts b/src/lib/auth.ts index 89a48cb..e36f4a4 100644 --- a/src/lib/auth.ts +++ b/src/lib/auth.ts @@ -3,7 +3,7 @@ import { cookies } from 'next/headers'; import { prisma } from './prisma'; const SERVER_URL = - process.env.ENCRYPTID_SERVER_URL || 'https://encryptid.jeffemmett.com'; + process.env.ENCRYPTID_SERVER_URL || 'https://auth.ridentity.online'; interface AuthSession { user: { diff --git a/src/lib/space-role.ts b/src/lib/space-role.ts index edd7936..e7be615 100644 --- a/src/lib/space-role.ts +++ b/src/lib/space-role.ts @@ -14,7 +14,7 @@ import { } from '@encryptid/sdk/types'; import { RVOTE_PERMISSIONS } from '@encryptid/sdk/types/modules'; -const ENCRYPTID_SERVER = process.env.ENCRYPTID_SERVER_URL || 'https://encryptid.jeffemmett.com'; +const ENCRYPTID_SERVER = process.env.ENCRYPTID_SERVER_URL || 'https://auth.ridentity.online'; // In-memory cache (5 minute TTL) const roleCache = new Map();