moxie-site/js/config.js
2026-05-08 00:14:58 +00:00

41 lines
1.0 KiB
JavaScript

/**
* Moxiegen Frontend Configuration
* Update these values to match your Auth0 and API settings
*/
const CONFIG = {
// Auth0 Configuration
auth0: {
domain: 'dev-t13zhs74oltgqtfx.us.auth0.com',
clientId: 'AWRYU8EBnKaHvRQOMXXADxgGEoBN45oN',
// Leave audience empty for standard OpenID Connect authentication
// Or set to your custom API identifier if you created one in Auth0
audience: '',
redirectUri: window.location.origin + '/dashboard.html',
logoutUri: window.location.origin
},
// API Configuration
api: {
baseUrl: '/api', // Proxied through Caddy
endpoints: {
me: '/users/me',
credits: '/users/credits',
apiKeys: '/users/api-keys',
health: '/health'
}
},
// App Configuration
app: {
name: 'Moxiegen',
version: '2.0.0'
}
};
// Freeze config to prevent modifications
Object.freeze(CONFIG);
Object.freeze(CONFIG.auth0);
Object.freeze(CONFIG.api);
Object.freeze(CONFIG.app);