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:
@@ -13,11 +13,11 @@ server {
|
||||
root /usr/local/lib/web/frontend/;
|
||||
index index.html index.htm;
|
||||
|
||||
location ~ ^/api {
|
||||
location ~ ^/APP/api {
|
||||
try_files $uri @api;
|
||||
}
|
||||
|
||||
location = /websockify {
|
||||
location = /APP/websockify {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
@@ -114,6 +114,9 @@ def main():
|
||||
)
|
||||
logging.getLogger("werkzeug").setLevel(logging.WARNING)
|
||||
log = logging.getLogger('novnc2')
|
||||
|
||||
app.config["APPLICATION_ROOT"] = os.getenv("PREFIX_PATH")
|
||||
|
||||
entrypoint()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user