OpenTibiaBR
GithubDiscordSponsor
  • Home
    • 📖Welcome!
    • 💵Donate
  • OpenTibiaBR
    • 🖥️Projects
      • 🐦Canary
        • About
        • Getting Started
          • Compiling
            • Linux
              • [Linux] Compiling Canary Sources
            • Windows
              • Visual Studio
                • [Windows][VC2022][CMake] Compiling Canary Sources
                • [Windows][VC2022][Solution] Compiling Canary Sources
              • WSL
                • [WSL] Compiling Canary Sources
          • Installing
            • aaPanel
              • [Linux] Canary + aaPanel + MyAAC
            • Docker
              • [Docker] Canary + MariaDB + MyAAC
            • Linux
              • Nginx + MariaDB + MyAAC
            • Windows
              • Uniform Server
                • [Windows][Basic] Canary + Uniform Server + MyAAC
              • XAMPP
                • [Windows][Advanced] Canary + XAMPP + MyAAC
        • Tutorials
          • Basic
            • Auto Backup Server Database
            • Auto Restart and Linux Logs
            • Custom Bestiary / Prey with Canary Monster Editor
            • Event Schedule Canary / OTServBR-Global
            • How to make a custom server with Canary
            • How to reset players in your database
            • How to secure a Linux server
            • SSL Certificates
            • Webhook Discord
            • [Outdated] Custom Bestiary / Prey
            • [Linux] Backup + Upload - Google Drive
            • [Linux] How to install Linux headers
            • VPS Linux
            • [Windows] SSL/HTTPS Certificate with XAMPP
          • Mapping
            • [Windows] Remere's Map Editor - Opening Canary / OTServBR-Global Map
            • [Windows] Remere's Map Editor - Converting map server id to client id
          • Programming & Scripting
            • How to add a new vocation
            • Revscriptsys
            • Guide Lua Objects
            • How to get raceId for monsters
          • Websites
            • [Canary][OTServBR-Global][GesiorAAC][MyAAC] Set up Initial Character
          • Miscellaneous
            • Useful Tutorials
            • Video Tutorials
      • 🗺️Remere's Map Editor
        • About
        • Getting Started
          • Linux
            • [Linux] Compiling Remere's Map Editor Sources
          • Windows
            • WSL
              • [WSL] Compiling Remere's Map Editor Sources
            • Visual Studio
              • [Windows][VC2022][CMake] Compiling Remere's Map Editor Sources
              • [Windows][VC2022][Solution] Compiling Remere's Map Editor Sources
      • 🎮OTClient Redemption
        • About
        • Getting Started
          • Android
            • [Android] Compiling OTClient Redemption Sources
          • Linux
            • [Linux] Compiling OTClient Redemption Sources
          • Windows
            • WSL
              • [WSL] Compiling OTClient Redemption Sources
            • Visual Studio
              • [Windows][VC2022][CMake] Compiling OTClient Redemption Sources
              • [Windows][VC2022][Solution] Compiling OTClient Redemption Sources
          • Web
            • [Web] OTClient Redemption
        • Tutorials
          • Basic
            • Client Updater
      • 🎮OTClientV8
        • About
        • Getting Started
          • Android
            • [Android] Compiling OTClientV8 Sources
          • Linux
            • [Linux] Compiling OTClientV8 Sources
          • Windows
            • WSL
              • [WSL] Compiling OTClientV8 Sources
            • Visual Studio
              • [Windows][VC2022][CMake] Compiling OTClientV8 Sources
              • [Windows][VC2022][Solution] Compiling OTClientV8 Sources
        • Features
          • Health and Mana bar backgrounds
          • HTTP support
          • OTML Improvement
          • Simple cam recorder and player
          • Updater, encryption and compression
          • WebSockets
      • ⚙️Client Editor
        • About
        • Getting Started
      • ⚙️Login Server
        • About
        • Getting Started
      • 🚀Canary Launcher
        • About
        • Getting Started
          • Windows
            • [Windows][VC2022][Solution] Compiling Canary Launcher Sources
      • 🚀Slender Launcher
        • About
        • Getting Started
          • Windows
            • [Windows][Go] Compiling Slender Launcher Sources
      • 🌐CanaryAAC
        • About
        • Informations
          • Features
          • Functions
          • API
          • Routes
          • Middleware
      • 🌐MyAAC
        • About
      • 🌐SlenderAAC
        • About
    • 🔗Downloads
      • 🎮Clients
        • Client 11
        • Client 13
          • Tutorials
            • Client with HexEditorXVI32
            • Client with Notepad++
            • Client with config.ini
            • [Windows] How to change client background
        • Minimap
      • 📑Codes
        • C++
        • Events
        • Functions
        • Libs
        • Modules
        • Others
      • 🖼️Images
        • PSDs
        • Others
      • 🗺️Maps
        • Custom
        • Global
      • 📑Revscripts
        • Actions
        • CreatureEvents
        • GlobalEvents
        • MoveEvents
        • NPCs
        • Spells
        • Systems
        • TalkActions
      • ⚔️Sprites
      • ⚙️Tools
        • Editors
        • Map Generators
      • 🌐Web Packages
        • Linux
        • Windows
      • 🌐Website Applications
        • Websites
          • CanaryAAC
            • CanaryAAC Bot
          • Gesior2012
          • GesiorAAC Global
          • MyAAC
          • MyAAC Global
          • SlenderAAC
          • ZnoteAAC
        • Applications
        • Layouts
        • APIs and SDKs
