Config File Reference
Config File Location
By default FiveNet looks at the following places to find a config.yaml
file (in order):
.
- Current active/working directory./config
- Mainly used by the containerized version of FiveNet.
Must Set Config Options
The most important options for FiveNet to run correctly:
http.publicURL
- Public facing URL of your FiveNet instance.http.sessions.cookieSecret
- Secret used to handle user cookies (should be randomly generated once during install, at least 24 characters long).http.sessions.domain
- Public facing Domain/Subdomain name of your FiveNet instance.database.dsn
- Database connection string.nats.url
- NATS message queue URL (with credentials included).jwt.secret
- Secret used for creating the user tokens (should be randomly generated once during install, at least 24 characters long).auth.superuserGroups
- List of groups that will be granted superuser in FiveNet.
For detailed info on these options check the configuration reference section below.
Reference
Log level for FiveNet.
Can be debug
or release
.
OTLP Tracing endpoint URL
Web listen address
Admin listen address (for monitoring metrics)
Full public URL to the FiveNet instance, e.g., https://fivenet.example.com
.
List of origins that are allowed to be served (can be ["*"]
to allow any origin):
origins:
- "https://fivenet.example.com"
A random session cookie secret, should be at least 24 characters long. Must stay the same as otherwise the cookies are invalidated and everyone must login again.
The domain FiveNet is running on fivenet.example.com
.
List of trusted proxies (this enables the use of X-Forwarded-For
/ X-Real-IP
header from a proxy):
trustedProxies:
- "1.2.3.4/24"
The database source name (DSN) for your MySQL database.
DB_USER:DB_PASS@tcp(DB_HOST:DB_PORT)/DB_NAME?collation=utf8mb4_unicode_ci&parseTime=True&loc=Europe%2FBerlin
?
, only thing you can change is the &loc=Europe%2FBerlin
to change the timezone for the database connection.maxOpenConns: 32
maxIdleConns: 5
connMaxIdleTime: 15m
connMaxLifetime: 60m
Must be in format of nats://localhost:4222
.
You can specify the credentials in it like this nats://USER:PASSWORD@localhost:4222
.
Replicas count of streams and key value stores created in NATS.
A random JWT secret, should be at least 24 characters long. Must stay the same as otherwise the tokens are invalidated and everyone must login again.
Either filesystem or S3 storage, requires the config options for the chosen storage type.
The filesystem directory to storage data in.
endpoint: ""
region: "us-east-1"
accessKeyID: ""
secretAccessKey: ""
useSSL: true
bucketName: ""
prefix: ""
If the image proxy should be enabled. You shouldn't change this from true
to false
as it would case existing "proxied" images to break in existing documents.
List of allowed hosts for caching images from external sources.
List of denied hosts for caching images from external sources.
Can be discord
or generic
.
List of OpenID scopes.
Path to the postals.json
file, the default path is working for the provided FiveNet container image.
List of groups that will have superuser access in FiveNet.
List of char identifiers that will have superuser access in FiveNet regardless the group.
List of jobs of GKSPhone dispatches that should be converted to FiveNet dispatches.DEPRECATED Will be removed soon.
Advanced Config Options
Custom Columns
To disable a column, set it to "-"
in the database.custom.columns
structure like this:
database:
# [...]
custom:
columns:
user:
# This would disable the display of the visum number
visum: "-"
playtime: "playtime"
vehicle:
# Your `owned_vehicles` table doesn't have a `model` column?
# Just set it to `"-"` to disable it
model: "model"
conditions:
user:
filterEmptyName: false