This commit is contained in:
parent
b28ca170ed
commit
8c7a91dc80
7 changed files with 17 additions and 99 deletions
84
.env.example
84
.env.example
|
@ -1,84 +0,0 @@
|
||||||
# ==========================
|
|
||||||
# GENERAL OPTIONS
|
|
||||||
# ==========================
|
|
||||||
|
|
||||||
# 32 character encryption key
|
|
||||||
KEY=
|
|
||||||
|
|
||||||
# Values from the Discord developer portal
|
|
||||||
CLIENT_ID=
|
|
||||||
CLIENT_SECRET=
|
|
||||||
BOT_TOKEN=
|
|
||||||
|
|
||||||
# The defaults here automatically work for the development environment.
|
|
||||||
# For production, change localhost:3300 to your domain.
|
|
||||||
DASHBOARD_URL=https://localhost:3300
|
|
||||||
API_URL=https://localhost:3300/api
|
|
||||||
|
|
||||||
# Comma-separated list of user IDs who should have access to the bot's global commands
|
|
||||||
STAFF=
|
|
||||||
|
|
||||||
# A comma-separated list of server IDs that should be allowed by default
|
|
||||||
DEFAULT_ALLOWED_SERVERS=
|
|
||||||
|
|
||||||
# Only required if relevant feature is used
|
|
||||||
#PHISHERMAN_API_KEY=
|
|
||||||
|
|
||||||
|
|
||||||
# ==========================
|
|
||||||
# DEVELOPMENT
|
|
||||||
# NOTE: You only need to fill in these values for running the development environment
|
|
||||||
# ==========================
|
|
||||||
|
|
||||||
DEVELOPMENT_WEB_PORT=3300
|
|
||||||
|
|
||||||
# The MySQL database running in the container is exposed to the host on this port,
|
|
||||||
# allowing access with database tools such as DBeaver
|
|
||||||
DEVELOPMENT_MYSQL_PORT=3356
|
|
||||||
# Password for the Zeppelin database user
|
|
||||||
DEVELOPMENT_MYSQL_PASSWORD=password
|
|
||||||
# Password for the MySQL root user
|
|
||||||
DEVELOPMENT_MYSQL_ROOT_PASSWORD=password
|
|
||||||
|
|
||||||
# The development environment container has an SSH server that you can connect to.
|
|
||||||
# This is the port that server is exposed to the host on.
|
|
||||||
DEVELOPMENT_SSH_PORT=3022
|
|
||||||
DEVELOPMENT_SSH_PASSWORD=password
|
|
||||||
|
|
||||||
# If your user has a different UID than 1000, you might have to fill that in here to avoid permission issues
|
|
||||||
#DEVELOPMENT_UID=1000
|
|
||||||
|
|
||||||
|
|
||||||
# ==========================
|
|
||||||
# PRODUCTION - STANDALONE
|
|
||||||
# NOTE: You only need to fill in these values for running the standalone production environment
|
|
||||||
# ==========================
|
|
||||||
|
|
||||||
STANDALONE_WEB_PORT=80
|
|
||||||
|
|
||||||
# The MySQL database running in the container is exposed to the host on this port,
|
|
||||||
# allowing access with database tools such as DBeaver
|
|
||||||
STANDALONE_MYSQL_PORT=3356
|
|
||||||
# Password for the Zeppelin database user
|
|
||||||
STANDALONE_MYSQL_PASSWORD=
|
|
||||||
# Password for the MySQL root user
|
|
||||||
STANDALONE_MYSQL_ROOT_PASSWORD=
|
|
||||||
|
|
||||||
|
|
||||||
# ==========================
|
|
||||||
# PRODUCTION - LIGHTWEIGHT
|
|
||||||
# NOTE: You only need to fill in these values for running the lightweight production environment
|
|
||||||
# ==========================
|
|
||||||
|
|
||||||
# Ports where the API/dashboard are exposed on the host
|
|
||||||
LIGHTWEIGHT_API_PORT=3001
|
|
||||||
LIGHTWEIGHT_DASHBOARD_PORT=3002
|
|
||||||
|
|
||||||
LIGHTWEIGHT_DB_HOST=
|
|
||||||
LIGHTWEIGHT_DB_PORT=
|
|
||||||
LIGHTWEIGHT_DB_USER=
|
|
||||||
LIGHTWEIGHT_DB_PASSWORD=
|
|
||||||
LIGHTWEIGHT_DB_DATABASE=
|
|
||||||
|
|
||||||
# If you want to add a prefix to API paths, such as /api, you can set that here
|
|
||||||
LIGHTWEIGHT_API_PATH_PREFIX=
|
|
|
@ -28,10 +28,10 @@ app.use(multer().none());
|
||||||
|
|
||||||
const rootRouter = express.Router();
|
const rootRouter = express.Router();
|
||||||
|
|
||||||
initAuth(app);
|
initAuth(rootRouter);
|
||||||
initGuildsAPI(app);
|
initGuildsAPI(rootRouter);
|
||||||
initArchives(app);
|
initArchives(rootRouter);
|
||||||
initDocs(app);
|
initDocs(rootRouter);
|
||||||
|
|
||||||
// Default route
|
// Default route
|
||||||
rootRouter.get("/", (req, res) => {
|
rootRouter.get("/", (req, res) => {
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="dashboard container mx-auto px-2 py-2 md:px-6 md:py-6">
|
<div class="dashboard container mx-auto px-2 py-2 md:px-6 md:py-6">
|
||||||
<Title title="Zeppelin - Dashboard" />
|
<Title title="ZappyZep - Dashboard" />
|
||||||
|
|
||||||
<nav class="flex items-stretch flex-wrap pl-4 pr-2 py-1 border border-gray-700 rounded bg-gray-800 shadow-xl mb-8">
|
<nav class="flex items-stretch flex-wrap pl-4 pr-2 py-1 border border-gray-700 rounded bg-gray-800 shadow-xl mb-8">
|
||||||
<div class="flex-full md:flex-initial flex items-center">
|
<div class="flex-full md:flex-initial flex items-center">
|
||||||
<img class="w-10 mr-5" :src="logoUrl" alt="" aria-hidden="true">
|
<img class="w-10 mr-5" :src="logoUrl" alt="" aria-hidden="true">
|
||||||
|
|
||||||
<router-link to="/dashboard">
|
<router-link to="/dashboard">
|
||||||
<h1 class="font-semibold">Zeppelin Dashboard</h1>
|
<h1 class="font-semibold">ZappyZep Dashboard</h1>
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="docs container mx-auto px-6 py-6">
|
<div class="docs container mx-auto px-6 py-6">
|
||||||
<Title title="Zeppelin - Documentation" />
|
<Title title="ZappyZep - Documentation" />
|
||||||
|
|
||||||
<!-- Top bar -->
|
<!-- Top bar -->
|
||||||
<nav class="flex items-stretch pl-4 pr-2 py-1 border border-gray-700 rounded bg-gray-800 shadow-xl">
|
<nav class="flex items-stretch pl-4 pr-2 py-1 border border-gray-700 rounded bg-gray-800 shadow-xl">
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
<img class="flex-auto w-10 mr-5" :src="logoUrl" alt="" aria-hidden="true">
|
<img class="flex-auto w-10 mr-5" :src="logoUrl" alt="" aria-hidden="true">
|
||||||
|
|
||||||
<router-link to="/docs">
|
<router-link to="/docs">
|
||||||
<h1 class="flex-auto font-semibold">Zeppelin Documentation</h1>
|
<h1 class="flex-auto font-semibold">ZappyZep Documentation</h1>
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-1 flex items-center justify-end">
|
<div class="flex-1 flex items-center justify-end">
|
||||||
|
|
|
@ -7,12 +7,14 @@
|
||||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
|
||||||
/>
|
/>
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||||
<title>Zeppelin - Moderation bot for Discord</title>
|
<meta property="og:title" content="ZappyZep" />
|
||||||
|
<meta property="og:description" content="ZappyZep is a private moderation bot for Discord, designed with large servers and reliability in mind." />
|
||||||
|
<title>ZappyZep - Moderation bot for Discord</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<noscript>
|
<noscript>
|
||||||
<h1>Zeppelin</h1>
|
<h1>ZappyZep</h1>
|
||||||
The Zeppelin website requires JavaScript to load.
|
The ZappyZep website requires JavaScript to load.
|
||||||
</noscript>
|
</noscript>
|
||||||
|
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
<div id="error"></div>
|
<div id="error"></div>
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div class="logo-column">
|
<div class="logo-column">
|
||||||
<img class="logo" src="./img/logo.png" alt="Zeppelin Logo" />
|
<img class="logo" src="./img/logo.png" alt="ZappyZep Logo" />
|
||||||
</div>
|
</div>
|
||||||
<div class="info-column">
|
<div class="info-column">
|
||||||
<h1>Zeppelin</h1>
|
<h1>ZappyZep</h1>
|
||||||
<div class="description">
|
<div class="description">
|
||||||
Zeppelin is a private moderation bot for Discord, designed with large servers and reliability in mind.
|
ZappyZep is a private moderation bot for Discord, designed with large servers and reliability in mind.
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<a class="btn" href="/dashboard">Dashboard</a>
|
<a class="btn" href="/dashboard">Dashboard</a>
|
||||||
|
|
|
@ -11,7 +11,7 @@ services:
|
||||||
MYSQL_USER: zeppelin
|
MYSQL_USER: zeppelin
|
||||||
MYSQL_PASSWORD: ${STANDALONE_MYSQL_PASSWORD?:Missing STANDALONE_MYSQL_PASSWORD}
|
MYSQL_PASSWORD: ${STANDALONE_MYSQL_PASSWORD?:Missing STANDALONE_MYSQL_PASSWORD}
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:${STANDALONE_MYSQL_PORT:?Missing STANDALONE_MYSQL_PORT}:3306
|
- ${STANDALONE_MYSQL_PORT:?Missing STANDALONE_MYSQL_PORT}:3306
|
||||||
# If you're upgrading from an older version, you can load your old database by switching the volumes below.
|
# If you're upgrading from an older version, you can load your old database by switching the volumes below.
|
||||||
# Then, take a database dump from the old database, switch the volumes back, and load the dump into the new database.
|
# Then, take a database dump from the old database, switch the volumes back, and load the dump into the new database.
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Add table
Reference in a new issue