修改 schedule 服务代理环境变量

This commit is contained in:
whyour
2023-12-10 21:53:23 +08:00
parent 95afcbc9dd
commit be1d68c0d1
6 changed files with 21 additions and 5 deletions
+4
View File
@@ -71,6 +71,7 @@ import_config() {
ql_port=${QlPort:-"5700"}
command_timeout_time=${CommandTimeoutTime:-""}
file_extensions=${RepoFileExtensions:-"js py"}
proxy_url=${ProxyUrl:-""}
current_branch=${QL_BRANCH}
if [[ -n "${DefaultCronRule}" ]]; then
@@ -87,6 +88,9 @@ import_config() {
set_proxy() {
local proxy="$1"
if [[ $proxy ]]; then
proxy_url="$proxy"
fi
if [[ $proxy_url ]]; then
export http_proxy="${proxy_url}"
export https_proxy="${proxy_url}"
fi