Powered by GitBook
On this page
  • What is CanaryAAC:
  • Github:
  • Image:
  • Getting Started:
  • How to connect with CanaryAAC:
  1. OpenTibiaBR
  2. Downloads
  3. Website Applications
  4. Websites

CanaryAAC

Last updated 8 months ago

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 ()

Github:

Github

Image:

Image

Getting Started:

Linux

Nginx Config:

  • In the terminal type the following command:

sudo rm /etc/nginx/sites-enabled/default
sudo nano /etc/nginx/conf.d/default.conf
  • Configure leaving it this way:

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 / {
                try_files $uri $uri/ /index.php?$query_string;
         }

        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/run/php/php8.2-fpm.sock;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
        }

        location ~ /\.ht {
                deny all;
        }
}
sudo nginx -t
sudo systemctl reload nginx

Database:

  • Go to phpMyAdmin.

  • Import the schema.sql that is in the Canary Server folder.

  • Import the canaryaac.sql that is available below:

Canary config.lua:

Install CanaryAAC:

  • cd ~
    sudo git clone https://github.com/opentibiabr/canaryaac.git
    sudo mv canaryaac/* /var/www/html
    sudo rm -rf canaryaac
    sudo chown -R www-data:www-data /var/www/html
    cd /var/www/html
    sudo chmod 755 -R . && sudo chmod 755 -R app/ includes/ resources/ routes/ vendor/
  • Env file:

  • cd /var/www/html
    sudo nano .env
  • Configure .env file with the informations below:

  • URL='http://127.0.0.1'
    SERVER_PATH='/home/<your-user>/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'
  • Save the file.

  • Open CanaryAAC:

  • http://127.0.0.1 (for localhost).

  • http://domain-or-ip.

Windows

Web Packages:

  • Go to phpMyAdmin.

  • On the left side click +New and create a database (e.g. canary)

  • Import the schema.sql that is in the Canary folder.

  • Import the canaryaac.sql that is available below:

  • 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: 1340;

  • Port: 80.

(Recommended)

🔗
🌐
Nginx
MariaDB
MariaDB User
PHP
phpMyAdmin
Download
Config.lua
Uniform Server
XAMPP
https://github.com/opentibiabr/canaryaac/blob/main/canaryaac.sql
https://github.com/opentibiabr/canaryaac
CanaryAAC
#client-editor