Commit Graph

41 Commits

Author SHA1 Message Date
Dietmar Maurer
76281be8a4 cleanup: use new run_cli_handler() method 2015-10-02 11:28:01 +02:00
Dietmar Maurer
6346d5d565 use PVE::SafeSyslog in pveproxy and pvedaemon 2015-09-08 16:57:53 +02:00
Dietmar Maurer
b86b0d29d5 convert pveproxy into a PVE::Service class 2015-09-04 14:16:25 +02:00
Wolfgang Bumiller
e7206545f0 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
cae5db7124 listen on ipv6 if the node's hostname resolves to ipv6 2015-05-08 12:44:02 +02:00
Emmanuel Kasper
4fe2de1bee 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
3852d71842 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
050383dc9a 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
2ba2236bd7 correctly create /var/run/pveproxy at startup 2015-03-03 07:02:57 +01:00
Dietmar Maurer
3c9f7ac986 avoid shell scripts in service definitions 2015-03-02 18:29:18 +01:00
Dietmar Maurer
8d9a164119 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
0b4a6c573a use new pidfile option (instead of run_dir) 2015-01-02 14:19:23 +01:00
Dietmar Maurer
64a5c80481 use setuid/setgid feature from PVE::Daemon 2015-01-02 14:11:38 +01:00
Dietmar Maurer
8208f7db2f remove class APIDaemon
Moved last used sub into PVE::API2Tools.
2015-01-01 16:54:21 +01:00
Dietmar Maurer
fd2c4d2534 pveproxy: use PVE::Daemon 2015-01-01 16:19:41 +01:00
Dietmar Maurer
f6bc4a73d0 pveproxy: also support newer tls versions 2014-12-02 14:01:32 +01:00
Dietmar Maurer
434e314196 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
9940ea0165 add sencha touch based GUI for mobile devices 2014-08-05 08:31:17 +02:00
Dietmar Maurer
364b1b589d add sencha touch framework 2014-08-05 07:00:02 +02:00
Dietmar Maurer
eeffac5b3b generate index file for noVNC here
Include CSRFToken and gettext catalogs.
2014-08-05 06:38:01 +02:00
Dietmar Maurer
cba684d8d6 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
d685ae5b70 pveproxy: add routing to novnc dirs 2014-06-13 10:34:13 +02:00
Dietmar Maurer
3d84ba73bb 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
0cf4ab9b8e include bootstrap html framework 2014-05-02 11:35:16 +02:00
Dietmar Maurer
fa239655a0 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
56e59fcc14 add X-UA-Compatible tag
To avoid GUI bugs with IE
2014-04-26 09:33:02 +02:00
Dietmar Maurer
45c7d95974 correctly set content type for GUI index page 2013-10-29 11:09:26 +01:00
Stefan Priebe
cc04752964 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
dd28cbbd1b add favicon.ico 2013-08-16 13:06:32 +02:00
Dietmar Maurer
787217cdca allow to configure cipher list for pveproxy 2013-08-01 09:36:53 +02:00
Dietmar Maurer
60172a9333 pveproxy: use same cipher list as debian apache ssl.conf 2013-07-24 06:56:45 +02:00
Dietmar Maurer
3ffb722d3c reuse host based access control code for spiceproxy 2013-06-27 07:55:11 +02:00
Dietmar Maurer
81af31335e pveproxy: implement host based access control 2013-04-23 10:30:10 +02:00
Dietmar Maurer
cb39891f75 code cleanups 2013-04-17 08:28:05 +02:00
Dietmar Maurer
519ea5b07f implement file upload
And remove CGI.pm dependency (because we want nonblocking upload).
2013-04-15 11:20:17 +02:00
Dietmar Maurer
f4defdaafb code cleanups 2013-04-11 08:31:03 +02:00
Dietmar Maurer
21920a6243 implement signal handler for clean reload/restart 2013-04-10 11:12:03 +02:00
Dietmar Maurer
4b73743aa9 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
60630ac1c3 only allow pre-defined directories (avoid regex)
Just to be more secure.
2013-04-10 07:10:50 +02:00
Dietmar Maurer
eff15abe48 use liburi-perl to get query params 2013-04-10 06:08:03 +02:00
Dietmar Maurer
962a5c2865 implement new event based api server 2013-04-09 11:51:51 +02:00