auth.mx raw

   1  package config
   2  
   3  // AuthCfg groups access control, authentication, mute, rate-limit, and IP
   4  // policy fields. Pass this slice to domain constructors that only need auth
   5  // configuration (e.g. access control checks, ACL services).
   6  type AuthCfg struct {
   7  	AuthRequired    bool
   8  	AuthToWrite     bool
   9  	PrivilegedOpen  bool
  10  	NIP70Enforce    bool
  11  	MarmotOpen      bool
  12  	NIP46BypassAuth bool
  13  	ACLMode         string
  14  	MuteBlacklist   string
  15  	Admins          []string
  16  	Owners          []string
  17  	FreeWriteLimit  int32
  18  	FreeWriteWindow int32
  19  	IPWhitelist     []string
  20  	IPBlacklist     []string
  21  	FollowListFreqSec     int32
  22  	FollowsThrottle       bool
  23  	FollowsThrottleIncrMs int32
  24  	FollowsThrottleMaxMs  int32
  25  	SocialThrottleD2IncrMs       int32
  26  	SocialThrottleD2MaxMs        int32
  27  	SocialThrottleD3IncrMs       int32
  28  	SocialThrottleD3MaxMs        int32
  29  	SocialThrottleOutsiderIncrMs int32
  30  	SocialThrottleOutsiderMaxMs  int32
  31  	SocialWoTMaxDepth            int32
  32  	SocialWoTRefreshSec          int32
  33  	GrapeVineEnabled         bool
  34  	GrapeVineMaxDepth        int32
  35  	GrapeVineMaxCycles       int32
  36  	GrapeVineAttenuation     float64
  37  	GrapeVineRigor           float64
  38  	GrapeVineFollowConf      float64
  39  	GrapeVineObservers       []string
  40  	GrapeVineRefreshSec      int32
  41  	GrapeVineAutoWhitelist   bool
  42  	GrapeVineWhitelistThresh float64
  43  	GrapeVineWhitelistRefSec int32
  44  }
  45