Web Interface Config

Configurations are set via file in the repository https://github.com/synzen/Discord.RSS-Clone

Configs are set in the settings/config.web.json file. If none exist, then you must create one that follows the example at settings/config.web.example.json.

Any configs with an asterisk * beside it indicates that it is required and the bot cannot function without them. There will be a automatic check on startup for any invalid/missing configs.

Type Definitions:

Number - A non-negative integer (no quotes).

Boolean - Either true or false (no quotes).

String - Text that must be enclosed with quotes. Example: "my text"

Array[String] - Multiple strings enclosed by [ and ], separated by commas. Example: ["mythinghere", "mysecondthinghere"] or with a single item: ["myotherthing"]

Object - A JSON object.

log

Config

Type

Description

level

String

Verbosity of the logs desired. Must be "silent", "trace", "debug", "info", "warn", "error", or "fatal". Default is "info". The lower the level, the more verbose.

destination

String

Direct JSON logs to a file. Must be an absolute path. Default is "" (no file output, only console).

bot

Config

Type

Description

token*

String

Bot token.

redirectURI*

String

Domain with /authorize appended after it. Make sure you add this exact URL to Redirects for your application at Discord Developers, in OAuth2.

clientID*

String

Application ID retrieved from Discord Developers.

clientSecret*

String

Application secret retrieved from Discord Developers.

database

Config

Type

Description

uri*

String

MongoDB connection string. This must match the bot's database connection URI in order for the web control panel to have access to the same data. Default is "mongodb://localhost/rss".

connection

Object

The connection options object options passed through Mongoose. This can be used for other types of authentication.

redis*

String

Redis URI. Default is "". All keys that match drss* will be deleted every time the web starts. Do not use a database or database index that contains keys used by oher applications that match the drss* pattern.

http

Config

Type

Value

trustProxy

Boolean

Enable reverse proxy support.

sessionSecret

String

Unique string to prevent session hijacking.

port

Number

HTTP port. Default is 8081.

https

Config

Type

Value

enabled

Boolean

Enable Node.js's HTTPS server.

privateKey

String

Absolute path to your private key file.

certificate

String

Absolute path to your certificate file.

chain

String

Absolute path to your chain file.

port

Number

HTTPS port. Default is 443.

Last updated