Move different schemas and their related functions into their own modules.

This commit is contained in:
2023-09-29 17:21:37 -04:00
parent f475633e99
commit 23e93fe1af
11 changed files with 620 additions and 537 deletions

View File

@@ -11,17 +11,17 @@
# See https://www.mongodb.com/docs/manual/reference/connection-string/
MONGODB_CONN_STRING="mongodb://localhost:27017/technicflux"
# (REQUIRED) Admin Username and Password
# The username and password for the administrator account. CHANGE THIS!
ADMIN_USER="flux"
ADMIN_PASS="flux"
# (REQUIRED) The name of your TechnicFlux instance.
NAME="A TechnicFlux Instance"
# (REQUIRED) The public hostname of the website (i.e. the full domain name without any path, http://, or https://)
HOST="example.com"
# (REQUIRED) Admin Username and Password
# The username and password for the administrator account. CHANGE THIS!
ADMIN_USER="flux"
ADMIN_PASS="flux"
# (REQUIRED) Solder API Key
# 1. Go to https://www.technicpack.net/
# 2. Sign into your account and navigate to Edit My Profile
@@ -34,12 +34,18 @@ API_KEY=""
# Unset behaviour: You will need to specify the author every time.
AUTHOR_NAME="John Doe"
# --- Rate Limiting ---
# With the default values, it would take approximately an average of 3.9462372476248917e+28 minutes*
# to brute-force a single API key. If you want to increase the limit for other reasons (performance, etc.)
# or are encountering issues and need to increase it, feel free to do so.
# * This value may not be accurate. As per our license, I place no warranty or guaruntee on it.
# (Optional) API Rate-limit Requests
# The number of requests that can be made to the API by one IP address within the set window before it will block them.
# Default: 1000
# Unset behaviour: Defaults to 1000
API_RATE_REQUESTS=1000
# (Optional) API Rate-limit Window
# The amount of time (in milliseconds) that the request limit is applied to.
# Default: 60000
# Unset behaviour: Defaults to 60000
API_RATE_WINDOW=60000