mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix: change jwt expiry time to config
* rename dockerfile env
This commit is contained in:
1 parent
8b5f7175a7
commit
de8d49aea3
2 files changed
+2
-2
No files matched your search
@@ -1,5 +1,5 @@
|
||||
FROM lancatlin/linux-odyssey:base
|
||||
|
||||
COPY ./quests/helloworld/home /home/${USERNAME}/
|
||||
COPY ./quests/helloworld/home ${HOME}
|
||||
|
||||
CMD [ "/bin/zsh" ]
|
||||
@@ -19,7 +19,7 @@ export function genSessionJWT(session) {
|
||||
jwt.sign(
|
||||
{ session_id: session.id },
|
||||
config.jwtSecret,
|
||||
{ expiresIn: '1h' },
|
||||
{ expiresIn: config.expiry },
|
||||
(err, token) => {
|
||||
if (err) {
|
||||
reject(err)
|
||||
|
||||
Reference in new issue
Block a user