[DOCKER][Redis][PLUGIN][OAuth2] Temporarily disable redis protected mode and fix permission of OAuth2 keys
This commit is contained in:
parent
a44e64ed7a
commit
584a0d8fed
|
@ -84,7 +84,7 @@ bind redis 127.0.0.1
|
||||||
# you are sure you want clients from other hosts to connect to Redis
|
# you are sure you want clients from other hosts to connect to Redis
|
||||||
# even if no authentication is configured, nor a specific set of interfaces
|
# even if no authentication is configured, nor a specific set of interfaces
|
||||||
# are explicitly listed using the "bind" directive.
|
# are explicitly listed using the "bind" directive.
|
||||||
protected-mode yes
|
protected-mode no
|
||||||
|
|
||||||
# Accept connections on the specified port, default is 6379 (IANA #815344).
|
# Accept connections on the specified port, default is 6379 (IANA #815344).
|
||||||
# If port 0 is specified Redis will not listen on a TCP socket.
|
# If port 0 is specified Redis will not listen on a TCP socket.
|
||||||
|
|
|
@ -9,6 +9,7 @@ if [ ! -f private.key ]; then
|
||||||
openssl rsa -in private.key -pubout -out public.key
|
openssl rsa -in private.key -pubout -out public.key
|
||||||
|
|
||||||
chown www-data:www-data private.key public.key
|
chown www-data:www-data private.key public.key
|
||||||
|
chmod 600 private.key public.key
|
||||||
else
|
else
|
||||||
echo "Keys exist, nothing to do"
|
echo "Keys exist, nothing to do"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user