Skip to content

Instantly share code, notes, and snippets.

View ghinks's full-sized avatar

Glenn ghinks

View GitHub Profile
@ghinks
ghinks / fastify-session-over-https-using-redis-store.js
Last active April 3, 2024 16:36
fastify session example over https using redis store
'use strict'
const path = require('path')
const Fastify = require('fastify')
const fastifySession = require('fastify-session')
const fastifyCookie = require('fastify-cookie')
const fs = require('fs')
const isDocker = require('is-docker')
const RedisStore = require('connect-redis')(fastifySession);