-
Notifications
You must be signed in to change notification settings - Fork 2
Storage
By default, Nightdream stores all it's data in property files inside a directory named NightDream
.
If you want to use a sql database instead, open the file Nightdream.properties
in the directory NightDream
and add the URL to NightDream.properties
after DBUrl=
. If the Database requires username and password, you should put it in this file as well, after DBUsr=
and DBPw=
.
A database URL should look like this: jdbc:<Database name>://<URL>/<schema>
. You may need to add the timezone as a query parameter.
For example, this is a valid URL for a MySQL Server on localhost with a schema named nightdream
: jdbc:mysql://localhost/nightdream?serverTimezone=UTC
After that, put the JDBC driver in the NightDream
directory.
If you hava a redis Server on localhost
, just open the file Nightdream.properties
in the directory NightDream
and add redis
to NightDream.properties
after DBUrl=
.
If the redis database is running on another server/port add redis://<Server>:<Port>
instead of redis
.
If the database requires authentication, you should put the password in this file as well, after DBPw=
.
Nightdream by Noobi#0001 and dan1st#7327