mirror of https://github.com/MISP/misp-dashboard
chg: [authentication] added flask session secret
parent
e18728e8b1
commit
a0ccff71ef
|
@ -6,6 +6,7 @@ debug = False
|
||||||
[Auth]
|
[Auth]
|
||||||
misp_fqdn = "https://misp.local"
|
misp_fqdn = "https://misp.local"
|
||||||
ssl_verify = True
|
ssl_verify = True
|
||||||
|
session_secret = **Change_Me**
|
||||||
|
|
||||||
[Dashboard]
|
[Dashboard]
|
||||||
#hours
|
#hours
|
||||||
|
|
|
@ -34,9 +34,11 @@ server_host = cfg.get("Server", "host")
|
||||||
server_port = cfg.getint("Server", "port")
|
server_port = cfg.getint("Server", "port")
|
||||||
server_debug = cfg.get("Server", "debug")
|
server_debug = cfg.get("Server", "debug")
|
||||||
auth_host = cfg.get("Auth", "misp_fqdn")
|
auth_host = cfg.get("Auth", "misp_fqdn")
|
||||||
auth_ssl_verify = cfg.get("Auth", "ssl_verify")
|
auth_ssl_verify = cfg.getboolean("Auth", "ssl_verify")
|
||||||
|
auth_session_secret = cfg.get("Auth", "session_secret")
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
app.secret_key = auth_session_secret
|
||||||
|
|
||||||
redis_server_log = redis.StrictRedis(
|
redis_server_log = redis.StrictRedis(
|
||||||
host=cfg.get('RedisGlobal', 'host'),
|
host=cfg.get('RedisGlobal', 'host'),
|
||||||
|
|
Loading…
Reference in New Issue