Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added redis config for port and cache prefix. #92

Closed
wants to merge 1 commit into from
Closed

Conversation

thom8
Copy link
Contributor

@thom8 thom8 commented Sep 26, 2019

Allow overriding of the redis port and cache prefix without affecting current behaviour.

Projects will be able to customise the redis HOST, PORT and CACHE_PREFIX if required.

@@ -145,9 +145,9 @@ public function __toString() {
if (getenv('LAGOON') && (getenv('ENABLE_REDIS'))) {
$settings['redis.connection']['interface'] = 'PhpRedis';
$settings['redis.connection']['host'] = getenv('REDIS_HOST') ?: 'redis';
$settings['redis.connection']['port'] = 6379;
$settings['redis.connection']['port'] = getenv('REDIS_PORT') ?: 6379;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but Lagoon env var for REDIS_PORT includes more than it should (e.g looks to be REDIS_PORT=tcp://172.30.42.136:6379)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks! will update to REDIS_SERVICE_PORT

@simesy
Copy link
Contributor

simesy commented Oct 18, 2019

Can future changes please start in https://github.com/govCMS/scaffold-tooling which is canonical. Also #97

Will need a following PR once this is committed either way.

@simesy simesy mentioned this pull request Oct 18, 2019
@stooit stooit changed the base branch from master to develop October 20, 2019 20:42
@stooit
Copy link
Collaborator

stooit commented Oct 22, 2019

Merged in #100

@stooit stooit closed this Oct 22, 2019
@stooit stooit deleted the redis_conf branch October 22, 2019 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants