修改OpenSack Dashboard 连接超时

发表于 2016-01-05   |   分类于 技术

修改 /usr/share/openstack-dashboard/openstack_dashboard/settings.py 文件:

SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies'
SESSION_COOKIE_HTTPONLY = True
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
SESSION_COOKIE_SECURE = False
#SESSION_TIMEOUT = 1800
SESSION_TIMEOUT = 86400
SESSION_COOKIE_AGE = 86400

然后重启httpd服务

systemctl restart httpd

这样修改,一天内dashboard都不再需要输入用户名密码

© 2017 Powered by Typecho
苏ICP备15035969号-3