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

feat: support RELATIVE_URL_ROOT (fix #127)

This commit is contained in:
Doro Wu
2019-08-19 01:14:34 +08:00
parent 9b94a2fbeb
commit fb28d897fc
43 changed files with 355 additions and 334 deletions
+5 -12
View File
@@ -5,26 +5,19 @@
const path = require('path')
const BACKEND = process.env.BACKEND || 'http://127.0.0.1:6080'
const PREFIX_PATH = process.env.PREFIX_PATH || '/app'
console.log(`within /config/index.js: ${process.env.PREFIX_PATH}`)
const api_key = `${PREFIX_PATH}/api`
const websockify_key = `${PREFIX_PATH}/websockfiy`
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
assetsPublicPath: './',
proxyTable: {
[api_key]: {
'/api': {
target: BACKEND,
changeOrigin: true,
secure: false
},
[websockify_key]: {
'/websockify': {
target: BACKEND,
// logLevel: 'debug',
ws: true,
@@ -69,8 +62,8 @@ module.exports = {
// Paths
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: PREFIX_PATH.substr(1)+'/static',
assetsPublicPath: '/',
assetsSubDirectory: 'static',
assetsPublicPath: './',
/**
* Source Maps