Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Goedge Extensions #458

Closed
wants to merge 5 commits into from
Closed

Goedge Extensions #458

wants to merge 5 commits into from

Conversation

shirakun
Copy link
Contributor

Hi
Goedge is a cdn system
Github: https://github.com/GoEdgeLab

I tried to implement this extension for it

With this extension you can enable/suspend/unsuspend/delete cdn in paymenter.
Before using this extension, you need to make sure you have a licence to use the goedge api and goedge multiuser.

Setup

  1. Create and enable a Goedge api node
  2. Create a system user in the Goedge panel and add an AccessKey to it.
  3. Create your CDN plan in Goedge and set an amount for it (this amount is not the final amount to be paid by the user, you can set it as you like, the final amount will be based on the paymenter's amount).
  4. Enable this extension in paymenter and set up your accesskey/api endpoint/user panel url
  5. Add the product in the payer and change the extension of the product to Goedge, then select the corresponding plan and period.

Known issues

  • Since each plan of a Goedge user must have an end date, and since paymenter does not support "updateServer", the plan cycle of a Goedge user created with this extension will last for a very long time.
  • Due to the limit of Goedge api, createServer uses multiple APIs (create user/query plan/user recharge/plan purchase/domain binding) to complete, if your goedge api response time is too long, please pay attention to the queue of execution timeout time
  • Due to limit of the goedge api, suspend/unsuspend will be implemented by modifying the plan expire time.

@shirakun shirakun closed this Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant