Skip to content

SwapIDC integration ​

QuickIDC-SwapIDC targets classic SwapIDC installations.

Layout ​

text
plugins/QuickIDC-SwapIDC/
├── openidc.php
├── clientarea.tpl
├── whm.lib.php
├── version
└── lang/Chinese.php

Install ​

bash
cp -r plugins/QuickIDC-SwapIDC /path/to/swapidc/mods/server/openidc
chown -R www-data:www-data /path/to/swapidc/mods/server/openidc

Configuration ​

FieldExample
Node URLhttps://idc.example.com
Node tokenBearer token
Node ID / host_namepve-lab
Imagedebian12
Specs2 / 2048 / 40 / 10

Flow ​

text
Order → openidc_CreateAccount → POST /api/client/create/:hs_name
      → async task → record vm_uuid → templogin for console

Verify ​

  • [ ] module visible
  • [ ] server settings save
  • [ ] order creates instance
  • [ ] user panel shows IP/console
  • [ ] delete reclaims resources

Common issues ​

SymptomFix
Module missingdirectory name / permissions / PHP version
401token mismatch
404host_name mismatch

Released under the AGPLv3 License.