@@ -112,6 +112,37 @@ server {
112112}
113113```
114114
115+ Note: if you have issues with session stickyness / login issues, enable #DEBUG=express-session in your .env
116+ and if you see messages like these in the log,
117+
118+ ```
119+ Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session no SID sent, generating session
120+ Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session saving 5JIW_dx9CG8qs0OK4iv7Pn2Kg2huZuvQ
121+ Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session not secured
122+ Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session split response
123+ Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session saving -yf0uzAZf5mP9JVYov9oMR7CxQLnO4wm
124+ Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session not secured
125+ Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session no SID sent, generating session
126+ Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session saving nballQYMYZRn_HG0enM2RIPdv7GAdzJc
127+ Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session not secured
128+ Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session no SID sent, generating session
129+ Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session no SID sent, generating session
130+
131+ ```
132+
133+ then make sure your NGINX config includes the $scheme:
134+
135+ ```
136+
137+ proxy_set_header X-Real-IP $remote_addr;
138+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
139+ proxy_set_header X-Forwarded-Proto $scheme;
140+
141+ ```
142+
143+ so that Node knows that the cookies have been sent securely over https.
144+
145+
115146# LICENSE
116147
117148This project is licensed under the AGPL V3 (see NOTICE) and a commercial license from TESOBE.
0 commit comments