mirror of
https://github.com/dataease/dataease.git
synced 2025-02-23 19:12:55 +08:00
Merge pull request #10355 from dataease/pr@dev-v2_modify_apisix_key_generator
refactor: 处理 APISIX key 中可能包含的无法使用的字符
This commit is contained in:
commit
dbae2d7617
@ -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