docs: replace environment-specific IPs with localhost
This commit is contained in:
@@ -89,7 +89,7 @@ Never create an opportunity before the contact is verified.`;
|
||||
|
||||
async function main() {
|
||||
const env = loadEnv(path.join(ROOT, '.env'));
|
||||
const base = (env.LIBREDESK_BASE_URL || 'http://192.168.31.61:9000').replace(/\/+$/, '');
|
||||
const base = (env.LIBREDESK_BASE_URL || 'http://localhost:9000').replace(/\/+$/, '');
|
||||
const c = createClient(base);
|
||||
await c.post('/api/v1/auth/login', { email: env.LIBREDESK_SYSTEM_EMAIL || 'System', password: env.LIBREDESK_SYSTEM_USER_PASSWORD });
|
||||
console.log('登录成功');
|
||||
@@ -147,7 +147,7 @@ async function main() {
|
||||
launcher: { position: 'right', icon_scale: 100, spacing: { side: 24, bottom: 24 } },
|
||||
greeting_message: 'Hi! How can we help you today?',
|
||||
chat_introduction: 'Ask about products, orders, shipping or returns.',
|
||||
trusted_domains: ['192.168.31.61:8088', 'localhost:8088', '127.0.0.1:8088', '192.168.31.61', 'localhost', '127.0.0.1', 'www.yehwang.com', 'yehwang.com'],
|
||||
trusted_domains: ['localhost:8088', '127.0.0.1:8088', 'localhost', '127.0.0.1', 'www.yehwang.com', 'yehwang.com'],
|
||||
help: { help_center_id: 0 },
|
||||
users: { allow_start_conversation: true, prevent_multiple_conversations: false },
|
||||
visitors: { allow_start_conversation: true, prevent_multiple_conversations: false },
|
||||
|
||||
Reference in New Issue
Block a user