193 Commits
Author SHA1 Message Date
Arthur Lu f9ad56a283 fix instance create pool error mesage 2024-04-23 18:56:43 +00:00
Arthur Lu 0a8bd87ed4 check instance pool matches user allowed pools,
update user allowed nodes format,
add get user ct templates route
2024-04-15 21:52:20 +00:00
Arthur Lu e032038100 update localdb backend interface,
update all references to localdb backend
2024-04-09 21:02:41 +00:00
Arthur Lu 1c41d55ceb add pool selection to instance create,
allow multiple pools per user
2024-04-08 21:19:57 +00:00
Arthur Lu 848eb5d1d1 implement full interface for paasldap backend 2024-04-05 22:33:56 +00:00
Arthur Lu 0b5cfff519 add user backend documentation 2024-04-04 18:53:36 +00:00
Arthur Lu b3c9bb48c1 update backend interfaces 2024-04-03 20:03:31 +00:00
Arthur Lu cea8d80ea2 fix function name in AUTH_BACKEND 2024-03-25 21:30:23 +00:00
Arthur Lu 06d160d9ce fix linting 2024-02-24 20:57:11 +00:00
Arthur Lu 67a17cfef0 fix missing return value in user password set 2024-02-23 22:27:28 +00:00
Arthur Lu fae79e4ab0 add localdb template,
update paasldap backend interface
2024-01-30 20:33:41 +00:00
Arthur Lu c347a3b8c0 add put and delete proxmox proxy routes 2024-01-22 19:47:13 +00:00
Arthur Lu 1ffe9fbe7c fix bugs in paasldap backend and auth password endpoint 2024-01-18 21:37:46 +00:00
Arthur Lu bb047a3782 fix issues in backend implementions,
auth endpoint now fetches all relevant backend tokens
2024-01-17 20:21:55 +00:00
Arthur Lu 0013833bce update README 2024-01-16 22:36:21 +00:00
Arthur Lu c9e4bb7484 fix linting 2024-01-12 01:49:24 +00:00
Arthur Lu 68f92493b7 fix various formatting,
add interface for generic backends,
add interfaces for DB and AUTH type backends,
implement basic user password change method
2024-01-09 00:47:33 +00:00
Arthur Lu 18590011cc major rework of backend loading and usage:
- split config from user data to config.json, add config.hson.template
- moved default user data localdb to root folder
- moved pve, localdb, ldap backend handlers to backends sub folder
- add dynamic loading of all backends
- add dynamic mapping for auth backends to support multiple auth sources
- update affected endpoints
2024-01-06 22:36:18 +00:00
Arthur Lu c801ca99df fix linting 2023-12-15 08:14:39 +00:00
Arthur Lu 3d746791e3 change default api port 2023-12-14 00:26:49 +00:00
Arthur Lu a55b9a58d7 move listenPort option to argv 2023-11-16 23:26:11 +00:00
Arthur Lu e2cf883e64 update localdb template 2023-11-15 20:04:53 +00:00
Arthur Lu c2ab19b6d6 add per instance resource quotas,
move getFullInstanceConfig to utils.js,
rework resource related utilities to use new quota format
2023-11-15 19:57:59 +00:00
Arthur Lu 02764c8f6a simplify auth/password logic 2023-11-14 23:50:24 +00:00
Arthur Lu 6e2b284118 fix bug in net create 2023-11-09 20:46:50 +00:00
Arthur Lu 5989d86ef8 add password change route 2023-11-09 18:57:52 +00:00
Arthur Lu eb71f57427 fix linting 2023-10-25 19:46:37 +00:00
Arthur Lu 2f20992e7c fix issue with localdb,
rename db.js to localdb.js
add option to dynamically load db backend
2023-10-24 19:01:53 +00:00
Arthur Lu bf8c8d1f00 change localdb interface 2023-10-23 22:09:31 +00:00
Arthur Lu 2d7df40b04 improve getUsedResources,
remove unused params for some pve functions
2023-10-21 00:13:29 +00:00
Arthur Lu 75c80fd271 update readme and db template 2023-10-13 18:01:53 +00:00
Arthur Lu ad293d890a fix dashboard in readme 2023-10-05 21:19:15 +00:00
Arthur Lu 31463cb55f update readme with dashboard rename 2023-10-05 21:10:49 +00:00
Arthur Lu e3e2ec272b update readme 2023-10-05 20:30:25 +00:00
Arthur Lu 43988e9815 simplify requestPVE args 2023-09-12 19:16:19 +00:00
Arthur Lu a366918256 update resource data format,
add names to pci and cpu list resources
2023-09-08 20:48:33 +00:00
Arthur Lu 45006171ee update localdb template 2023-08-30 20:50:21 +00:00
Arthur Lu abeb307de1 fix error with empty boot order,
fix error with multiple item boot order
2023-08-28 23:34:43 +00:00
Arthur Lu 33660b9f8c fix linting 2023-08-24 22:28:25 +00:00
Arthur Lu 0e836d50c4 set boot order in instance config handler 2023-08-22 06:06:10 +00:00
Arthur Lu 212d9721f8 dynamically import routes 2023-08-07 18:48:47 +00:00
Arthur Lu 0232b2208e add api package cli arg,
fix comments
2023-08-05 00:38:57 +00:00
Arthur Lu 221c854d50 fix db module imports 2023-08-03 19:51:09 +00:00
Arthur Lu c5f7239813 fix argument parse bug 2023-08-03 19:34:37 +00:00
Arthur Lu c9807668ea add cli arg for localdb path 2023-08-03 19:31:11 +00:00
Arthur Lu 3aaa0d2098 route cluster routes to /api/cluster 2023-08-03 00:36:18 +00:00
Arthur Lu 57dab01d7b finish moving routes to files 2023-08-01 19:07:45 +00:00
Arthur Lu 7fe1d2af5c fix linting errors,
group more routes,
use mergeParams in router init
2023-07-31 19:23:22 +00:00
Arthur Lu 76ccfabf59 add default export to db and package module,
start grouping routes by type,
use dynamic imports and express routers
2023-07-27 20:10:46 +00:00
Arthur Lu fcb2151019 update localdb template 2023-07-25 19:26:14 +00:00
Arthur Lu d172f0a590 add cluster iso route 2023-07-25 00:03:13 +00:00
Arthur Lu 790aa4959d fix interrupt sync desync issues 2023-07-18 20:27:51 +00:00
Arthur Lu 98f2c39e6e fix bug with socket close handling of poolUserMap,
improve socket init,
improve interrupt sync timing progression issues
2023-07-17 19:41:20 +00:00
Arthur Lu e0a121009d fix issue with client sync init 2023-07-15 22:59:18 +00:00
Arthur Lu e869834eb3 implement interrupt sync 2023-07-14 21:48:06 +00:00
Arthur Lu b827ff0025 fix formatting 2023-07-12 06:38:06 +00:00
Arthur Lu 070d7714ca add better client sync schemes initialization,
add client sync scheme selects to localdb,
start on interrupt sync scheme implementation,
change sync endpoints to start with /sync/
2023-07-11 22:06:41 +00:00
Arthur Lu 096be3d032 add /cluster/statushash endpoint 2023-07-11 18:48:45 +00:00
Arthur Lu faa0efa75c fix endpoint comment format 2023-07-10 22:18:08 +00:00
Arthur Lu f0e5340474 comment a bunch of code 2023-07-10 06:50:29 +00:00
Arthur Lu ffdce767ab fix some endpoint comments,
add user node permission check to /node/pci
2023-07-07 00:06:36 +00:00
Arthur Lu 8fb26b274a fix linting issues 2023-07-06 05:13:22 +00:00
Arthur Lu 9e6f4cc499 consolidate user config paths,
move global config values to global key in localdb
2023-07-05 23:14:45 +00:00
Arthur Lu 9da8880163 add basic regex patterns for endpoint path params 2023-07-04 21:11:46 +00:00
Arthur Lu 6a3bca4948 move most endpoint parameters to route 2023-07-04 04:41:25 +00:00
Arthur Lu bc1757c9c3 set brace style to Stroustrup 2023-06-29 22:09:57 +00:00
Arthur Lu 1e8a4a8c29 lint all files 2023-06-29 21:53:20 +00:00
Arthur Lu e39f954fc1 add eslinting, fix linting issues 2023-06-29 21:35:19 +00:00
Arthur Lu 90dbcdbb10 mionor fixes to localdb template 2023-06-29 20:27:05 +00:00
Arthur Lu df8d472f85 improve db format for templates,
add additional per user customization for instance network interfaces,
update tempalte localdb
2023-06-29 02:07:57 +00:00
Arthur Lu 8a8a4c0df6 check storage on disk create only when disk is not ide 2023-06-23 03:37:15 +00:00
Arthur Lu 4fa5fb158f check resource approval only if pci device differs 2023-06-23 03:20:56 +00:00
Arthur Lu 1fb934fd0f implement modify pci endpoint 2023-06-23 03:01:28 +00:00
Arthur Lu 19f38fa25d implement pcie device add and delete endpoints,
change getDeviceInfo to return primary device with sun devices listed,
fix bug in approveResources when checking list type resources
2023-06-22 00:23:34 +00:00
Arthur Lu 49192daac6 add pci device resource to config,
implement endpoints for getting available devices,
update used resource calculation to include pci devices
2023-06-21 05:06:38 +00:00
Arthur Lu 83a03bfd7b update lcoaldb template
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-06-14 22:34:10 +00:00
Arthur Lu 03b3a994c6 improve user config routes,
add glocal resource config route,
remove debug console logs

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-06-14 22:20:30 +00:00
Arthur Lu e9386f5204 implement proc type in /instance/resources 2023-06-14 04:49:43 +00:00
Arthur Lu 8d7d952e21 fix bugs in network methods 2023-06-09 04:24:22 +00:00
Arthur Lu a807e5cb03 move source files to src folder,
move localdb to config folder,
consolidate vars.js with localdb,
move service scripts to service folder
2023-06-09 03:58:38 +00:00
Arthur Lu 0043e3e783 fix formatting 2023-06-09 02:05:26 +00:00
Arthur Lu c110330154 add checking for disk bus prefix in disk create and disk attach 2023-06-09 00:24:37 +00:00
Arthur Lu e356684cd9 improve method comments relating to pve builtin return objects,
add paths to create and delete network interfaces,
check for interface existence in modify interface,
add vlan specification to user config and use in network interface creation,
fix disk path security by checking disk existence or nonexistence,
TODO: check create and mount disk against allowed bus types

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-06-08 23:33:32 +00:00
Arthur Lu 78377c0479 fix handleResponse responding with proxmox task status
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-06-03 00:10:33 +00:00
Arthur Lu 2936d39368 change /api/node/pci to /api/instance/pci
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-06-02 23:14:13 +00:00
Arthur Lu 5eb5642166 fix nodes pci endpoint
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-06-01 17:12:52 +00:00
Arthur Lu 15f4026979 add /api/nodes/pci endpoint (untested)
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-06-01 15:35:20 +00:00
Arthur Lu 310ff8e6ae fix approveResources
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-05-24 23:10:05 +00:00
Arthur Lu 52d40796e9 fix bugs in utils.js
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-05-24 22:42:38 +00:00
Arthur Lu 0ad242a557 implement db as class,
improve approveResources

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-05-24 22:21:00 +00:00
Arthur Lu 7e7f9b2b55 fix api crash on username missing from lcoaldb 2023-05-23 00:11:48 +00:00
Arthur Lu c8c42d3b95 remove console.log
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-05-19 20:50:45 +00:00
Arthur Lu fd7dec6af3 update localdb.json.template,
fix tempalte resource checking for post /instance

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-05-19 20:50:07 +00:00
Arthur Lu 87b1b622fb fix comments,
fix handleResponse

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-05-19 20:03:38 +00:00
Arthur Lu 478a25c9e0 fix issue in swap handling in /instance/resources
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-05-18 20:19:01 +00:00
Arthur Lu f43e9e50d7 improve response value of /user/nodes endpoint,
add basic documentation of routes,
add swap for lxc instances to /instance/resources endpoint

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-05-18 20:05:41 +00:00
Arthur Lu 505ea28e8a handle NaN or undefined values in approveResources
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-05-18 14:58:44 +00:00
Arthur Lu 70953f3194 mitigate some vulnerabilities in disk attach,
handle errors in getDiskInfo as result of nonexistent disk
2023-05-18 08:09:18 +00:00
Arthur Lu 2cd23324e5 fix formatting 2023-05-17 21:38:11 +00:00
Arthur Lu b12d84d4be fix authentication checks for routes involving specific instances 2023-05-17 21:30:36 +00:00
Arthur Lu 8c71ceafcf fix network resource usage calculation
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-05-16 16:50:24 +00:00
Arthur Lu 34de9788ba fix db template
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-05-16 16:46:15 +00:00
Arthur Lu 90d399d8b6 implement network interface endpoint
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-05-16 16:34:39 +00:00
Arthur Lu f415b8f962 fix auth early escape
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-05-16 15:46:39 +00:00
Arthur Lu 4039cdf92d fix bug in login endpoint
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-05-15 22:11:24 +00:00
Arthur Lu ef23428753 fix error handling in ticket endpoint
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-05-15 22:00:46 +00:00
Arthur Lu 0aff37a9c3 remove httponly form username cookie 2023-05-13 07:38:32 +00:00
Arthur Lu a70981afb6 update README 2023-05-13 07:36:13 +00:00
Arthur Lu 08947ca15d implement safer pve ticket endpoint 2023-05-13 07:34:58 +00:00
Arthur Lu a0ebcdf1b0 remove helmet 2023-05-13 05:17:48 +00:00
Arthur Lu 9cfa53172c fix bug in instance post
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-05-12 21:07:47 +00:00
Arthur Lu e89eeeb5cb separate user data endpoints
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-05-12 20:51:07 +00:00
Arthur Lu 2a37423dd9 style fix 2023-05-11 07:10:22 +00:00
Arthur Lu 3d72e189d4 update vars.js.template
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-04-27 17:27:51 +00:00
Arthur Lu 2a70548a43 add node restriction
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-04-27 15:39:01 +00:00
Arthur Lu 0063b6b2b9 Update README.md 2023-04-26 16:38:04 -07:00
Arthur Lu 8527c0aa80 Update README.md 2023-04-26 16:36:54 -07:00
Arthur Lu 4200bd7df4 Update README.md 2023-04-26 16:36:23 -07:00
Arthur Lu 7ea2160c9b fix /api/version 2023-04-26 21:58:15 +00:00
Arthur Lu cc3c1061ba use consistent version notation 2023-04-26 02:38:46 +00:00
Arthur Lu 51c10734b1 update readme with required nodejs version 2023-04-26 02:38:24 +00:00
Arthur Lu 6fc9113e4f use experimental import assertion,
requires nodejs 18 or higher
2023-04-26 01:40:12 +00:00
Arthur Lu 2deda42ec5 update to es6 and fix some syntax errors 2023-04-26 01:18:05 +00:00
Arthur Lu 631237d857 change /api/resources to /api/instance/resources
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-04-25 15:30:28 +00:00
Arthur Lu 096dfb10e0 fix bugs from refactor
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-04-24 21:45:32 +00:00
Arthur Lu 81c290f795 fix bug in /api/user
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-04-24 21:34:30 +00:00
Arthur Lu c7c1191587 code cleanup,
disk paths now under instance

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-04-24 21:28:58 +00:00
Arthur Lu 9ad10f6c82 fix bug in /user/instances 2023-04-21 22:40:12 +00:00
Arthur Lu d2d1f25131 add /user/instances path 2023-04-21 22:37:12 +00:00
Arthur Lu 952e7e590d minor change to user data to fit additional user data
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-04-20 21:39:41 +00:00
Arthur Lu 2399858d29 add vmid range check to instance creation,
add configurable templates to instance creation

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-04-20 21:27:32 +00:00
Arthur Lu 9943a35d7e simplify db
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-04-20 20:43:05 +00:00
Arthur Lu f2ccee5119 bug fixes
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-04-19 20:36:48 +00:00
Arthur Lu f274949523 Update README.md 2023-04-19 05:54:18 +00:00
Arthur Lu 7e0bce1dca add unit return to resources path 2023-04-19 02:46:05 +00:00
Arthur Lu 5862edcf24 fully implement new db 2023-04-19 02:42:35 +00:00
Arthur Lu dacbd965cf implement new db strategy
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-04-19 01:03:55 +00:00
Arthur Lu c92fc95e92 fix bug in create disk resource allocation
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-04-11 21:57:14 +00:00
Arthur Lu 3810eef1fa fix spelling
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-04-11 18:00:04 +00:00
Arthur Lu 1acaa6c864 use a better db json layout
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-04-11 17:56:48 +00:00
Arthur Lu 0c6fc5ae1f fix bug in resource get
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-04-03 21:53:11 +00:00
Arthur Lu 8862144524 add path to get remaining resources
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-04-03 21:45:06 +00:00
Arthur Lu d135cec5ae fix bug in input validation
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-03-24 22:22:00 +00:00
Arthur Lu eed39a007b remove extra consol logs
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-03-24 22:14:21 +00:00
Arthur Lu bd845b47f0 fix bug in validation
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-03-24 22:10:17 +00:00
Arthur Lu 33deb01b74 implement quick input checks
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-03-24 19:35:16 +00:00
Arthur Lu 143e9d3f6e Update README.md 2023-02-28 21:15:17 -08:00
Arthur Lu 3afb302a16 remove extra comment
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-03-01 03:44:42 +00:00
Arthur Lu 38589b1b33 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
Arthur Lu 51d231e7bf improve return data on success
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-03-01 00:53:29 +00:00
Arthur Lu 4bb9aadd04 almost finish implementing resource check
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-03-01 00:50:24 +00:00
Arthur Lu 96bbd469fb implement resource checking all config paths
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-03-01 00:38:09 +00:00
Arthur Lu 3e3ae6077b add some comments
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 23:36:22 +00:00
Arthur Lu 1e4b72cb8b rename getDiskByConfig to getDiskConfig
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 23:33:00 +00:00
Arthur Lu 2b311cd1f1 improve api responses
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 23:27:32 +00:00
Arthur Lu 4fdb2f1cb8 add resource check on resize
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 23:24:49 +00:00
Arthur Lu 976995e2a1 use vars to specify cors domain
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 22:04:30 +00:00
Arthur Lu ac08243622 update required api permissions
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 02:42:36 +00:00
Arthur Lu eb5b39ea22 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
Arthur Lu 2e6840ce99 fix cors origin
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 01:37:46 +00:00
Arthur Lu f0798759c2 fix README instructions
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 00:07:24 +00:00
Arthur Lu 537420624e improve local db utils
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-27 23:11:51 +00:00
Arthur Lu aa548d4fa8 add create instance endpoint
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-27 23:04:38 +00:00
Arthur Lu dd40e0a802 improve endpoint args 2023-02-27 02:29:39 +00:00
Arthur Lu 3febe6601c add basic local db utility functions 2023-02-27 01:28:01 +00:00
Arthur Lu 3fe6994064 add additional prototypes in db.js 2023-02-27 01:09:49 +00:00
Arthur Lu 31ce8ae582 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
Arthur Lu 0cdb152a24 fix proxmox proxy post body parsing issue
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-24 22:34:19 +00:00
Arthur Lu ec929d5f90 add post proxmox proxy endpoint
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-24 22:21:21 +00:00
Arthur Lu 6f2592dcca add no token proxmox api proxy endpoint
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-24 22:19:30 +00:00
Arthur Lu f93a3726ac streamline authentication checking,
start on instance creation

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-24 00:17:28 +00:00
Arthur Lu ab235fe581 add disk create endpoint
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-23 20:39:33 +00:00
Arthur Lu 5f1cf088a0 add instance delete path
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-21 22:35:09 +00:00
Arthur Lu bb7660c202 add changing cpu and memory values
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-17 22:17:00 +00:00
Arthur Lu a97811e516 improve return values 2023-02-13 04:34:07 +00:00
Arthur Lu 623b2087af add upid wait for actions which take significant time 2023-02-13 04:30:41 +00:00
Arthur Lu b3379bfa3c add old got as dependency (is a security vulnerability),
use axios as http request handler
2023-02-13 02:11:55 +00:00
Arthur Lu b69d248560 add start script and sample systemd service
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-10 21:58:22 +00:00
Arthur Lu 47e3cafc8b add disk attach,
add disk delete

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-10 21:41:36 +00:00
Arthur Lu 6460f6fd51 implement POST /api/disk/move
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-02 19:34:51 +00:00
Arthur Lu d479879d2c implement resize endpoint
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-30 23:19:24 +00:00
Arthur Lu f46c1165fa fix detach disk endpoint for lxc 2023-01-26 07:53:56 +00:00
Arthur Lu ee7fdad946 implement disk detach 2023-01-25 02:01:47 +00:00
Arthur Lu 0131e5ef7a add detach disk path,
add pveAPIToken config item
2023-01-25 00:48:15 +00:00
Arthur Lu 5639e01815 add vars.js.template,
use vars config items in api
2023-01-25 00:28:44 +00:00
Arthur Lu e27dd22ff6 add auth path, add token to requestPVE
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-24 20:18:29 +00:00
Arthur Lu d9f1839aab add headers and status to response 2023-01-22 23:17:38 +00:00
Arthur Lu f05726bc3f sample code for interfacing with proxmox api 2023-01-20 06:40:21 +00:00
Arthur Lu 5b03a331ea add echo path,
add cookie-parser to requirements

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-19 20:22:26 +00:00
Arthur Lu ab027bf278 update README.md
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-19 19:50:01 +00:00
Arthur Lu 5a63b26620 add simple version route
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 15:46:42 -08:00
Arthur Lu 96133f5882 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
Arthur Lu c3d50f6a30 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

Diff Content Not Available