File tree 3 files changed +9
-1
lines changed
lowcoder-sdk/src/main/java/org/lowcoder/sdk/config
lowcoder-server/src/main/resources
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,11 @@ public static class Workspace {
137
137
@ Data
138
138
public static class Cookie {
139
139
//Set cookie max age to 1 day
140
- private long maxAgeInSeconds = Duration .ofDays (1 ).toSeconds ();
140
+ private long maxAgeInHours = 24 ;
141
+
142
+ public long getMaxAgeInSeconds () {
143
+ return Duration .ofHours (maxAgeInHours ).toSeconds ();
144
+ }
141
145
}
142
146
143
147
@ Data
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ common:
45
45
private-mode : ${LOWCODER_MARKETPLACE_PRIVATE_MODE:true}
46
46
lowcoder-public-url : ${LOWCODER_PUBLIC_URL:http://localhost:3000}
47
47
notifications-email-sender : ${LOWCODER_EMAIL_NOTIFICATIONS_SENDER:info@localhost}
48
+ cookie :
49
+ max-age-in-hours : ${LOWCODER_COOKIE_MAX_AGE:24}
48
50
49
51
debug : true
50
52
Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ common:
86
86
private-mode : ${LOWCODER_MARKETPLACE_PRIVATE_MODE:true}
87
87
lowcoder-public-url : ${LOWCODER_PUBLIC_URL:http://localhost:3000}
88
88
notifications-email-sender : ${LOWCODER_EMAIL_NOTIFICATIONS_SENDER:info@localhost}
89
+ cookie :
90
+ max-age-in-hours : ${LOWCODER_COOKIE_MAX_AGE:24}
89
91
90
92
material :
91
93
mongodb-grid-fs :
You can’t perform that action at this time.
0 commit comments