]> ruin.nu Git - ndwebbie.git/commitdiff
Set secure bit on cookies when using https
authorMichael Andreen <harv@ruin.nu>
Thu, 7 Mar 2019 19:01:02 +0000 (20:01 +0100)
committerMichael Andreen <harv@ruin.nu>
Thu, 7 Mar 2019 19:01:02 +0000 (20:01 +0100)
lib/NDWeb.pm

index a63eeaabf24d981f86f1b8d37dbc01cd14d35ccc..850c30eba8f448ac37a909e3a786b619a12aeec1 100644 (file)
@@ -66,6 +66,7 @@ __PACKAGE__->config(session => {
        directory_umask => 077,
        expires => 300,
        verify_address => 1,
+       cookie_secure => 2,
 });
 __PACKAGE__->config( "Plugin::Cache" => {
        backend => {