organize prepare db api keys
This commit is contained in:
parent
8bdb82c7be
commit
455202cd1a
@ -138,6 +138,10 @@ EOF
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# API keys ==============================
|
||||||
|
|
||||||
|
# User localhost -----------------------
|
||||||
|
|
||||||
# API Key Master
|
# API Key Master
|
||||||
cat <<EOF | redis-cli -p ${REDIS_PORT} -n 5
|
cat <<EOF | redis-cli -p ${REDIS_PORT} -n 5
|
||||||
HMSET api_keys:localhost:1234 \
|
HMSET api_keys:localhost:1234 \
|
||||||
@ -182,6 +186,9 @@ cat <<EOF | redis-cli -p ${REDIS_PORT} -n 5
|
|||||||
database_password "public"
|
database_password "public"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# User cartodb250user -----------------------
|
||||||
|
|
||||||
|
# API Key Master
|
||||||
cat <<EOF | redis-cli -p ${REDIS_PORT} -n 5
|
cat <<EOF | redis-cli -p ${REDIS_PORT} -n 5
|
||||||
HMSET api_keys:cartodb250user:4321 \
|
HMSET api_keys:cartodb250user:4321 \
|
||||||
user "localhost" \
|
user "localhost" \
|
||||||
@ -192,7 +199,7 @@ cat <<EOF | redis-cli -p ${REDIS_PORT} -n 5
|
|||||||
database_password "${TESTPASS}"
|
database_password "${TESTPASS}"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# API Key Default public
|
# API Key Default
|
||||||
cat <<EOF | redis-cli -p ${REDIS_PORT} -n 5
|
cat <<EOF | redis-cli -p ${REDIS_PORT} -n 5
|
||||||
HMSET api_keys:cartodb250user:default_public \
|
HMSET api_keys:cartodb250user:default_public \
|
||||||
user "localhost" \
|
user "localhost" \
|
||||||
|
Loading…
Reference in New Issue
Block a user