Skip to content

Commit

Permalink
Move different schemas and their related functions into their own mod…
Browse files Browse the repository at this point in the history
…ules.
  • Loading branch information
ZandercraftGames committed Sep 29, 2023
1 parent f475633 commit 23e93fe
Show file tree
Hide file tree
Showing 11 changed files with 620 additions and 537 deletions.
20 changes: 13 additions & 7 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion bin/www
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ for (let variable of required_variables) {
const app = require('../app').app;
const debug = require('debug')('technicflux:server');
const http = require('http');
const database = require('../database')
const database = require('../database/database')

/**
* Get port from environment and store in Express.
Expand Down
Loading

0 comments on commit 23e93fe

Please sign in to comment.