-
Notifications
You must be signed in to change notification settings - Fork 2
/
run-server.sh
executable file
·38 lines (32 loc) · 1.42 KB
/
run-server.sh
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
#!/bin/bash
# (C) 2024 GoodData Corporation
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
SERVER_CMD="${SCRIPT_DIR}/.venv/bin/gooddata-flight-server"
export PYTHONPATH="${SCRIPT_DIR}/src"
export CONFIG_ENV="${1:-dev}"
DEV_LOG=""
if [[ "$CONFIG_ENV" == "dev" ]]; then
DEV_LOG="--dev-log"
fi
# You can set the following environment variables to set or override
# any settings that can be loaded from configuration files.
#
#export GOODDATA_FLIGHT_SERVER__LISTEN_HOST="..."
#export GOODDATA_FLIGHT_SERVER__LISTEN_PORT="..."
#export GOODDATA_FLIGHT_SERVER__ADVERTISE_HOST="..."
#export GOODDATA_FLIGHT_SERVER__ADVERTISE_PORT="..."
#export GOODDATA_FLIGHT_SERVER__USE_TLS="true"
#export GOODDATA_FLIGHT_SERVER__TLS_CERTIFICATE="@/path/to/server/cert.pem"
#export GOODDATA_FLIGHT_SERVER__TLS_PRIVATE_KEY="@/path/to/server/key.pem"
#export GOODDATA_FLIGHT_SERVER__HEALTH_CHECK_HOST="0.0.0.0"
#export GOODDATA_FLIGHT_SERVER__HEALTH_CHECK_PORT="8877"
#export GOODDATA_FLIGHT_SERVER__AUTHENTICATION_METHOD="token"
#export GOODDATA_FLIGHT_SERVER__TOKEN_VERIFICATION="EnumeratedTokenVerification"
#export GOODDATA_FLIGHT_ENUMERATED_TOKENS__TOKENS='[""]'
$SERVER_CMD start \
--methods-provider gooddata_flexfun \
--config \
config/${CONFIG_ENV}.server.toml \
config/flexfun.config.toml \
--logging-config config/default.logging.ini \
${DEV_LOG}