Commit Graph

41 Commits

Author SHA1 Message Date
Dietmar Maurer
092fa1b0de cleanup: use new run_cli_handler() method 2015-10-02 11:28:01 +02:00
Dietmar Maurer
3687020828 use PVE::SafeSyslog in pveproxy and pvedaemon 2015-09-08 16:57:53 +02:00
Dietmar Maurer
4a17e72e77 convert pveproxy into a PVE::Service class 2015-09-04 14:16:25 +02:00
Wolfgang Bumiller
98ac92f039 move preparations into prepare()
Moving some preparation code found at the top level of some binaries
into a prepare() sub.
2015-05-29 16:12:24 +02:00
Wolfgang Bumiller
54c869d3a3 listen on ipv6 if the node's hostname resolves to ipv6 2015-05-08 12:44:02 +02:00
Emmanuel Kasper
670ffdb97e Add extra /manager5 url route to serve local javascript files
Provided you symlink the manager5 directory to your git repository,
this will allow to test javascript changes by simply reloading
the page, without calling "make install" in between.
For instance, if you have your pve-manager code in $HOME/pve/pve-manager,
you can do

ln -s $HOME/pve/pve-manager/www/manager5 /usr/share/pve-manager/manager5

and you can serve javascript files directly from your copy of the source repo

curl -k -s -o /dev/null -w "%{http_code}" https://localhost:8006/pve2/manager5/Utils.js && printf "\n"
200

Not that at the momment this is only meant for Ext 5 development

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
2015-04-15 07:37:40 +02:00
Emmanuel Kasper
46bd42f9fd Enhance pveproxy by adding an optional ext5 parameter to load the extjs 5 framework
Calling the pveproxy with https://localhost:8006/?ext5=1 will
load the web ui with the extjs 5 js libs.
Please note that at the momment the workspace does not load with
extjs 5.

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
2015-04-03 10:07:56 +02:00
Emmanuel Kasper
dcd651d4e8 Add url routing for serving extjs 5 files
Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
2015-04-02 11:09:29 +02:00
Dietmar Maurer
0e6afe6074 correctly create /var/run/pveproxy at startup 2015-03-03 07:02:57 +01:00
Dietmar Maurer
32607384dc avoid shell scripts in service definitions 2015-03-02 18:29:18 +01:00
Dietmar Maurer
47c8f4d282 pveproxy: set method to tlsv1 - required for IE
IE does not work without setting this. Seems TLSv1_1 and TLSv1_2
requires Net::SSLeay >= 1.55 (see AnyEvent::TLS). So this should
work when we upgrade to Debian 'jessie'.
2015-02-09 10:57:30 +01:00
Dietmar Maurer
0acb44a571 use new pidfile option (instead of run_dir) 2015-01-02 14:19:23 +01:00
Dietmar Maurer
0ef9c4e8ca use setuid/setgid feature from PVE::Daemon 2015-01-02 14:11:38 +01:00
Dietmar Maurer
a3eff2d9f1 remove class APIDaemon
Moved last used sub into PVE::API2Tools.
2015-01-01 16:54:21 +01:00
Dietmar Maurer
2560c968d1 pveproxy: use PVE::Daemon 2015-01-01 16:19:41 +01:00
Dietmar Maurer
6f6fbb846c pveproxy: also support newer tls versions 2014-12-02 14:01:32 +01:00
Dietmar Maurer
9998e38e07 pveproxy: limit ourselfes to tlsv1
older versions are considered insecure, for example search for "Poodle"-Attac
2014-10-15 15:46:47 +02:00
Dietmar Maurer
48295db44f add sencha touch based GUI for mobile devices 2014-08-05 08:31:17 +02:00
Dietmar Maurer
d95d48ea47 add sencha touch framework 2014-08-05 07:00:02 +02:00
Dietmar Maurer
d60159153d generate index file for noVNC here
Include CSRFToken and gettext catalogs.
2014-08-05 06:38:01 +02:00
Dietmar Maurer
e55bd5a1ef move index file generation into extra file PVE/ExtJSIndex.pm
And load locale files instead of including them into image.
2014-08-04 08:32:21 +02:00
Dietmar Maurer
7a83daf337 pveproxy: add routing to novnc dirs 2014-06-13 10:34:13 +02:00
Dietmar Maurer
7e73c93e55 new html formatter PVE::API2::Formatter::HTML
This one provides a login page and uses bootstrap for html.
2014-05-02 11:36:11 +02:00
Dietmar Maurer
d812f3bb2b include bootstrap html framework 2014-05-02 11:35:16 +02:00
Dietmar Maurer
d804d82f50 introduce base_handler_class
To make the framework more generic. The final plan is to move the
generic server code to package pve-common.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2014-04-30 08:31:14 +02:00
Dietmar Maurer
a0d2dd2c68 add X-UA-Compatible tag
To avoid GUI bugs with IE
2014-04-26 09:33:02 +02:00
Dietmar Maurer
626add4740 correctly set content type for GUI index page 2013-10-29 11:09:26 +01:00
Stefan Priebe
776de3bc0d do not use -w switch as it breaks modules
-w enabled warnings for all modules - even when these modules comes from the OS and are not compatible
with warnings. This is the reason to NOT use -w and instead use "use warnings".
2013-10-01 10:36:47 +02:00
Dietmar Maurer
e88a5cde5f add favicon.ico 2013-08-16 13:06:32 +02:00
Dietmar Maurer
82dd06022d allow to configure cipher list for pveproxy 2013-08-01 09:36:53 +02:00
Dietmar Maurer
008ff5d8bf pveproxy: use same cipher list as debian apache ssl.conf 2013-07-24 06:56:45 +02:00
Dietmar Maurer
17d27a3748 reuse host based access control code for spiceproxy 2013-06-27 07:55:11 +02:00
Dietmar Maurer
a908636e70 pveproxy: implement host based access control 2013-04-23 10:30:10 +02:00
Dietmar Maurer
f6c357cf35 code cleanups 2013-04-17 08:28:05 +02:00
Dietmar Maurer
d06a1c62c3 implement file upload
And remove CGI.pm dependency (because we want nonblocking upload).
2013-04-15 11:20:17 +02:00
Dietmar Maurer
f91072d56f code cleanups 2013-04-11 08:31:03 +02:00
Dietmar Maurer
71aed650ea implement signal handler for clean reload/restart 2013-04-10 11:12:03 +02:00
Dietmar Maurer
3dad8dc716 run pveproxy as unpriviledged user (www-data)
We log to /var/log/pveproxy/access.log. Extra directory is needed because we run
as www-data (no permissions to write into /var/log/pve/).
2013-04-10 09:58:35 +02:00
Dietmar Maurer
026fd9cf6e only allow pre-defined directories (avoid regex)
Just to be more secure.
2013-04-10 07:10:50 +02:00
Dietmar Maurer
05c7c27fe4 use liburi-perl to get query params 2013-04-10 06:08:03 +02:00
Dietmar Maurer
bd7333661e implement new event based api server 2013-04-09 11:51:51 +02:00