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();