|
@@ -135,14 +135,14 @@ export default {
|
|
|
// Axios module configuration: https://go.nuxtjs.dev/config-axios
|
|
|
axios: {
|
|
|
proxy: process.env.NODE_ENV === 'development',
|
|
|
- // https: process.env.API_HTTPS === 'true',
|
|
|
+ https: process.env.API_HTTPS === 'true',
|
|
|
// // Workaround to avoid enforcing hard-coded localhost:3000: https://github.com/nuxt-community/axios-module/issues/308
|
|
|
// baseURL: '/',
|
|
|
},
|
|
|
proxy: {
|
|
|
'/api': {
|
|
|
// target: 'http://gntest.phone.androidscloud.com:1280',
|
|
|
- target: `http${process.env.API_PORT === '443' ? 's' : ''}://${
|
|
|
+ target: `http${process.env.API_HTTPS === 'true' ? 's' : ''}://${
|
|
|
process.env.API_HOST
|
|
|
}:${process.env.API_PORT}`,
|
|
|
pathRewrite: {
|
|
@@ -150,7 +150,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
'/file': {
|
|
|
- target: `http${process.env.FILE_PORT === '443' ? 's' : ''}://${
|
|
|
+ target: `http${process.env.FILE_HTTPS === 'true' ? 's' : ''}://${
|
|
|
process.env.FILE_HOST
|
|
|
}:${process.env.FILE_PORT}`,
|
|
|
pathRewrite: {
|