fix: use Docker container name for Metabase internal communication
Change Metabase URL from public domain to Docker container name for proper internal network communication between containers. Changes: - Update default METABASE_URL to http://metabase:3000 - Docker DNS resolution works correctly with container names - Maintains public domain fallback via environment variables This fixes authentication issues when containers communicate within the same Docker network.
This commit is contained in:
@@ -142,7 +142,8 @@ export default defineNuxtConfig({
|
||||
},
|
||||
runtimeConfig: {
|
||||
// Server-side only
|
||||
metabaseUrl: process.env.METABASE_URL || 'https://metabase.nucleoriofrio.com',
|
||||
// Use container name for Docker internal communication
|
||||
metabaseUrl: process.env.METABASE_URL || 'http://metabase:3000',
|
||||
metabaseEmail: process.env.METABASE_EMAIL || 'claudeCode0@nucleoriofrio.com',
|
||||
metabasePassword: process.env.METABASE_PASSWORD || 'vK^NyZdZDH#p',
|
||||
// Public (client + server)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
const config = useRuntimeConfig()
|
||||
const METABASE_URL = config.metabaseUrl || 'https://metabase.nucleoriofrio.com'
|
||||
const METABASE_URL = config.metabaseUrl || 'http://metabase:3000'
|
||||
const METABASE_EMAIL = config.metabaseEmail || 'claudeCode0@nucleoriofrio.com'
|
||||
const METABASE_PASSWORD = config.metabasePassword || 'vK^NyZdZDH#p'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user