mirror of
https://github.com/OpenBankProject/API-Explorer-II.git
synced 2026-02-06 10:47:04 +00:00
docfix/Adding notes and debug settings to help diagnose session storage problems which can cause issues with login
This commit is contained in:
parent
779812a020
commit
9cc299a80c
@ -36,3 +36,6 @@ VITE_CHATBOT_URL=http://localhost:5000
|
||||
# https://nodejs.org/en/learn/getting-started/nodejs-the-difference-between-development-and-production
|
||||
# The value could be: development, staging, production
|
||||
# NODE_ENV=development
|
||||
|
||||
# If you have a problem with session storage (which will cause problems with login) you can enable this. See README for further info.
|
||||
#DEBUG=express-session
|
||||
|
||||
@ -10,6 +10,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
// Define the host env variables to be replaced at build time
|
||||
config := []string{"VITE_OBP_API_HOST", "VITE_OBP_API_MANAGER_HOST", "VITE_OBP_API_PORTAL_HOST"}
|
||||
configMap := make(map[string]string)
|
||||
|
||||
|
||||
31
README.md
31
README.md
@ -112,6 +112,37 @@ server {
|
||||
}
|
||||
```
|
||||
|
||||
Note: if you have issues with session stickyness / login issues, enable #DEBUG=express-session in your .env
|
||||
and if you see messages like these in the log,
|
||||
|
||||
```
|
||||
Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session no SID sent, generating session
|
||||
Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session saving 5JIW_dx9CG8qs0OK4iv7Pn2Kg2huZuvQ
|
||||
Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session not secured
|
||||
Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session split response
|
||||
Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session saving -yf0uzAZf5mP9JVYov9oMR7CxQLnO4wm
|
||||
Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session not secured
|
||||
Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session no SID sent, generating session
|
||||
Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session saving nballQYMYZRn_HG0enM2RIPdv7GAdzJc
|
||||
Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session not secured
|
||||
Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session no SID sent, generating session
|
||||
Dec 10 12:26:18 obp-sandbox node[1060160]: Tue, 10 Dec 2024 12:26:18 GMT express-session no SID sent, generating session
|
||||
|
||||
```
|
||||
|
||||
then make sure your NGINX config includes the $scheme:
|
||||
|
||||
```
|
||||
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
```
|
||||
|
||||
so that Node knows that the cookies have been sent securely over https.
|
||||
|
||||
|
||||
# LICENSE
|
||||
|
||||
This project is licensed under the AGPL V3 (see NOTICE) and a commercial license from TESOBE.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user