2019-09-09 13:17:05 +03:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2017-05-22 17:58:11 +03:00
From: Dominik Csapak <d.csapak@proxmox.com>
Date: Fri, 20 Jan 2017 10:16:09 +0100
2021-05-17 08:46:13 +03:00
Subject: [PATCH] add replaceable snippets in vnc.html
2017-05-22 17:58:11 +03:00
so that we can insert the username/csrftoken via search/replace
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
2021-12-17 13:19:56 +03:00
vnc.html | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
2017-05-22 17:58:11 +03:00
diff --git a/vnc.html b/vnc.html
2023-02-02 12:57:06 +03:00
index 9281009..4ce107a 100644
2017-05-22 17:58:11 +03:00
--- a/vnc.html
+++ b/vnc.html
2019-09-09 13:17:05 +03:00
@@ -13,7 +13,7 @@
2017-05-22 17:58:11 +03:00
or the fragment:
http://example.com/#host=HOST&port=PORT&encrypt=1
-->
- <title>noVNC</title>
+ <title>[% nodename %] - Proxmox Console</title>
2019-09-09 13:17:05 +03:00
<meta charset="utf-8">
2017-05-22 17:58:11 +03:00
2023-02-02 12:57:06 +03:00
@@ -32,6 +32,12 @@
2021-12-17 13:19:56 +03:00
<link rel="preload" as="image" href="/novnc/app/images/warning.svg">
2023-02-02 12:57:06 +03:00
<script type="module" crossorigin="anonymous" src="/novnc/app/error-handler.js"></script>
2017-05-22 17:58:11 +03:00
+ <script type="text/javascript">
+ if (typeof(PVE) === 'undefined') PVE = {};
+ PVE.UserName = '[% username %]';
+ PVE.CSRFPreventionToken = '[% token %]';
+ INCLUDE_URI='/novnc/include';
+ </script>
2021-12-17 13:19:56 +03:00
<script type="module" crossorigin="anonymous" src="/novnc/app/ui.js"></script>
</head>
2017-05-22 17:58:11 +03:00