Commit Graph

147 Commits

Author SHA1 Message Date
b7018aae33 Update README.md 2023-02-28 21:15:17 -08:00
e042bf6c41 remove extra comment
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-03-01 03:44:42 +00:00
71b786792f implement disk deallocation in delete instance,
remove console.logs

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-03-01 01:14:03 +00:00
364c268a64 improve return data on success
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-03-01 00:53:29 +00:00
cf418bc610 almost finish implementing resource check
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-03-01 00:50:24 +00:00
1f25cc1cd1 implement resource checking all config paths
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-03-01 00:38:09 +00:00
22e12da060 add some comments
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 23:36:22 +00:00
e8060bf691 rename getDiskByConfig to getDiskConfig
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 23:33:00 +00:00
8118a31ef6 improve api responses
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 23:27:32 +00:00
1c27b3c2a8 add resource check on resize
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 23:24:49 +00:00
b970e990a6 use vars to specify cors domain
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 22:04:30 +00:00
7b95a3ddab update required api permissions
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 02:42:36 +00:00
7015e356e2 assign pool membership of new isntance using user group membership
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 02:38:30 +00:00
d8e6274c3d fix cors origin
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 01:37:46 +00:00
dc50a90bd5 fix README instructions
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 00:07:24 +00:00
f65772d6e4 improve local db utils
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-27 23:11:51 +00:00
940f41875b add create instance endpoint
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-27 23:04:38 +00:00
44b5cd356a improve endpoint args 2023-02-27 02:29:39 +00:00
a296550349 add basic local db utility functions 2023-02-27 01:28:01 +00:00
71d793aabb add additional prototypes in db.js 2023-02-27 01:09:49 +00:00
c9595980cd rename index.js to main.js
remove unused imports in main.js,
add function prototypes to db.js
2023-02-26 08:36:27 +00:00
62eca6c427 fix proxmox proxy post body parsing issue
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-24 22:34:19 +00:00
ce8a4f29fa add post proxmox proxy endpoint
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-24 22:21:21 +00:00
c06a15c3bb add no token proxmox api proxy endpoint
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-24 22:19:30 +00:00
295d096ed8 streamline authentication checking,
start on instance creation

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-24 00:17:28 +00:00
57668384cc add disk create endpoint
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-23 20:39:33 +00:00
9f4320a697 add instance delete path
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-21 22:35:09 +00:00
14fa48bd86 add changing cpu and memory values
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-17 22:17:00 +00:00
934873396d improve return values 2023-02-13 04:34:07 +00:00
9d454183db add upid wait for actions which take significant time 2023-02-13 04:30:41 +00:00
1db0d1e80f add old got as dependency (is a security vulnerability),
use axios as http request handler
2023-02-13 02:11:55 +00:00
816c5a2c9e add start script and sample systemd service
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-10 21:58:22 +00:00
a716e7efab add disk attach,
add disk delete

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-10 21:41:36 +00:00
00fe6c57a5 implement POST /api/disk/move
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-02 19:34:51 +00:00
b10c30e937 implement resize endpoint
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-30 23:19:24 +00:00
033ac452c3 fix detach disk endpoint for lxc 2023-01-26 07:53:56 +00:00
41ac95d16f implement disk detach 2023-01-25 02:01:47 +00:00
5b5fc2b930 add detach disk path,
add pveAPIToken config item
2023-01-25 00:48:15 +00:00
85d57b361b add vars.js.template,
use vars config items in api
2023-01-25 00:28:44 +00:00
e133971911 add auth path, add token to requestPVE
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-24 20:18:29 +00:00
49e44d776d add headers and status to response 2023-01-22 23:17:38 +00:00
73860cbb2c sample code for interfacing with proxmox api 2023-01-20 06:40:21 +00:00
a6b8ecf133 add echo path,
add cookie-parser to requirements

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-19 20:22:26 +00:00
abefd36391 update README.md
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-19 19:50:01 +00:00
8e1bf19d90 add simple version route
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 15:46:42 -08:00
ae0c197821 add body-parser for validation,
add cors for CORS headers,
add helmet for security,
add morgan for logging

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 15:10:11 -08:00
d6af5518de add package.json,
add gitignore,
add express as dependency

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 14:57:42 -08:00