CanaryAAC
What is CanaryAAC:
What is CanaryAAC
CanaryAAC is a free and open-source Automatic Account Creator (AAC) written in MVC-PHP. It supports only MySQL databases.
Infos:
Fully Object Oriented
Model/View/Controller (MVC)
Middlewares
API
Composer
Fast Route
PhpDotEnv
Twig
Google2FA
GuzzleHttp
DiscordPHP
PagSeguro
PayPal
MercadoPago
Using .env to configure
Credits:
Lucas Giovanni and OpenTibiaBR Contributors (https://github.com/opentibiabr/canaryaac)
Github:
Image:
Getting Started:
Linux
PHP:
sudo apt remove php* sudo apt update sudo apt upgrade sudo apt install software-properties-common apt-transport-https -y sudo add-apt-repository ppa:ondrej/php -y sudo apt update sudo apt install php8.1 php8.1-cli php8.1-curl php8.1-fpm php8.1-gd php8.1-mysql php8.1-xml php8.1-zip php8.1-bcmath php8.1-mbstring -y php8.1 -v sudo apt purge apache2* sudo apt autoremove cd / cd etc sudo rm -r apache2
Nginx Default File:
server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; index index.html index.php index.htm index.nginx-debian.html; server_name _; location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php8.1-fpm.sock; } location ~ /\.ht { deny all; } }
Installation:
Import the schema.sql that is in the Canary Server folder.
Import the canaryaac.sql that is available below:
Install CanaryAAC:
cd /var/www/html sudo wget -c https://github.com/opentibiabr/canaryaac/archive/refs/heads/main.zip -O canaryaac-main.zip sudo unzip canaryaac-main.zip sudo mv canaryaac-main/* /var/www/html sudo rm -rf canaryaac-main.zip canaryaac-main sudo rm index.html sudo chown -R www-data.www-data /var/www/html
Configure .env file with the informations, example:
URL='http://127.0.0.1' SERVER_PATH='C:/OpenTibiaBR/Canary/' # Database connection DB_HOST='127.0.0.1' DB_NAME='canary' DB_USER='your-user' DB_PASS='your-password' DB_PORT='3306' # Website configs MAINTENANCE=false DEV_MODE=true # PagSeguro PAGSEGURO_EMAIL='' PAGSEGURO_TOKEN='' # Mercado Pago MERCADOPAGO_TOKEN='' MERCADOPAGO_KEY='' MERCADOPAGO_CLIENTID='' MERCADOPAGO_SECRET='' # Paypal PAYPAL_CLIENTID='' PAYPAL_SECRET='' # Mail MAIL_SMTP='smtp://localhost' MAIL_WEB='contact@canaryaac.com' # Outfits Folder OUTFITS_FOLDER='/resources/images/charactertrade/outfits'
Open CanaryAAC:
http://127.0.0.1 (for localhost).
http://domain-or-ip.
Windows
Web Packages:
Uniform Server (Recommended)
Compatible canaryaac.sql:
Example .env file:
URL='http://127.0.0.1' SERVER_PATH='C:/OpenTibiaBR/Canary/' # Database connection DB_HOST='127.0.0.1' DB_NAME='canary' DB_USER='your-user' DB_PASS='your-password' DB_PORT='3306' # Website configs SITE_NAME=CanaryAAC MAINTENANCE=false DEV_MODE=true MULTI_WORLD=false # not ative # PagSeguro PAGSEGURO_EMAIL='' PAGSEGURO_TOKEN='' # Mercado Pago MERCADOPAGO_TOKEN='' MERCADOPAGO_KEY='' MERCADOPAGO_CLIENTID='' MERCADOPAGO_SECRET='' # Paypal PAYPAL_CLIENTID='' PAYPAL_SECRET='' # Mail MAIL_SMTP='smtp://localhost' MAIL_WEB='contact@canaryaac.com' # Outfits Folder OUTFITS_FOLDER='/resources/images/charactertrade/outfits'
How to edit the client:
Examples of IP in the client:
http://127.0.0.1/api/v1/login
http://127.0.0.1:8080/api/v1/login
http://127.0.0.1:8090/api/v1/login
http://domain-or-ip/api/v1/login
How to connect with CanaryAAC:
Canary
Client 13:
Edit the client and change the IP like in a example below:
http://127.0.0.1/api/v1/login
http://127.0.0.1:8080/api/v1/login
http://127.0.0.1:8090/api/v1/login
OTClient Redemption:
modules/corelib/http.lua:
local is_json = true
Login with account @god/god or your own account email and password;
Server: http://127.0.0.1/api/v1/login or your http://domain-or-ip/api/v1/login;
Client Version: 1321;
Port: 80.
Last updated