docbrown/app
Andy Zhao b2e18aeb72 Use Redis for session storage (#4004) [deploy]
* WIP use redis-session-store for sessions

* Use Redis as session storage

* Add redis-server to Travis

* Use integer for SESSION_EXPIRY_SECONDS env variable

Co-Authored-By: rhymes <rhymesete@gmail.com>

* Remove sessions b/c no custom sessions logic

* Use ApplicationConfig instead

* Rename default value

* Remove rememberable module

* Persist the user for the test

* Remove remember_me related tests

* Revert 'undo remember_me' commits

* Add redis to procfile

* Cleanup devise configuration

* Move REDIS configuration in the basic configuration section

* Make sure the expiration time can't zero

* Restore old order and remove useless comment line

* Delete legacy session cookie after login

Once deployed the server will start using the new session cookie, this makes sure the legacy one is deleted on the user's browser

* Remove redis from Procfile

* Add signed, secure and httponly to the Redis session cookie
2019-11-12 10:10:34 -06:00
..
assets Add link to /community-moderation on all /mod pages (#4567) [deploy] 2019-11-12 10:11:26 -05:00
black_box Update feed to have popular post stick around less (#4413) 2019-10-14 12:34:11 -04:00
controllers Use Redis for session storage (#4004) [deploy] 2019-11-12 10:10:34 -06:00
dashboards Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
decorators Move cached_followed_tags to redis (#4714) 2019-11-05 09:34:58 -05:00
errors Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
fields Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
helpers Setting width & height attributes to SVGs on articles#show page (#4705) 2019-11-05 13:13:44 -05:00
javascript Onboarding a11y fixes (#4728) [deploy] 2019-11-06 12:51:13 -05:00
jobs Self-deleting user account (#4480) [deploy] 2019-11-11 14:59:01 -05:00
labor Remove hacktoberfest from sidebar (#4740) 2019-11-07 11:34:20 -05:00
lib Update constants.rb (#4394) 2019-10-14 09:15:09 -04:00
liquid_tags Add JSitor liquid tag (#4657) [deploy] 2019-11-05 09:43:52 -05:00
mailers Make The Default Email An Enviroment Variable. (#4677) 2019-11-01 09:03:06 -04:00
models Use Redis for session storage (#4004) [deploy] 2019-11-12 10:10:34 -06:00
observers Add comment markdown to warned_user_ping (#3750) 2019-08-22 22:04:45 -04:00
policies Self-deleting user account (#4480) [deploy] 2019-11-11 14:59:01 -05:00
sanitizers Add support for mark element in markdown (#2089) 2019-03-18 17:10:58 -04:00
serializers/webhook Use a sortable unique ID for the event_id (#3972) 2019-09-09 10:15:12 -04:00
services Add AnalyticsService to redis cache (#4755) [deploy] 2019-11-11 17:30:26 -05:00
uploaders Strip EXIF and GPS data from uploaded images (#4450) 2019-10-24 16:35:10 -04:00
view_objects Dispatch events to the webhook endpoints #3715 (#3872) 2019-09-07 13:17:45 -04:00
views Add link to /community-moderation on all /mod pages (#4567) [deploy] 2019-11-12 10:11:26 -05:00