- Joined
- Jul 24, 2011
- Messages
- 841
- Reaction score
- 786
Hello!
Today had some time to learn and work on the api. It's 100% based on GoldenHeaven Node JS scipt, but on python.
Installation:
-Extract the package and edit your DB_PASSWORD in db.py
-Copy the files to correct folder (as it in the zip: /opt/ghapi-python)
-chmod 0777 on install.sh
-Run install.sh
It will install the python and the necessary libraries, and it will add the api as service, so you don't run it every time.
commands when you need edit/restart it:
sudo systemctl start ghapi
sudo systemctl stop ghapi
sudo systemctl restart ghapi
LoginSvr_01 settings:
Important notice! Use the default LoginSvr bin! (Link: Episode 33 Release)
nftables (firewall) rules for debian11 to avoid external api connections:
(/etc/nftables.conf) -> after editing you must restart the nftables!
If you get AffiliatedCorpIP problem:
Account Database -> dbo.cabal_gms_ini_table and add this like as in this picture:
With working email function:
Email Sender version
Credits:
GoldenHeaven for the base source
amiidotcom to fix the shitcode which i made
Today had some time to learn and work on the api. It's 100% based on GoldenHeaven Node JS scipt, but on python.
Installation:
-Extract the package and edit your DB_PASSWORD in db.py
-Copy the files to correct folder (as it in the zip: /opt/ghapi-python)
-chmod 0777 on install.sh
-Run install.sh
It will install the python and the necessary libraries, and it will add the api as service, so you don't run it every time.
commands when you need edit/restart it:
sudo systemctl start ghapi
sudo systemctl stop ghapi
sudo systemctl restart ghapi
LoginSvr_01 settings:
Code:
DiGeamAuthWeb=1
DiGeamAuthDB=1
DiGeamOTP=1
DiGeamToken=1
AuthMethodStep1=DiGeamAuthWeb;DiGeamAuthDB
AuthMethodStep2=DiGeamOTP
[DiGeamAuthWeb]
Host=YOUR_IP:3000
Path=/game-api/game_login
#
[DiGeamOTP]
Host=YOUR_IP:3000
Path=/game-api/otp_login
#
[DiGeamToken]
Host=YOUR_IP:3000
Path1=/game-api/get_auth
Path2=/game-api/login_auth
Service=Cabal
ServerID=1100
Important notice! Use the default LoginSvr bin! (Link: Episode 33 Release)
nftables (firewall) rules for debian11 to avoid external api connections:
(/etc/nftables.conf) -> after editing you must restart the nftables!
Code:
#!/usr/sbin/nft -f
flush ruleset
table inet filter {
chain input {
type filter hook input priority 0;
ip saddr 172.17.0.0/16 tcp dport 3000 accept
tcp dport 3000 drop
}
chain forward {
type filter hook forward priority 0;
}
chain output {
type filter hook output priority 0;
}
}
If you get AffiliatedCorpIP problem:
Account Database -> dbo.cabal_gms_ini_table and add this like as in this picture:
With working email function:
Email Sender version
Credits:
GoldenHeaven for the base source
amiidotcom to fix the shitcode which i made
Attachments
Last edited:

