Skip to content

Commit

Permalink
fix: [torrust#22] update settings endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Aug 5, 2024
1 parent 3400f4b commit 81c2551
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions src/types/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export type Settings = {
logging: Logging,
website: Website,
tracker: Tracker,
net: Network,
net: Net,
auth: Auth,
database: Database,
mail: Mail,
Expand All @@ -12,6 +12,12 @@ export type Settings = {
tracker_statistics_importer: TrackerStatisticsImporter
}

export type Metadata = {
app: string,
purpose: string,
schema_version: string,
}

export type Logging = {
threshold: Threshold,
}
Expand All @@ -29,15 +35,15 @@ export type Tracker = {
url: string
}

export type Network = {
export type Net = {
base_url: string | null
bind_address: string
tsl: Tsl | null
}

export type Auth = {
email_on_signup: EmailOnSignup
secret_key: string
user_claim_token_pepper: string
password_constraints: PasswordConstraints
}

Expand All @@ -46,7 +52,6 @@ export type Database = {
}

export type Mail = {
email_verification_enabled: boolean
from: string
reply_to: string
smtp: Smtp
Expand All @@ -65,6 +70,10 @@ export type Api = {
max_torrent_page_size: number
}

export type Registration = {
email: Email
}

export type TrackerStatisticsImporter = {
port: number
torrent_info_update_interval: number
Expand Down Expand Up @@ -112,4 +121,9 @@ export enum Threshold {
Info = "info",
Debug = "debug",
Trace = "trace",
}

export type Email = {
required: boolean
verification_required: boolean
}

0 comments on commit 81c2551

Please sign in to comment.