-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.sample
More file actions
46 lines (38 loc) · 1.29 KB
/
.env.sample
File metadata and controls
46 lines (38 loc) · 1.29 KB
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
# Database
COMMON_DB_URI="mongodb://localhost:27017/user"
REDIS_HOST="localhost"
REDIS_PORT="6379"
REDIS_PASSWORD="redis123"
# Service URL
USER_SERVICE_ENDPOINT="http://localhost:8001"
AUTH_SERVICE_ENDPOINT="http://localhost:8002"
INTERNAL_SERVICE_ENDPOINT="http://localhost:8003"
PRINTING_SERVICE_ENDPOINT="http://localhost:8004"
SYNC_SERVICE_ENDPOINT="http://localhost:8005"
# Livestream proxy URL
LIVESTREAM_PROXY_URL="https://localhost"
VNOI_CONTEST_URL="https://oj.vnoi.info/contest/vnoicup25_r2"
# VNOJ API Configuration
VNOJ_API_BASE_URL="https://oj.vnoi.info"
VNOJ_API_KEY=""
# JWT Secret
JWT_ACCESS_TOKEN_SECRET="<your secret key here>"
JWT_ACCESS_TOKEN_EXPIRATION_TIME="15m"
JWT_REFRESH_TOKEN_SECRET="<your secret key here>"
JWT_REFRESH_TOKEN_EXPIRATION_TIME="7d"
# Cookie Settings
SECURE_COOKIES="true" # Set to "false" to allow cookies over HTTP (useful for local development)
# Wireguard config for core
WG_CORE_IP_ADDRESS="10.1.0.1"
WG_CORE_PUBLIC_IP=""
WG_CORE_ALLOWED_IPS="10.0.0.0/8"
WG_CORE_PRIVATE_KEY="<your private key here>"
WG_CORE_PUBLIC_KEY="<your public key here>"
WG_MTU=1000
WG_PERSISTENT_KEEPALIVE=15
# Wireguard config
WG_CONTESTANT_BASE_SUBNET="10.10.0.0"
WG_COACH_BASE_SUBNET="10.20.0.0"
WG_ADMIN_BASE_SUBNET="10.100.0.0"
WG_GUEST_BASE_SUBNET="10.200.0.0"
WG_LISTEN_PORT="51820"