Commit 4be9e99b authored by Nikhil Doifode's avatar Nikhil Doifode
Browse files

Resolved PR comments

parent 4e461702
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -192,8 +192,8 @@ couchdbConfig:
    # 5984 when is set to true.
    require_valid_user: false
  couch_httpd_auth:
    # Setting default timeout to 365 days (365*24*60*60)
    # timeout: 31536000
    # Setting default timeout to 20 min (20*60)
    timeout: 1200
    require_valid_user: true
    allow_persistent_cookies: true

+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ type Connector struct {

func authenticateConnection(dbClient *kivik.Client) {
	for {
		time.Sleep(9 * time.Minute)
		time.Sleep(10 * time.Minute)
		err := dbClient.Authenticate(context.TODO(), &chttp.CookieAuth{Username: "admin", Password: "admin"})
		if err != nil {
			log.Debug("Re-Authentication failed", err)