mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30: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
|
FROM lancatlin/linux-odyssey:base
|
||||||
|
|
||||||
COPY ./quests/helloworld/home /home/${USERNAME}/
|
COPY ./quests/helloworld/home ${HOME}
|
||||||
|
|
||||||
CMD [ "/bin/zsh" ]
|
CMD [ "/bin/zsh" ]
|
||||||
@@ -19,7 +19,7 @@ export function genSessionJWT(session) {
|
|||||||
jwt.sign(
|
jwt.sign(
|
||||||
{ session_id: session.id },
|
{ session_id: session.id },
|
||||||
config.jwtSecret,
|
config.jwtSecret,
|
||||||
{ expiresIn: '1h' },
|
{ expiresIn: config.expiry },
|
||||||
(err, token) => {
|
(err, token) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
reject(err)
|
reject(err)
|
||||||
|
|||||||
Reference in new issue
Block a user