Skip to content

Multi Site Instance Discord Uploading

Yukimi Kazari edited this page Oct 12, 2022 · 10 revisions


If you want to upload to Sequenzia from multiple sites or instances, you would want to setup another Framework + MQ locally on each site.

NOTICE: If you just to run another FileWorker within the same site then you will want to enable external access and use the 'External Database' guide to configure, Then just start the FileWorker on that host.
This guide only applies if you are attempting to upload from completely separate locations/sites/cloud zones.

Enable External Access

You will need to start your main server with external access enabled. This will expose the database and MQ ports, You are responsible for applying host firewall rules and or setting up a VPN/LANTIS Uplink

Start Sequenzia with External Access:

./sequenzia mode external
./sequenzia start

Ports:

  • 3306 (MySQL)
  • 5672 (MQ)
  • Optional - 15672, this is the MQ Web Interface that can be used to configure shovels and debug

Configure the Site

  1. Follow the "Prerequisites" and "Download the Compose Scripts" on the new host
  2. Modify the environment file in common/config/user-config.env
  • Replace hostname with the IP, FQDN, or localhost if your running LANTIS locally
  • Add port numbers if they are not the default
  • SYSTEM_NAME should be unique
SYSTEM_NAME='SITE-B'
DATABASE_HOST='hostname'
DATABASE_NAME='kanmi_system'
DATABASE_USERNAME='kanmi'
DATABASE_PASSWORD='PAssword'

WAIT_HOSTS='hostname:3306, mq.backend.acr:5672'
  1. Modify the user configuration in common/config/user-config.json
  • The following MUST be added otherwise the systems will fight with each other!
  • Home guild should match your main instance
  "DiscordHomeGuild": "991736826568134797",
  "Discord_Upload_Only": true

Start Uploader

Start Kanmi as Core + FileWorker:

./sequenzia mode uploader
./sequenzia start

Enable Insights

You can enable Insights for other sites running the following commands from #console

juzo SITE-B status enable #dashboard

Screen Shot 2022-10-12 at 01 41 08
You can configure Discord_Insights_Custom_Image_URL in user-config.json to set a custom footer image for this site

Multiple FileWorkers

Other FileWorkers on the same site can be configured by using the main instances SQL server and the new sites MQ. Refer to External MQ or SQL Database for configuration.