forked from ShieldBattery/ShieldBattery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.env
96 lines (71 loc) · 3.68 KB
/
sample.env
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Sample Configuration File
# Copy this to a file named .env to change local development settings
# Password used for the postgres super user, used for database maintenance.
POSTGRES_SUPER_PASSWORD=SuperSecureDefinitelyChangeThis
# The host Postgres is running on.
SB_DB_HOST=localhost
# The port Postgres is running on.
SB_DB_PORT=5433
# The database user to use for the application.
SB_DB_USER=shieldbattery
# Password used for the user connecting to the shieldbattery database.
SB_DB_PASSWORD=ExtremelySecureDefinitelyChangeThis
# The database within Postgres to use for application data.
SB_DB=shieldbattery
# URL to connect to the postgres database (change this to match your settings above)
DATABASE_URL="postgres://shieldbattery:ExtremelySecureDefinitelyChangeThis@localhost:5433/shieldbattery"
# The "main" host for the application, this will be used for generating links
# and other hosts will generally redirect here
SB_CANONICAL_HOST=http://localhost:5555
# The port the HTTP server should listen on
SB_HTTP_PORT=5555
# The host the GraphQL server will bind to (this should be an IP)
SB_GQL_HOST=127.0.0.1
# The port the GraphQL server should listen on
SB_GQL_PORT=5556
# The origin the GraphQL server will receive requests at (externally)
SB_GQL_ORIGIN=http://localhost:5556
# Whether the HTTP server has an HTTPS reverse proxy forwarding to it (generally
# true for production, but false for development)
#SB_HTTPS_REVERSE_PROXY=false
# Time to keep unused sessions around (in seconds)
SB_SESSION_TTL=2592000
# Secret use for signing JWT tokens (should be generated randomly using a secure method)
SB_JWT_SECRET=GenerateASecureRandomStringForThis
# Host of the redis server
SB_REDIS_HOST=localhost
# Port of the redis server
SB_REDIS_PORT=6379
# Configuration for rally-point networking
# A secret value shared between all rally-point servers, should be unique to a
# deployment
SB_RALLY_POINT_SECRET=reallySecretString
# Configuration for a local rally-point server, in case you don't have a remote one to use. If no
# rally-point servers exist in the DB in dev mode, a local process will be spun up on this port and
# used for facilitating games.
SB_RALLY_POINT_LOCAL_PORT=14098
# Optionally change where the rally-point route creator binds
#SB_ROUTE_CREATOR_HOST="::"
#SB_ROUTE_CREATOR_PORT=14099
# JSON string configuring the storage of uploaded files. Currently there are
# two options, storing to the filesystem and storing to the DigitalOcean Spaces.
SB_FILE_STORE={"filesystem":{"path":"server/uploaded_files"}}
# Example DigitalOcean Spaces configuration
#SB_FILE_STORE={"doSpaces":{"endpoint":"https://region.digitaloceanspaces.com","accessKeyId":"ACCESS_KEY_ID","secretAccessKey":"SUPER_SECRET_ACCESS_KEY","bucket":"shieldbattery","cdnHost":"cdn.example.org"}}
# Configuration for BW sprite data used for map thumbnail generation
# If not specified, high detail map thumbnails will not be generated
#SB_SPRITE_DATA=./bw_sprite_data
# Number denoting how many map parsing jobs can be run in parallel, at most.
SB_MAP_PARSER_MAX_CONCURRENT=1
# Mailgun configuration for sending emails. If not specified, emails will not be
# sent.
#SB_MAILGUN_KEY=key-DEADBEEF
#SB_MAILGUN_DOMAIN=mg.mydomain.com
#SB_MAILGUN_FROM=ShieldBattery <[email protected]>
# Datadog configuration for log monitoring. If not specified, logs will only be stored locally
#SB_DATADOG_KEY=DEADBEEF
# Path to the Google Cloud credentials file. Usually downloaded as a JSON file from Google Cloud
# representing the service account key.
#GOOGLE_APPLICATION_CREDENTIALS=/path/to/the/credentials.json
# Discord Webhook URL to send staff notifications to
#SB_DISCORD_WEBHOOK_URL=https://discordapp.com/api/webhooks/1234567890/abcdefghijklmnopqrstuvwxyz