This repository has been archived on 2022-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
IcyNet.eu/config.example.toml

100 lines
2.2 KiB
TOML

# Server configuration
[server]
# Port the server will listen on
port=8282
# Hostname the server will listen on
host="localhost"
# Session key
session_key="Session"
# Session secret (keep this a secret)
session_secret="hackmysessions"
# Number of worker processes (0 to use all CPU cores)
workers=1
# Domain of this application
# Used for the links in emails
domain="http://localhost:8282"
# Database
# Available database clients: mysql / postgresql(pg) / sqlite3 / oracle / mssql
[database]
client="mysql"
# Here you will define database connection related to the client
[database.connection]
user="root"
host="localhost"
password=""
database="icynet"
# More information on database configuration can be found here:
# http://knexjs.org/#Installation-client
# OAuth2 related configuration
[oauth2]
# Byte length of a token
token_length=16
# 1 week of token life
access_token_life=604800
# Authorization code life
code_life=3600
# Whether or not an OAuth2 client authorization decision will be saved
# which means that the user will not be asked for authorization again
# Decisions can be revoked from the user settings page
save_decision=true
# Redis is currently used for storing sessions
[redis]
port=6379
[external]
# Set to true if you allow registrations from the following services
registrations=false
# Uncomment if you want to be using Twitter authentication
[external.twitter]
# api=""
# api_secret=""
# Uncomment if you want to be using Facebook authentication
[external.facebook]
# client=""
# Uncomment if you want to be using Discord authentication
[external.discord]
# api=""
# api_secret=""
[external.google]
# api=""
# api_secret=""
# reCAPTCHA configuration
[security]
[security.recaptcha]
# site_key=""
# secret_key=""
# Email SMTP transport configuration
[email]
enabled=false
admin="icynet@example.com"
[email.transport]
host="mail.example.com"
port=587
secure=false
[email.transport.auth]
user=""
pass=""
[email.transport.tls]
rejectUnauthorized=false
# Application log file location
[logger]
write=true
file="./icynet.log"
# Matomo tracking
#[matomo]
# site_id=
# site_domain="icynet.eu"
# track_url="//analytics.icynet.eu/"