-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.example.env
134 lines (95 loc) · 3.07 KB
/
.example.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
## General
COMPOSE_PROJECT_NAME=titanic
# Database configuration
POSTGRES_PASSWORD=examplePassword
POSTGRES_USER=bancho
POSTGRES_PORT=5432
POSTGRES_POOLSIZE=10
POSTGRES_POOLSIZE_OVERFLOW=30
# Redis configuration
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
# S3 Storage configuration (optional)
S3_BASEURL=https://example.com
S3_SECRET_KEY=your_secret
S3_ACCESS_KEY=your_key
# If disabled, the data gets stored locally
# Buckets will be created automatically when enabled
ENABLE_S3=False
# This icon will be visible inside the menu (optional)
MENUICON_IMAGE=
MENUICON_URL=
# Discord webhook url for logging (optional)
OFFICER_WEBHOOK_URL=
# Event webhook url (Updates for beatmaps, forums, etc.)
EVENT_WEBHOOK_URL=
## Email configuration (optional)
# Supported providers: "sendgrid", "mailgun", "smtp"
EMAIL_PROVIDER=
# Your email address
EMAIL_SENDER=
# SMTP configuration
SMTP_HOST=
SMTP_PORT=
SMTP_USER=
SMTP_PASSWORD=
# Sendgrid configuration
SENDGRID_API_KEY=
# Mailgun configuration
MAILGUN_API_KEY=
## Score server configuration
# Amount of scores that will be sent for rankings
SCORE_RESPONSE_LIMIT=50
# Used to decrypt score data
SCORE_SUBMISSION_KEY=h89f2-890h2h89b34g-h80g134n90133
# This is self-explanatory
ALLOW_RELAX=False
# This will award pp and rscore for approved/loved maps
APPROVED_MAP_REWARDS=False
# You can change this, depending on how many threads you have
WEB_WORKERS=5
## Bancho configuration
# These are the ports, that older clients will connect to
BANCHO_TCP_PORTS=[13380, 13381, 13382, 13383]
# You can change this, depending on how many threads you have
BANCHO_WORKERS=10
# This will enable maintenance mode. Only admins can connect in this state.
# You can also enable this using the !system maintenance command
BANCHO_MAINTENANCE=False
# The server will skip multiaccounting checks if set to True
ALLOW_MULTIACCOUNTING=False
# These channels will be automatically joined when logging in
AUTOJOIN_CHANNELS=['#osu', '#announce']
# Used for bancho_connect.php endpoint (optional)
# Make sure this ip is not proxied in any way
PUBLIC_BANCHO_IP=127.0.0.1
# This will verify the hash of the client, if set to False
# You will need to edit the "releases" table to make it actually usable
# Admins will automatically bypass this check by default
DISABLE_CLIENT_VERIFICATION=True
## Website configuration
# You can change this, depending on how many threads you have
FRONTEND_WORKERS=4
# Set this to something unique
FRONTEND_SECRET_KEY=somethingrandom
# This is the expiry time for authentication tokens
FRONTEND_TOKEN_EXPIRY=3600
FRONTEND_REFRESH_EXPIRY=2592000
# Enable this if you are using an ssl certificate
ENABLE_SSL=False
# This is used for in-game links and the reverse-proxy
# Example: `lekuru.xyz`, `example.com`, `localhost`
DOMAIN_NAME=localhost
NGINX_HOST=0.0.0.0
NGINX_PORT=80
# API rate limiting configuration
API_RATELIMIT_ENABLED=True
API_RATELIMIT_WINDOW=60
API_RATELIMIT_LIMIT=800
## Discord bot configuration (optional)
ENBALE_DISCORD_BOT=False
DISCORD_BOT_PREFIX=!
DISCORD_BOT_TOKEN=
# Used for importing beatmaps (optional)
OSU_CLIENT_ID=
OSU_CLIENT_SECRET=