Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

password field does not work, but CADDY_CLUSTERING_REDIS_PASSWORD does in caddy v2 #13

Closed
regbo opened this issue Sep 30, 2020 · 2 comments

Comments

@regbo
Copy link
Contributor

regbo commented Sep 30, 2020

See subject.

To reproduce:

docker run -it --rm --name redis -e REDIS_PASSWORD=password123 -p 6379:6379 bitnami/redis:latest

This does not work:

	"storage": {
		"aes_key": "redistls-01234567890-caddytls-32",
		"db": 1,
		"host": "localhost",
		"key_prefix": "caddytls",
		"module": "redis",
		"password": "password123",
		"port": "6379",
		"timeout": 5,
		"tls_enabled": false,
		"tls_insecure": true,
		"value_prefix": "caddy-storage-redis"
	}

This does work:

export CADDY_CLUSTERING_REDIS_PASSWORD=password123

with this config:

	"storage": {
		"aes_key": "redistls-01234567890-caddytls-32",
		"db": 1,
		"host": "localhost",
		"key_prefix": "caddytls",
		"module": "redis",
		"password": "",
		"port": "6379",
		"timeout": 5,
		"tls_enabled": false,
		"tls_insecure": true,
		"value_prefix": "caddy-storage-redis"
	}

error log:

2020/09/30 21:02:49.419 INFO    caddy.storage.redis     TLS Storage are using Redis, on 127.0.0.1:6379
2020/09/30 21:02:49.422 ERROR   admin.api       request error   {"error": "loading config: loading new config: loading storage module: loading module 'redis': provision caddy.storage.redis: NOAUTH Authentication required.", "status_code": 400}
2020/09/30 21:02:49.919 INFO    admin   stopped previous server
@gamalan
Copy link
Owner

gamalan commented Oct 2, 2020

which caddy2 version do you use?

@regbo
Copy link
Contributor Author

regbo commented Oct 8, 2020

Sorry for the late reply, the latest version built with xcaddy.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants