-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit_env.sh
More file actions
executable file
·34 lines (30 loc) · 924 Bytes
/
init_env.sh
File metadata and controls
executable file
·34 lines (30 loc) · 924 Bytes
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
#!/bin/bash
# Only for development environment.
# Edit from docker-compose.yml directly if needed.
# Changing these values is currently only partly supported.
MYSQL_DATABASE="chirpdb"
MYSQL_USER="chirpweb"
MYSQL_HOST="127.0.0.1"
MYSQL_PORT="3306"
BACKEND_ADDRESS="0.0.0.0"
BACKEND_PORT="80"
# THESE VALUES SHOULD BE UPDATED BY YOU
# Values will be passed to docker containers
MYSQL_PASSWORD="YOUR PASSWORD HERE"
MYSQL_ROOT_PASSWORD="YOUR PASSWORD HERE"
WEB_TOKEN_PRIVATE_KEY="YOUR TOKEN HERE"
CORS_SITES="http://localhost:8080 https://localhost:8080"
export MYSQL_DATABASE
export MYSQL_USER
export MYSQL_PASSWORD
export MYSQL_HOST
export MYSQL_PORT
export WEB_TOKEN_PRIVATE_KEY
export CORS_SITES
export BACKEND_ADDRESS
export BACKEND_PORT
echo $MYSQL_ROOT_PASSWORD > ./db_root_password.txt
echo $MYSQL_PASSWORD > ./db_password.txt
echo $WEB_TOKEN_PRIVATE_KEY > ./token_pk.txt
echo $CORS_SITES > ./cors_sites.txt
sleep 1