This repository has been archived by the owner on Aug 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
80 lines (77 loc) · 2.07 KB
/
nuxt.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
module.exports = {
/*
** Headers of the page
*/
head: {
title: 'FAN Co. IoT Platform',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'I1820 IoT Platform' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.png' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' }
]
},
/*
** Customize the progress-bar color
*/
loading: { color: '#3B8070' },
/*
** Build configuration
*/
build: {
plugins: []
},
/*
** Nuxt modules configuration
*/
modules: [
'@nuxtjs/axios',
'@nuxtjs/auth'
],
/*
** Plugin configuration
*/
plugins: [
'~plugins/vuetify.js',
'~plugins/moment.js',
'~plugins/chart.js',
{ src: '~plugins/map.js', ssr: false },
{ src: '~plugins/toast.js', ssr: false },
{ src: '~plugins/editor.js', ssr: false }
],
css: [
{ src: '~assets/style/app.styl', lang: 'styl' }
],
toast: {
position: 'top-center'
},
axios: {
proxy: true // enable axios proxy module
},
proxy: {
'/dm/': { target: process.env.DM_URL || 'http://127.0.0.1:1373', pathRewrite: {'^/dm/': ''} }, // sends requests with /dm/ to dm component
'/pm/': { target: process.env.PM_URL || 'http://127.0.0.1:1375', pathRewrite: {'^/pm/': ''} }, // sends requests with /pm/ to pm component
'/socket.io': { target: process.env.TRAP_URL || 'http://127.0.0.1:8085', ws: true, changeOrigin: true }, // sends requests with /trap/ to trap component
'/status': { target: process.env.VERNEMQ_URL || 'http://127.0.0.1:8888', changeOrigin: true } // sends requests with /status to vernemq api
},
router: {
middleware: ['auth']
},
auth: {
redirect: {
login: '/login',
logout: '/',
callback: '/login',
home: '/dashboard'
},
strategies: {
auth0: {
domain: 'i1820.auth0.com',
client_id: 'RkwJ4xx41OuLseag1LuJPvMHMjgOCwwb'
}
}
}
}