Set cookie security using useHttps config option

This commit is contained in:
Zed 2019-08-19 03:02:34 +02:00
commit c2413ccfdd
3 changed files with 4 additions and 2 deletions

View file

@ -15,6 +15,7 @@ proc getConfig*(path: string): Config =
Config(
address: cfg.get("Server", "address", "0.0.0.0"),
port: cfg.get("Server", "port", 8080),
useHttps: cfg.get("Server", "https", true),
title: cfg.get("Server", "title", "Nitter"),
staticDir: cfg.get("Server", "staticDir", "./public"),