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 <noreply@anthropic.com>
This commit is contained in:
parent
1130328549
commit
766f72dd83
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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<string, { role: ResolvedRole; expires: number }>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue