]> xn--ix-yja.es Git - alex.git/commitdiff
Try to increase Ipsilon session timeout
authoralex <alex@pdp7.net>
Sun, 22 Oct 2023 08:11:00 +0000 (10:11 +0200)
committeralex <alex@pdp7.net>
Sun, 22 Oct 2023 08:11:15 +0000 (10:11 +0200)
personal_infra/puppet/modules/ipsilon/manifests/init.pp
personal_infra/puppet/site/ipsilon.h1.int.pdp7.net.pp

index aa0908aa9e68513b68697b48f7021f1d5a70bcfd..e7f5c09aa97977b4e840f5c9a06fe11dc51bdaa7 100644 (file)
@@ -1,6 +1,35 @@
-class ipsilon {
+class ipsilon($session_timeout_minutes = 30) {
   package {['ipsilon-tools-ipa', 'ipsilon-openidc']:}
+  ->
+  file {'/etc/ipsilon/root/ipsilon.conf':
+    content => @("EOT")
+      [global]
+      debug = False
+      tools.log_request_response.on = False
+      template_dir = "templates"
+      cache_dir = "/var/cache/ipsilon"
+      cleanup_interval = 30
+      db.conn.log = False
+      db.echo = False
 
+      # base.mount = ""
+      base.dir = "/usr/share/ipsilon"
+      admin.config.db = "sqlite:////var/lib/ipsilon/root/adminconfig.sqlite"
+      user.prefs.db = "sqlite:////var/lib/ipsilon/root/userprefs.sqlite"
+      transactions.db = "sqlite:////var/lib/ipsilon/root/transactions.sqlite"
+
+      tools.sessions.on = True
+      tools.sessions.name = "root_ipsilon_session_id"
+      tools.sessions.storage_type = "file"
+      tools.sessions.storage_path = "/var/lib/ipsilon/root/sessions"
+      tools.sessions.path = ""
+      tools.sessions.timeout = $session_timeout_minutes
+      tools.sessions.httponly = True
+      tools.sessions.secure = True
+      | EOT
+    ,
+  }
+  ~>
   service {'httpd':
     ensure => running,
     enable => true,
index b5f756cf26a5dbbbced4790a4e98aa08b68143eb..ccc824111d2056ecdbdbe1e1f620a06c57871336 100644 (file)
@@ -1,3 +1,5 @@
 node 'ipsilon.h1.int.pdp7.net' {
-  class {'ipsilon':}
+  class {'ipsilon':
+    session_timeout_minutes => 60*24*7,
+  }
 }