Configuration
Currently, the only way to change most settings in SheetAble is through the env variables.
#
How to change environment variables#
Change vars in DockerTo change the env variables in Docker you just have to customize your running command by adding a -e SETTING="SETTING_VALUE"
to it.
#
Change vars nativelyYou can also change env variables natively.
- Either you add a
.env
file in the running directory (recommended)- The file should look like this:
SETTING=SETTING_VALUENEXT_SETTING=NEXT_SETTING_VALUE
- You export the env var on your OS
- Windows:
C:\> SET SETTING="SETTING_VALUE"
- Unix based systems (Mac, Linux):
export SETTING=SETTING_VALUE
- Windows:
#
Available SettingsSetting | Explanation |
---|---|
API_SECRET | This can be any string you want with which your jwt key is going to be encrypted |
DB_DRIVER | mysql, postgres, sqlite |
DB_HOST | Use mysql or postgres? Enter IP here. |
DB_USER | Use mysql or postgres? Enter db username here. |
DB_PASSWORD | Use mysql or postgres? Enter db password here. |
DB_NAME | Use mysql or postgres? Enter db name here. |
DB_PORT | Use mysql or postgres? Enter db port here. |
ADMIN_EMAIL | Your admin email |
ADMIN_PASSWORD | Your admin password |
PORT | 8080 - Can be any port you want |
DEV | 0, 1 - if 1: activated dev mode for developing purposes |
CONFIG_PATH | Path where you want your data to be instead of in the root dir |