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:
+7
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user