2024-02-03 02:09:09 +00:00
|
|
|
[accounts]
|
2024-02-10 00:34:12 +00:00
|
|
|
; comma separated list of usernames that are considered server accounts
|
2024-02-03 02:09:09 +00:00
|
|
|
; these accounts will be created upon the first run of snow
|
2024-02-10 00:34:12 +00:00
|
|
|
; they will have max permissions with snow and will have no discord account linked
|
2024-02-03 02:09:09 +00:00
|
|
|
gods=god,snow
|
2024-02-10 00:34:12 +00:00
|
|
|
; comma separated list of usernames that are considered owner accounts
|
2024-02-19 01:49:14 +00:00
|
|
|
; these accounts must already exist in the database
|
2024-02-10 00:34:12 +00:00
|
|
|
owners=ectrc
|
2024-02-03 02:09:09 +00:00
|
|
|
|
2023-10-31 22:40:14 +00:00
|
|
|
[database]
|
|
|
|
; connect string
|
|
|
|
uri="host=localhost user=postgres password=pass dbname=snow port=5432 sslmode=disable"
|
2024-01-20 23:25:12 +00:00
|
|
|
; currently only postgres is supported. memory and mongo will be added in the future
|
2023-11-01 21:51:14 +00:00
|
|
|
type="postgres"
|
2024-02-03 02:09:09 +00:00
|
|
|
; WARNING: ONLY USE IF NECESSARY
|
|
|
|
; deletes and resets the entire database on startup
|
2023-11-02 17:50:52 +00:00
|
|
|
drop=false
|
2023-11-01 21:51:14 +00:00
|
|
|
|
2024-02-04 19:49:31 +00:00
|
|
|
[amazon]
|
|
|
|
; bucket uri of your s3 storage
|
|
|
|
; leave blank to disable s3 storage
|
|
|
|
uri=""
|
|
|
|
; access key id for the amazon s3 bucket
|
|
|
|
id="36a3297c08..."
|
|
|
|
; secret access key for the amazon s3 bucket
|
|
|
|
key="4e5274c62b7b8c3..."
|
|
|
|
; path to the bucket in the s3 storage that will store the client settings
|
|
|
|
bucket="snow"
|
|
|
|
|
2023-12-09 15:35:33 +00:00
|
|
|
[discord]
|
2023-12-10 00:52:59 +00:00
|
|
|
; discord id of the bot
|
2023-12-09 15:35:33 +00:00
|
|
|
id="1234567890..."
|
2023-12-10 00:52:59 +00:00
|
|
|
; oauth2 client secret
|
2023-12-09 15:35:33 +00:00
|
|
|
secret="abcdefg..."
|
|
|
|
; discord bot token
|
|
|
|
token="OTK...."
|
2023-12-13 22:52:16 +00:00
|
|
|
; server id
|
|
|
|
guild="1234567890..."
|
2023-12-09 15:35:33 +00:00
|
|
|
|
2023-11-01 21:51:14 +00:00
|
|
|
[output]
|
|
|
|
; level of logging
|
2023-12-10 00:52:59 +00:00
|
|
|
; info = backend logs
|
|
|
|
; time = backend logs + time taken for database queries
|
2024-02-10 15:26:28 +00:00
|
|
|
; prod = only errors
|
2023-11-03 23:48:50 +00:00
|
|
|
level="info"
|
|
|
|
|
|
|
|
[api]
|
2024-03-10 18:16:42 +00:00
|
|
|
; this will enable some routes to show information about the backend
|
|
|
|
; this is useful for debugging
|
|
|
|
; this should be disabled in production
|
|
|
|
debug=true
|
2023-11-03 23:48:50 +00:00
|
|
|
; port to listen on
|
2023-11-27 18:53:28 +00:00
|
|
|
port=":3000"
|
2023-12-07 23:25:17 +00:00
|
|
|
; host that the api is running on
|
|
|
|
; e.g. if you are running the api on your local machine, you would set this to 127.0.0.1
|
|
|
|
; if you are running the api on a server, you would set this to the ip of the server or the domain name
|
2024-01-04 19:02:14 +00:00
|
|
|
host="127.0.0.1"
|
2024-03-10 18:16:42 +00:00
|
|
|
; host that the xmpp on the fortnite client will try and connect to
|
|
|
|
; if you are running the api on your local machine, you would set this to the same as the host
|
|
|
|
; if you are running the api on a server, you would set this to the ip of the server or the domain name
|
|
|
|
; localhost will not work with the xmpp from testing
|
|
|
|
xmpp_host="127.0.0.1"
|
|
|
|
; port that the xmpp on the fortnite client will try and connect to
|
|
|
|
; if you are running the api on your local machine, you would set this to the same as the port
|
|
|
|
; if you are running the api on a server, you would set this to the port that you are running the api on
|
|
|
|
xmpp_port=":3000"
|
|
|
|
; this this is the beginning of the url that the discord bot will use to send messages to the api
|
|
|
|
; this includes the protocol and the host + port
|
|
|
|
; for a public api, this could be "https://snows.rocks" for example
|
|
|
|
discord_url="http://127.0.0.1:3000"
|
2023-11-03 23:48:50 +00:00
|
|
|
|
|
|
|
[jwt]
|
|
|
|
; secret for jwt signing
|
2023-11-05 01:58:00 +00:00
|
|
|
secret="secret"
|
|
|
|
|
|
|
|
[fortnite]
|
2024-02-10 00:34:12 +00:00
|
|
|
; fortnite build version
|
2023-11-20 23:20:42 +00:00
|
|
|
build=5.41
|
2024-02-10 00:34:12 +00:00
|
|
|
; on every account creation, all cosmetics will be added to the account
|
|
|
|
; if you want to disable this, set this to false
|
2023-11-27 18:53:28 +00:00
|
|
|
everything=true
|
2024-01-20 23:25:12 +00:00
|
|
|
; enable or disable the requirement of password to login to an account
|
2024-02-10 15:26:28 +00:00
|
|
|
; if this is set to true, you can login to any account using the username and any password
|
|
|
|
; if this is false you must login using an exchange code given by the bot
|
|
|
|
disable_password=false
|
2024-01-28 19:40:45 +00:00
|
|
|
; if you recieve lots of /account/api/oauth/token requests, set this to true
|
|
|
|
; this will disable the client credentials grant type
|
|
|
|
; however this will also disable a user to get the hotfixes before login
|
2024-02-20 21:54:05 +00:00
|
|
|
; enabling will disable the store tab
|
2024-01-28 19:40:45 +00:00
|
|
|
; so xmpp and other hotfix related things will be delayed by ~1 minute
|
2024-02-18 00:09:02 +00:00
|
|
|
disable_client_credentials=false
|
|
|
|
; this is used to generate a random shop
|
|
|
|
; each number will generate a different shop for the day
|
|
|
|
; the shop will stay the same for the entire day even after server restarts
|
2024-02-19 04:07:40 +00:00
|
|
|
shop_seed=0
|
|
|
|
; this will enable vbucks in the store tab
|
|
|
|
; at this time it is not possible to buy vbucks
|
|
|
|
; this is only for testing purposes
|
|
|
|
enable_vbucks=true
|