{"action":"created","issue":{"url":"https://api.github.com/repos/OptimalBits/redbird/issues/83","repository_url":"https://api.github.com/repos/OptimalBits/redbird","labels_url":"https://api.github.com/repos/OptimalBits/redbird/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/OptimalBits/redbird/issues/83/comments","events_url":"https://api.github.com/repos/OptimalBits/redbird/issues/83/events","html_url":"https://github.com/OptimalBits/redbird/issues/83","id":198191169,"number":83,"title":"Can't get express session to work behind the proxy","user":{"login":"Smirow","id":16503412,"avatar_url":"https://avatars.githubusercontent.com/u/16503412?v=3","gravatar_id":"","url":"https://api.github.com/users/Smirow","html_url":"https://github.com/Smirow","followers_url":"https://api.github.com/users/Smirow/followers","following_url":"https://api.github.com/users/Smirow/following{/other_user}","gists_url":"https://api.github.com/users/Smirow/gists{/gist_id}","starred_url":"https://api.github.com/users/Smirow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smirow/subscriptions","organizations_url":"https://api.github.com/users/Smirow/orgs","repos_url":"https://api.github.com/users/Smirow/repos","events_url":"https://api.github.com/users/Smirow/events{/privacy}","received_events_url":"https://api.github.com/users/Smirow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-30T20:27:44Z","updated_at":"2016-12-30T21:21:54Z","closed_at":"2016-12-30T21:21:54Z","body":"Hi ! \r\n\r\nThe proxy work great but I cant really get express session to work, the client didn't get any cookie. However Websocket work as expected.\r\nIs there a way to get express session to work behind redbird in https ?\r\n\r\n```\r\n// My Proxy \r\nvar proxy = require('redbird')({\r\n    port: 80,\r\n    xfwd: true,\r\n    letsencrypt: {\r\n        path: '/letscerts',\r\n        port: 3100\r\n\r\n    },\r\n    ssl: {\r\n        port: 443,\r\n    }\r\n});\r\n\r\n// Express session \r\napp.set('trust proxy', true);\r\nvar sessionMiddleware = session({\r\n    proxy: true,\r\n    cookie: {\r\n        secure: true,\r\n        maxAge: 15 * 24 * 60 * 60 * 1000\r\n    },\r\n    secret: 'foo',\r\n    saveUninitialized: false,\r\n    resave: false,\r\n    rolling: true,\r\n    store: new MongoStore({\r\n        url: DBHOST\r\n    })\r\n});\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/OptimalBits/redbird/issues/comments/269823522","html_url":"https://github.com/OptimalBits/redbird/issues/83#issuecomment-269823522","issue_url":"https://api.github.com/repos/OptimalBits/redbird/issues/83","id":269823522,"user":{"login":"Smirow","id":16503412,"avatar_url":"https://avatars.githubusercontent.com/u/16503412?v=3","gravatar_id":"","url":"https://api.github.com/users/Smirow","html_url":"https://github.com/Smirow","followers_url":"https://api.github.com/users/Smirow/followers","following_url":"https://api.github.com/users/Smirow/following{/other_user}","gists_url":"https://api.github.com/users/Smirow/gists{/gist_id}","starred_url":"https://api.github.com/users/Smirow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smirow/subscriptions","organizations_url":"https://api.github.com/users/Smirow/orgs","repos_url":"https://api.github.com/users/Smirow/repos","events_url":"https://api.github.com/users/Smirow/events{/privacy}","received_events_url":"https://api.github.com/users/Smirow/received_events","type":"User","site_admin":false},"created_at":"2016-12-30T21:21:54Z","updated_at":"2016-12-30T21:21:54Z","body":"The problem was with my code, everything seems to work now 👍."}}
{"actor":{"display_login":"Smirow"}}