Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasePorts ¶
type BasePorts struct { JobserverBaseAddr string `yaml:"jobserver_base_addr" default:"http://localhost" comment:"Jobserver Base Address" validate:"required"` BotBaseAddr string `yaml:"bot_base_addr" default:"http://localhost" comment:"Bot Base Address" validate:"required"` JobserverBindAddr string `yaml:"jobserver_bind_addr" default:"127.0.0.1" comment:"Jobserver Bind Address" validate:"required"` BotBindAddr string `yaml:"bot_bind_addr" default:"127.0.0.1" comment:"Bot Bind Address" validate:"required"` Jobserver int `yaml:"jobserver" default:"30000" comment:"Jobserver Base Port" validate:"required"` Bot int `yaml:"bot" default:"20000" comment:"Bot Base Port" validate:"required"` TemplateWorkerAddr string `yaml:"template_worker_addr" default:"http://localhost" comment:"Template Worker Address" validate:"required"` TemplateWorkerPort int `yaml:"template_worker_port" default:"60000" comment:"Template Worker Port" validate:"required"` }
type BotList ¶
type BotList struct { Name string `yaml:"name" comment:"Bot List Name" validate:"required"` APIUrl string `yaml:"api_url" comment:"API Url for the list" validate:"required"` APIToken string `yaml:"api_token" comment:"API Token for the list" validate:"required"` AuthFormat string `` /* 174-byte string literal not displayed */ PostStats *BotListAction `yaml:"post_stats" comment:"Post Stats Action"` }
type BotListAction ¶
type BotListAction struct { Enabled bool `yaml:"enabled" comment:"Whether or not the action is enabled or not" validate:"required"` Method string `yaml:"method" comment:"What HTTP method to use"` Interval int64 `yaml:"interval" comment:"What interval to send messages at"` URLFormat string `yaml:"url_format" comment:"Must be u#{url}?[key1]={key2} (brackets means that anything can be substituted in)"` DataFormat map[string]string `yaml:"data_format" comment:"Must be {key1}={key2} (brackets means that anything can be substituted in)"` }
type Config ¶
type Config struct { DiscordAuth DiscordAuth `yaml:"discord_auth" validate:"required"` Sites Sites `yaml:"sites" validate:"required"` JAPI JAPI `yaml:"japi" validate:"required"` Servers Servers `yaml:"servers" validate:"required"` Meta Meta `yaml:"meta" validate:"required"` ObjectStorage ObjectStorageConfig `yaml:"object_storage" validate:"required"` BasePorts BasePorts `yaml:"base_ports" validate:"required"` }
type DiscordAuth ¶
type DiscordAuth struct { Token string `yaml:"token" comment:"Discord bot token" validate:"required"` ClientID string `yaml:"client_id" default:"849331145862283275" comment:"Discord Client ID" validate:"required"` ClientSecret string `yaml:"client_secret" comment:"Discord Client Secret" validate:"required"` AllowedRedirects []string `yaml:"allowed_redirects" default:"http://localhost:3000/auth" validate:"required"` RootUsers []string `yaml:"root_users" default:"728871946456137770,564164277251080208,775855009421066262" validate:"required"` DPSecret string `yaml:"dp_secret" comment:"DeployProxy Auth URL for super-sensitive pages" validate:"required"` }
type Meta ¶
type Meta struct { WebDisableRatelimits bool `yaml:"web_disable_ratelimits" comment:"Disable ratelimits for the web server"` PostgresURL string `yaml:"postgres_url" default:"postgresql:///antiraid" comment:"Postgres URL" validate:"required"` RedisURL string `yaml:"redis_url" default:"redis://localhost:6379" comment:"Redis URL" validate:"required"` Port int `yaml:"port" default:":8081" comment:"Port to run the server on" validate:"required"` CDNPath string `yaml:"cdn_path" default:"/failuremgmt/cdn/antiraid" comment:"CDN Path" validate:"required"` UrgentMentions string `yaml:"urgent_mentions" default:"<@&1061643797315993701>" comment:"Urgent mentions" validate:"required"` Proxy string `yaml:"proxy" default:"http://127.0.0.1:3221" comment:"Proxy URL" validate:"required"` SupportServerInvite string `yaml:"support_server_invite" comment:"Discord Support Server Link" default:"https://discord.gg/u78NFAXm" validate:"required"` SandwichHttpApi string `yaml:"sandwich_http_api" comment:"(optional) Sandwich HTTP API" default:"http://127.0.0.1:29334" validate:"required"` }
type ObjectStorageConfig ¶
type ObjectStorageConfig struct { Type string `yaml:"type" comment:"Must be one of s3-like or local" validate:"required" oneof:"s3-like local"` Path string `` /* 130-byte string literal not displayed */ Endpoint string `yaml:"endpoint" comment:"Only for s3-like, this should be the endpoint to the bucket."` CdnEndpoint string `yaml:"cdn_endpoint" comment:"Only for s3-like (and DigitalOcean mainly), this should be the CDN endpoint to the bucket."` Secure bool `yaml:"secure" comment:"Only for s3-like, this should be whether or not to use a secure connection to the bucket."` CdnSecure bool `yaml:"cdn_secure" comment:"Only for s3-like, this should be whether or not to use a secure connection to the CDN."` AccessKey string `yaml:"access_key" comment:"Only for s3-like, this should be the access key to the bucket."` SecretKey string `yaml:"secret_key" comment:"Only for s3-like, this should be the secret key to the bucket."` }
Some data such as backups can get quite large. These are stored on a S3-like bucket such as DigitalOcean spaces
type Servers ¶
type Servers struct {
Main string `yaml:"main" default:"1064135068928454766" comment:"Main Server ID" validate:"required"`
}
type Sites ¶
type Sites struct { Frontend string `yaml:"frontend" default:"https://antiraid.xyz" comment:"Frontend URL" validate:"required"` API string `yaml:"api" default:"https://splashtail.antiraid.xyz" comment:"API URL" validate:"required"` Docs string `yaml:"docs" default:"https://docs.antiraid.xyz" comment:"Docs URL" validate:"required"` }
Click to show internal directories.
Click to hide internal directories.