Configuration
You now have the server and files setup, so we can get to configuring the basics. So, we will go over every line of the .env
file.
Since we use keys for payment processors, login methods, and similar we want to store them safely within your .env
file rather then the database.
Basics
LICENSE_KEY=
- You get this from https://shadowdevs.com/license and should be a simple string. This your license from us to use Shadow License System.
PORT=
- By default its
5173
, but you can change it to any 4 character number.
- By default its
MONGO_URL=
- The MongoDB URL for your database. If you do not add any password lock to your database and leave it as local only, you can use something like this:
mongodb://127.0.0.1:27017/shadowstore
- If you also are using Shadow Store, then this database NEEDS TO BE THE SAME AS SHADOW STORE!
- The MongoDB URL for your database. If you do not add any password lock to your database and leave it as local only, you can use something like this:
ORIGIN=
- Your full domain, include the
https://
. Ex:https://shadowdevs.com
- Your full domain, include the
PUBLIC_DOMAIN=
- Just your domain name for the website. Ex:
shadowdevs.com
- Just your domain name for the website. Ex:
Discord
DISCORD_CLIENT_ID=
- You can find this on the Discord Developer Application > General Information. It would be the
Application ID
.
- You can find this on the Discord Developer Application > General Information. It would be the
DISCORD_CLIENT_SECRET=
- You can find this on the Discord Developer Application > OAuth2. It will be the
Client Secret
.
- You can find this on the Discord Developer Application > OAuth2. It will be the
BOT_TOKEN=
- You can find this on the Discord Developer Application > Bot. It is the
Token
.
- You can find this on the Discord Developer Application > Bot. It is the
OWNERS=[""]
- This must always be an array (
[""]
), and should contain the Discord User IDs for people you want to login with owner permissions.
- This must always be an array (
Advanced
These settings should remain the same way as seen below / provided in the download, unless you know what you are doing.
BODY_SIZE_LIMIT=5368709120
- This increases the base SvelteKit body size limit to 10gbs.
HOST=localhost
- This modifies how SvelteKit interacts with itself.