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

Provide support for Redis as session store for portal-ui #83

Closed
achwie opened this issue Jul 28, 2017 · 2 comments
Closed

Provide support for Redis as session store for portal-ui #83

achwie opened this issue Jul 28, 2017 · 2 comments
Assignees
Milestone

Comments

@achwie
Copy link
Contributor

achwie commented Jul 28, 2017

It would be great if the session store for the Portal-UI could be changed from file based (currently we use session-file-store) to other options, such as Redis.

@DonMartin76
Copy link
Member

Mostly done...

DonMartin76 added a commit to apim-haufe-io/wicked.kickstarter that referenced this issue Sep 15, 2017
* Redis session store - redis configuration settings

* Minor bugfix when creating new auth servers

* Better support for feature branch builds.

* Bugfix: sessionStore settings were not written out to globals.json. See Haufe-Lexware/wicked.haufe.io#83

* Redis sessionstore - default to "file" for localhost env
DonMartin76 pushed a commit to apim-haufe-io/wicked.ui that referenced this issue Sep 15, 2017
* Added support for Redis as session store (via env variable SESSION_STORE_TYPE). Fixes Haufe-Lexware/wicked.haufe.io#83

* Added connect-redis to package.json. See Haufe-Lexware/wicked.haufe.io#83

* Redis sessions - read configuration from globals instead of directly from env vars.

* Better support for feature branch building.
DonMartin76 pushed a commit to apim-haufe-io/wicked.test that referenced this issue Sep 15, 2017
* Redis can now be used as session store for portal tests. See Haufe-Lexware/wicked.haufe.io#83:

* Redis sessions - refactorings preparing reading session store config from globals.json

* Redis sessions - run unit tests with and without redis sessions

* Better feature branch building - match image tags automatically

* Jenkinsfile comma missing

* Fixing detection of failed test cases... when did that disappear?
DonMartin76 pushed a commit to apim-haufe-io/wicked.env that referenced this issue Sep 15, 2017
* Added connect-redis to package.all.json. See Haufe-Lexware/wicked.haufe.io#83

* Redis Sessionstore - add section in globals.json at config update for 0.12.0.

* Redis sessions - default configuration settings (default to using redis).
@DonMartin76
Copy link
Member

How to use in wicked 0.12.0:

  • New configurations/deployment setups which were configured with the Kickstarter default to using redis as a Session Store; it can be configured in the IP Configuration section of the Kickstarter

Adding to existing setups:

  • Add a redis component to your setup, e.g. a docker container with redis:3.2.10-alpine, which is the default for new setups, and make sure it's reachable as a service inside your deployment; the default URI is portal-redis, port 6739, not using a password.
  • Configure the "Session Store" to use redis in your IP Configuration section in the Kickstarter; this can also be configured differently for different environments (local testing, production,...), using environment variables. The default env var is PORTAL_SESSIONSTORE_TYPE, which should be set to file (the current non-scaling option) or redis.
  • When starting the Kickstarter with your configuration, it will automatically add the options to your globals.json file, defaulting to file for existing configurations (to maintain backwards compatibility).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants