portal-v1 icon indicating copy to clipboard operation
portal-v1 copied to clipboard

A web server for serving Discord Tickets ticket archives.

DiscordTickets Portal

GitHub issues GitHub stars GitHub forks GitHub license Codacy grade Discord support server

This is the accompanying archives web server for DiscordTickets.

Demo

Live example at tickets.eartharoid.me.

Screenshot

Screenshot

Requirements

  • Node v14 or above

Installation

These instructions assume you have a basic knowledge of server system administration.

  1. Clone/download the repository
  2. Edit user/.env (see Configuration)
  3. Configure the bot (see Bot Configuration)
  4. Set up an NGINX reverse proxy (optionally with SSL - eg. tickets.example.com [80/443] -> localhost:8080 [8080])
  5. Set up PM2 or systemd to keep it running. (node bin/www)
  6. Optionally change src/public/favicon.ico and src/public/assets/img/logo.png

Configuration

user/.env

Setting Info
HOST Public host (eg. https://tickets.example.com)
PORT Port for web server to run on
KEY Secret string for the bot to use to upload data
NAME Company/Guild/Bot name
KEEP_FOR Number of days to keep archives for. Disable with false.

Bot Configuration

DiscordTickets bot configuartion: In user/config.js, set transcripts.web.enabled and transcripts.web.server.

Then set ARCHIVES_KEY in user/.env to the same key you set before.

Future plans

  • Protected (Discord oauth2 login) user page for listing all archives belonging to that user
  • (guild-style) mini sidebar if logged in

(donate if you want this faster)

License

Released under OSL-3.0 license.

Copyright Bowser65 (frontend) & eartharoid (backend).

Changes made from Naila/Discord-chat-replica
  • Completely new web server code
  • Minor UI edits
  • Added nicknames and coloured names