1
0
mirror of https://github.com/fcwu/docker-ubuntu-vnc-desktop synced 2026-08-05 16:12:41 +02:00

Changes to make deployment path configureable with prefix by ENV

This commit is contained in:
Tobias Stein
2019-06-24 11:00:44 +02:00
parent 1c3f34aa6e
commit f26fe29012
6 changed files with 20 additions and 7 deletions
+7 -2
View File
@@ -5,6 +5,11 @@
const path = require('path')
const BACKEND = process.env.BACKEND || 'http://127.0.0.1:6080'
const PREFIX_PATH = process.env.PREFIX_PATH
const api_key = `${PREFIX_PATH}/api`
const websockify_key = `${PREFIX_PATH}/websockfiy`
module.exports = {
dev: {
@@ -12,12 +17,12 @@ module.exports = {
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {
'/api': {
[api_key]: {
target: BACKEND,
changeOrigin: true,
secure: false
},
'/websockify': {
[websockify_key]: {
target: BACKEND,
// logLevel: 'debug',
ws: true,