Autoscale

157 views
Skip to first unread message

Nikolaos Kou

unread,
Jan 5, 2021, 10:46:08 AM1/5/21
to noVNC
Hello,

is it possible to set the resize option autmatically to resize=scale?
The preffered way would be adding it to the startup script or something like that.

I'm using traefik to reverse proxy and people are directly connecting to:

Of course this leads them directly to the desktop without the vnc panel at the side.

Thanks in advance!

BR,
Niko




Message has been deleted
Message has been deleted

Nikolaos Kou

unread,
Jan 5, 2021, 11:22:13 AM1/5/21
to noVNC
To specify the question: Can i add the scale=True to the vnc_light.html?

Samuel Mannehed

unread,
Jan 8, 2021, 4:59:11 AM1/8/21
to Nikolaos Kou, no...@googlegroups.com
On Tue, 5 Jan 2021 08:22:13 -0800 (PST)
Nikolaos Kou <niko...@kourgiantakis.com> wrote:

> To specify the question: Can i add the scale=True to the
> vnc_light.html?

You can add it as a query parameter, like this:

http://example.com/vnc_lite.html?scale=True

Does that work for you?

You could also modify line 180 of vnc_lite.html:

- rfb.scaleViewport = readQueryVariable('scale', false);
+ rfb.scaleViewport = readQueryVariable('scale', true);

That would change the default.

Best regards,
--
Samuel Mannehed Software Development
Cendio AB https://cendio.com
Teknikringen 8 https://twitter.com/ThinLinc
583 30 Linköping https://facebook.com/ThinLinc
Phone: +46 13 214 600

Nikolaos Kou

unread,
Jan 8, 2021, 5:30:43 AM1/8/21
to noVNC
Sam, this is exactly what i was looking for. I didn't know that i can change the default vaulue. Thank you very much!

Best regards,
Niko
Reply all
Reply to author
Forward
0 new messages