Plex Development
  • Introduction
  • Installation & Setup
    • Requirements
    • Windows Installation Guide
    • Linux Installation Guide
    • Bot Application Setup
    • Creating a MongoDB Cluster
    • Plex Tickets/Staff Dashboard
    • Setting Up a Reverse Proxy with Nginx
    • Setting Up a Reverse Proxy with Cloudflare Tunnels
  • Plex Tickets: Categories & Panels
  • Product Addons
    • Creating an addon
    • Addon Guidelines
  • Frequently Asked Questions
    • ⭐ Recommended Hosts
    • How to update
    • Common Issues
    • How to get channel/role/user ID
    • Using Custom Emojis
    • How to add multiple role ID's to config
    • Valid timezones
    • Keep Your Node.js Application Running 24/7
  • 🛒 PLEX STORE
    • Markdown Guide
    • Email System
    • How to update
    • API
    • Anti-piracy placeholders
  • LINKS
    • Website
    • Terms of Service
Powered by GitBook
On this page
  • Video tutorial:
  • Text:
  • Plex Tickets Dashboard:
  • Step 1: Downloading the files
  • Step 2: Configure the dashboard
  • Step 3: Restart and test
  • Plex Staff Dashboard:

Was this helpful?

  1. Installation & Setup

Plex Tickets/Staff Dashboard

A tutorial on how to setup and configure the dashboard for Plex Tickets. You can either watch the video or follow the instructions below:

PreviousCreating a MongoDB ClusterNextSetting Up a Reverse Proxy with Nginx

Last updated 3 months ago

Was this helpful?

Video tutorial:

Text:

This guide will guide you on how to setup the dashboard for both Plex Tickets and Plex Staff to put on your config.yml file.

We will do the following:

  • For Plex Tickets: Download the dashboard addon.

  • Get the Client ID, Client Secret of our bot.

  • Set the Callback URL on Discord's Developer Portal.

  • Configure the rest.

  • Test if everything works.

Plex Tickets Dashboard:

Step 1: Downloading the files

Step 2: Configure the dashboard

Next, you have to open the ./addons/Dashboard/config.yml file, and configure it.

Filling out the config

Important: If you are using shared hosting without a VPS or reverse proxy, remember to include the port in all the links provided below.

This part is very important to succeed. You have to consider that you want to use any proxy and or SSL for your dashboard.

  1. Get the Client ID and Client Secret

    • Locate your bot's clientId and clientSecret under the OAuth2 section. Reset the Client Secret if necessary, then copy both of them and put them into the config.yml file.

  2. Configure Callback URL

    • Set the callbackURL specified in the config.yml file.

    • If you use a shared hosting without a VPS or reverse proxy, use http://<ip>:<port>/auth/discord/callback. Don't forget to replace <ip>:<port> with your IP and port of your server.

    • If you are using a domain, format it as http://ticket.yourdomain.com/auth/discord/callback. Don't forget to replace ticket.yourdomain.com with your domain.

    • If you use SSL, you can use https://ticket.yourdomain.com/auth/discord/callback. Don't forget to replace ticket.yourdomain.com with your domain.

    • On the same oAuth2 section, add that URL to the Redirect URL section on the Developer Portal.

You should now have 6 more fields to fill out:

  • Port: This is the port where the webserver will be running. You can change this to anything, just be aware that it can't be used by any other programs on the VPS. If you are using a shared hosting, the port must be the one assigned to you.

  • URL: The URL you want to access the dashboard. For example, if you use a custom domain with SSL, you would put https://ticket.yourdomain.com as the URL.

  • Secure: If you want to use SSL for your domain, you have to enable this by setting the value to true. Some users may report that enabling this setting makes them unable to connect to the dashboard. If this is the case, try disabling this setting.

  • trustProxy: If you use a Reverse Proxy, like Nginx or Cloudflare Tunnels, you must enable this setting for the dashboard to trust proxies.

  • SessionExpires: This setting controls when the user should be logged out after logging in. For example, if this setting is set to 30d, the user gets logged out after 30 days instead of the usual 7 days.

Step 3: Restart and test

Once all of theses has been configured, you can restart your bot. If everything you did went correctly, the dashboard should be usable by the URL you set in the config.yml of the dashboard addon, and you should be able to login to the dashboard via Discord.

Plex Staff Dashboard:

The steps are almost the same for Plex Tickets Dashboard, so you can also use the steps above to setup the dashboard for Plex Staff. The only difference is that you have to set every roles permissions in the config.yml file, and the dashboard configuration is located in the main config.yml not in the addons folder, as the dashboard for Plex Staff is included.

Congrats! Your dashboard should be up and running after following all of theses steps.

To begin, you will need to download the dashboard addon. You can download it from the or from . After downloading the addon, you have to unzip it to the ./addons/ folder.

Go to the .

secretKey: You can set anything to this but it has to be a string so random characters. We recommend to use .

website
BuiltByBit
Discord Developer Portal
Dashlane's password generator
https://www.youtube.com/watch?v=iPDHqK_soD0