forked from github/dataease
refactor: 处理 APISIX key 中可能包含的无法使用的字符
This commit is contained in:
parent
f699e8a3db
commit
fe01f55a3d
@ -67,7 +67,7 @@ function _check_apisix_init() {
|
||||
function _prepare_apisix() {
|
||||
if [[ -z $DE_APISIX_KEY ]];then
|
||||
need_init_apisix=true
|
||||
DE_APISIX_KEY=$(head -c 32 /dev/urandom | base64)
|
||||
DE_APISIX_KEY=$(head -c 32 /dev/urandom | base64 | sed 's#/#+#g')
|
||||
export DE_APISIX_KEY=$DE_APISIX_KEY
|
||||
cd $DE_RUNNING_BASE
|
||||
env | grep DE_ >.env
|
||||
|
Loading…
Reference in New Issue
Block a user