You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: conf.go
    path of file: ./repos/cerbos/internal/server
    
    the code of the file until where you have to start completion: // Copyright 2021-2024 Zenauth Ltd.
// SPDX-License-Identifier: Apache-2.0

package server

import (
	"encoding/base64"
	"errors"
	"fmt"
	"strconv"
	"time"

	"go.uber.org/multierr"
	"golang.org/x/crypto/bcrypt"

	"github.com/cerbos/cerbos/internal/config"
	"github.com/cerbos/cerbos/internal/util"
)

const (
	confKey                         = "server"
	defaultAdminPassword            = "cerbosAdmin"
	defaultAdminUsername            = "cerbos"
	defaultGRPCConnectionTimeout    = 60 * time.Second
	defaultGRPCListenAddr           = ":3593"
	defaultGRPCMaxConcurrentStreams = 1024
	defaultGRPCMaxConnectionAge     = 10 * time.Minute
	defaultGRPCMaxRecvMsgSizeBytes  = 4 * 1024 * 1024 // 4MiB
	defaultHTTPIdleTimeout          = 120 * time.Second
	defaultHTTPListenAddr           = ":3592"
	defaultHTTPReadHeaderTimeout    = 15 * time.Second
	defaultHTTPReadTimeout          = 30 * time.Second
	defaultHTTPWriteTimeout         = 30 * time.Second
	defaultMaxActionsPerResource    = 50
	defaultMaxResource
    
func (c *Conf) Validate() (errs error) {
	if _, _, err := util.ParseListenAddress(c.HTTPListenAddr); err != nil {
		errs = multierr.Append(errs, fmt.Errorf("invalid httpListenAddr '%s': %w", c.HTTPListenAddr, err))
	}

	if _, _, err := util.ParseListenAddress(c.GRPCListenAddr); err != nil {
		errs = multierr.Append(errs, fmt.Errorf("invalid grpcListenAddr '%s': %w", c.GRPCListenAddr, err))
	}

	if mode, err := strconv.ParseInt(c.UDSFileMode, 0, 32); err != nil {
		errs = multierr.Append(errs, fmt.Errorf("invalid udsFileMode %q: %w", c.UDSFileMode, err))
	} else if mode <= 0 {
		errs = multierr.Append(errs, fmt.Errorf("invalid udsFileMode %q", c.UDSFileMode))
	}

	if c.RequestLimits.MaxActionsPerResource < 1 || c.RequestLimits.MaxActionsPerResource > requestItemsMax {
		errs = multierr.Append(errs, fmt.Errorf("maxActionsPerResource must be between 1 and %d", requestItemsMax))
	}

	if c.RequestLimits.MaxResourcesPerRequest < 1 || c.RequestLimits.MaxResourcesPerRequest > requestItemsMax {
		errs = multierr.Append(errs, fmt.Errorf("maxResourcesPerRequest must be between 1 and %d", requestItemsMax))
	}

	return errs
}