/
.env.example
36 lines (27 loc) · 1.21 KB
/
.env.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# Environment we are running in. development for local development and production for production
export STRAVA2KILOMETRIKISA_ENV=development
# Port to run node app.
export PORT=3000
# This is the secret used to sign the session ID cookie. On dev this can be anything.
export KILOMETRIKISA_SESSION_SECRET=
# Password used to crypt kilometrikisa password. On dev this can be anything.
export KILOMETRIKISA_CRYPTO_PASSWORD=
# Mongo DB creds.
export KILOMETRIKISA_DB=
export KILOMETRIKISA_DBUSER=
export KILOMETRIKISA_DBPASSWORD=
export KILOMETRIKISA_DBHOST=
# Kilometrikisa competition id. Easiest way to find this out is to log in to Kilometrikisa, open contest entry page
# (https://www.kilometrikisa.fi/contest/log/) and check developer tools for network request targeted to
# https://www.kilometrikisa.fi/contest/log_list_json/{id}
export KILOMETRIKISA_COMPETITION_ID= # 47 for summer 2022
# Strava integration settings.
# https://www.strava.com/settings/api
export STRAVA_ACCESS_TOKEN=
export STRAVA_CLIENT_ID=
export STRAVA_CLIENT_SECRET=
export STRAVA_REDIRECT_URI=http://localhost:3000/strava/authcomplete
# Cron timing definition to run autosync.
export CRON_TIME_SYNC="0 4 * * *"
export LOGGING_LEVEL='debug'