-
Notifications
You must be signed in to change notification settings - Fork 0
Environment Variables
I plan on publishing on Docker soon. For setting up via Docker commandline or docker-compose, I figured I'd include a gist of the Environment Variables TAM's server will recognize.
Sets a password for API generation (in settings window) and enables secure mode (API key is required to see anything or make any changes).
Expected Values:
- "LOCAL" - Uses a SQLite database in /tam/server/data.db of the image. You don't need to put any more Environment Variables in if you specify this type (it is the default). If you want data to be persistent then put a -v ./data.db:/tam/server/data.db to keep it in the same folder as your docker-compose file.
- "MYSQL" - Uses MariaDB or MySQL (the mysql.connector it imports can use either or)
Specifies the hostname or IP of the DB in relation to the docker container (if you include the MariaDB instance within the same compose stack, you should be able to use the service name, otherwise it would be the IP or hostname.
(Optional) Defaults to the normal 3306 MySQL/MariaDB uses by default. You can use it to change it if you change it from the default on the server.
Username of the user with all permissions to an initially empty database, to create it.
Password of said user above.
Name of the database.
- Home
- Setup Instructions
- Backup and Restore
-
Environment Variables (Server)
-
API_PW
- Sets password to generate API keys. Enables api security when set.
-
SS_MODE
- Pairs API keys to IP addresses when set.
-
DB_TYPE
- Sets DB Type between "LOCAL" (SQLite) and "MARIADB".
-
MARIADB Credentials
- Click to see the environment variables to set MariaDB credentials, such as the host, username, password, and database.
-
API_PW