Appearance
示例 (项目根目录下 config/config.*.ts
配置)
ts
import type { ModuleOptions } from '@trickd/nuxt'
export const trickd: ModuleOptions = {
mode: 'normal',
server: {
https: false,
domain: '',
csp: {
enabled: false,
directives: {
'default-src': ["'self'"],
},
},
},
isc: {
enabled: false,
url: 'https://isctest.jiafly.cn:22022',
sso: 'https://isctest.jiafly.cn:22022/isc_sso',
frontmv: 'http://isctest.jiafly.cn:22000/isc_frontmv_serv',
service: 'http://10.120.21.12:8080',
appid: 'ff80808182a071d60182a5285b510076',
gateway: false
},
proxy: {
gateway: {
platform: 'http://10.120.22.82:18080',
},
timeout: 1000 * 60 * 10,
},
apps: {
'app.exp': {
port: 80,
enabled: true,
},
'app.exp2': {
port: 8080,
enabled: true,
},
},
}
import type { ModuleOptions } from '@trickd/nuxt'
export const trickd: ModuleOptions = {
mode: 'normal',
server: {
https: false,
domain: '',
csp: {
enabled: false,
directives: {
'default-src': ["'self'"],
},
},
},
isc: {
enabled: false,
url: 'https://isctest.jiafly.cn:22022',
sso: 'https://isctest.jiafly.cn:22022/isc_sso',
frontmv: 'http://isctest.jiafly.cn:22000/isc_frontmv_serv',
service: 'http://10.120.21.12:8080',
appid: 'ff80808182a071d60182a5285b510076',
gateway: false
},
proxy: {
gateway: {
platform: 'http://10.120.22.82:18080',
},
timeout: 1000 * 60 * 10,
},
apps: {
'app.exp': {
port: 80,
enabled: true,
},
'app.exp2': {
port: 8080,
enabled: true,
},
},
}