mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-21 23:46:41 +02:00
feat(infra): add mana-credits to docker-compose, fix port to 3061
Port 3060 was already taken by api-gateway. Updated mana-credits to 3061. Changes: - docker-compose.macmini.yml: Add mana-credits service with health check, traefik labels for credits.mana.how, depends on postgres - docker-compose.macmini.yml: Add MANA_CREDITS_URL to mana-auth env - Update all port references from 3060 to 3061 (config, Dockerfile, CLAUDE.md) - Update better-auth.service.ts fallback URLs to 3061 - Update .env.development MANA_CREDITS_URL Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
fa16f1fe38
commit
feeebfb7c4
5 changed files with 48 additions and 9 deletions
|
|
@ -151,7 +151,7 @@ export class BetterAuthService {
|
|||
|
||||
// Redeem any pending gift codes via mana-credits service
|
||||
try {
|
||||
const creditsUrl = process.env.MANA_CREDITS_URL || 'http://localhost:3060';
|
||||
const creditsUrl = process.env.MANA_CREDITS_URL || 'http://localhost:3061';
|
||||
const serviceKey = process.env.MANA_CORE_SERVICE_KEY || '';
|
||||
const giftRes = await fetch(`${creditsUrl}/api/v1/internal/gifts/redeem-pending`, {
|
||||
method: 'POST',
|
||||
|
|
@ -1758,7 +1758,7 @@ export class BetterAuthService {
|
|||
*/
|
||||
private async createPersonalCreditBalance(userId: string) {
|
||||
try {
|
||||
const creditsUrl = process.env.MANA_CREDITS_URL || 'http://localhost:3060';
|
||||
const creditsUrl = process.env.MANA_CREDITS_URL || 'http://localhost:3061';
|
||||
const serviceKey = process.env.MANA_CORE_SERVICE_KEY || '';
|
||||
await fetch(`${creditsUrl}/api/v1/internal/credits/init`, {
|
||||
method: 'POST',
|
||||
|
|
@ -1778,7 +1778,7 @@ export class BetterAuthService {
|
|||
*/
|
||||
private async initializeGuildPool(organizationId: string) {
|
||||
try {
|
||||
const creditsUrl = process.env.MANA_CREDITS_URL || 'http://localhost:3060';
|
||||
const creditsUrl = process.env.MANA_CREDITS_URL || 'http://localhost:3061';
|
||||
const serviceKey = process.env.MANA_CORE_SERVICE_KEY || '';
|
||||
await fetch(`${creditsUrl}/api/v1/internal/guild-pool/init`, {
|
||||
method: 'POST',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue