Skip to content

Commit 9414c08

Browse files
committed
adds example config file
1 parent ab70d82 commit 9414c08

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ The sqtracker platform is designed to be deployed via Docker. Once a configurati
6060

6161
Alternatively, you can deploy each service individually on a PaaS cloud platform such as [Northflank](https://northflank.com).
6262

63+
If you change the name of any services in `docker-compose.yml`, you will also need to update the relevant host names in your `config.js` and `traefik.yml` files.
64+
6365
## Configuration
6466

65-
All configuration is provided via a single JavaScript file. This file must export an object containing 2 keys: `envs` and `secrets`.
67+
All configuration is provided via a single JavaScript file named `config.js`. This file must export an object containing 2 keys: `envs` and `secrets`.
6668

6769
A full list of configuration options is below. All are required.
6870

config.example.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
This is an example configuration file. Copy it to config.js and change each value according to your desired setup.
3+
See the README.md file for a description of each configuration item.
4+
*/
5+
6+
module.exports = {
7+
envs: {
8+
SQ_SITE_NAME: 'sqtracker demo',
9+
SQ_SITE_DESCRIPTION: 'A short description for your tracker site',
10+
SQ_ALLOW_REGISTER: 'invite',
11+
SQ_ALLOW_ANONYMOUS_UPLOADS: false,
12+
SQ_MINIMUM_RATIO: 0.75,
13+
SQ_TORRENT_CATEGORIES: ['Movies', 'TV', 'Music', 'Books'],
14+
SQ_BASE_URL: 'https://sqtracker.dev',
15+
SQ_API_URL: 'https://sqtracker.dev/api',
16+
SQ_TRACKER_URL: 'http://sq_opentracker:6969',
17+
SQ_MONGO_URL: 'mongodb://sq_mongodb',
18+
SQ_MAIL_FROM_ADDRESS: 'mail@sqtracker.dev',
19+
SQ_SMTP_HOST: 'smtp.example.com',
20+
SQ_SMTP_PORT: 587,
21+
SQ_SMTP_SECURE: false,
22+
},
23+
secrets: {
24+
SQ_JWT_SECRET: 'long_random_string',
25+
SQ_ADMIN_EMAIL: 'admin@example.com',
26+
SQ_SMTP_USER: 'smtp_username',
27+
SQ_SMTP_PASS: 'smtp_password',
28+
},
29+
}

0 commit comments

Comments
 (0)