mirror of
https://github.com/Zandercraft/TechnicFlux.git
synced 2026-10-25 03:59:21 +00:00
70 lines
3.1 KiB
Plaintext
70 lines
3.1 KiB
Plaintext
# TechnicFlux Configuration File
|
|
# For support: https://github.com/Zandercraft/TechnicFlux/
|
|
# =========================================================
|
|
# This is an example configuration file and is not active.
|
|
# Copy and rename it to .env before starting TechnicFlux.
|
|
# (Read the README.md file for more detailed instructions)
|
|
|
|
# (REQUIRED) The connection string for your MongoDB instance (including the database)
|
|
# Ex. (No SSL): mongodb://myDatabaseUser:myPassword@127.0.0.1/myDatabaseName
|
|
# Ex. (SSL): mongodb+srv://myDatabaseUser:myPassword@server.example.com/myDatabaseName
|
|
# See https://www.mongodb.com/docs/manual/reference/connection-string/
|
|
MONGODB_CONN_STRING="mongodb://localhost:27017/technicflux"
|
|
|
|
# (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
|
|
# 3. Go to Solder Configuration and put your API key here
|
|
# 4. Put your solder API URL (http[s]://example.com/api/) in and link it.
|
|
API_KEY=""
|
|
|
|
# (REQUIRED) Session Secret Key. CHANGE THIS!!!!
|
|
# This is the key that will be used to encrypt sessions. It is recommended that you make it secure.
|
|
# You can generate one using the following steps:
|
|
# 1. Go to https://www.lastpass.com/features/password-generator#generatorTool
|
|
# 2. Set password length to 50 and leave it set to all characters
|
|
# 3. Copy the password here.
|
|
SESSION_KEY="(/jg~WBd4%+cXt9vp'&/lN-;mynl:N}v£D!0I5V04tcpYb&;.F"
|
|
|
|
# (Optional) Default Author Name (for custom files)
|
|
# This is the name that will be pre-filled when you go to upload custom files for a modpack.
|
|
# 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.
|
|
# 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.
|
|
# Unset behaviour: Defaults to 60000
|
|
API_RATE_WINDOW=60000
|
|
|
|
# --- Google ReCaptcha ---
|
|
# TechnicFlux comes with optional Google ReCaptcha support.
|
|
# When configured, this will enable captcha protection on your login page.
|
|
|
|
# (Optional) Google ReCaptcha Credentials
|
|
# You can obtain these credentials at https://www.google.com/recaptcha/admin/create
|
|
# Unset behaviour: ReCaptcha is disabled on login page.
|
|
#CAPTCHA_SITE_KEY=""
|
|
#CAPTCHA_SITE_SECRET=""
|