Skip to content
This repository was archived by the owner on Jan 31, 2022. It is now read-only.

Latest commit

 

History

History
67 lines (53 loc) · 2.11 KB

Configuration.md

File metadata and controls

67 lines (53 loc) · 2.11 KB

config.yml

1. Setup the Database

The database section of the configuration file is for connecting to a PostgreSQL database to store linked accounts, alt accounts, bans, and authentication codes. Make sure that the username you enter, has has permission to create schemas.

If you need help setting up a PostgreSQL database here's some references

Once you have postgres install enter psql again and enter the following commands to allow MCAuth to manage it's own part in the database.

Create the user & password

CREATE USER mcauth WITH PASSWORD 'password'; # Change 'password'

Give mcauth access to create schemas

GRANT CREATE ON DATABASE postgres TO mcauth;

Now fill in your config.yml

database:
  host:                 "localhost"
  port:                 5432
  username:             "mcauth"
  password:             "password"
  database_name:        "postgres" # this should be "postgres"
  max_connections:      50
  max_idle_connections: 50
  conn_lifespan:        1h0m0s

2. Setup the Discord Bot

Go-to Discord's Developer Portal and create a new application, create a new bot by click bot on the left side bar, and copy the token and put it in your config.yml.

discord_bot:
  help_message:         "Join the server, enter you auth code by typing .mc auth <code>"
  token:                "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJGbG9vciBHYW5nIjoiT3VoISJ9.29wjTwrUk4XWQ1X9n9lCOP5R0B0O6PF7wdgBwNDNzig"
  prefix:               ".mc"

Visual Guides

new application screenshot new bot screenshot copy token screenshot

3. Setup the plugin

You'll need the port and token from the webserver section of the config. Follow the guide here to install the plugin and configure it.

webserver:
  port:                 5353
  token:                ""