mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-14 21:43:01 +00:00
@@ -37,7 +37,7 @@ if V(IPython.__version__) < V('3.0'):
|
||||
|
||||
from IPython.utils.traitlets import (
|
||||
Unicode, Integer, Dict, TraitError, List, Bool, Any,
|
||||
Type, Set, Instance, Bytes,
|
||||
Type, Set, Instance, Bytes, Float,
|
||||
)
|
||||
from IPython.config import Application, catch_config_error
|
||||
|
||||
@@ -185,6 +185,11 @@ class JupyterHub(Application):
|
||||
Useful for daemonizing jupyterhub.
|
||||
"""
|
||||
)
|
||||
cookie_max_age_days = Float(14, config=True,
|
||||
help="""Number of days for a login cookie to be valid.
|
||||
Default is two weeks.
|
||||
"""
|
||||
)
|
||||
last_activity_interval = Integer(300, config=True,
|
||||
help="Interval (in seconds) at which to update last-activity timestamps."
|
||||
)
|
||||
@@ -805,6 +810,7 @@ class JupyterHub(Application):
|
||||
spawner_class=self.spawner_class,
|
||||
base_url=self.base_url,
|
||||
cookie_secret=self.cookie_secret,
|
||||
cookie_max_age_days=self.cookie_max_age_days,
|
||||
login_url=login_url,
|
||||
logout_url=logout_url,
|
||||
static_path=os.path.join(self.data_files_path, 'static'),
|
||||
|
Reference in New Issue
Block a user