Use writable database for oauth
authorTom Hughes <tom@compton.nu>
Mon, 3 Oct 2016 20:48:34 +0000 (21:48 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 3 Oct 2016 20:48:34 +0000 (21:48 +0100)
cookbooks/web/recipes/cgimap.rb

index ef8f9bc..d2966e1 100644 (file)
@@ -43,6 +43,7 @@ systemd_service "cgimap" do
               "CGIMAP_DBNAME" => "openstreetmap",
               "CGIMAP_USERNAME" => "rails",
               "CGIMAP_PASSWORD" => db_passwords["rails"],
+              "CGIMAP_OAUTH_HOST" => node[:web][:database_host],
               "CGIMAP_PIDFILE" => "#{node[:web][:pid_directory]}/cgimap.pid",
               "CGIMAP_LOGFILE" => "#{node[:web][:log_directory]}/cgimap.log",
               "CGIMAP_MEMCACHE" => memcached_servers.join(","),