summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorTomatoCake <60300461+DEVTomatoCake@users.noreply.github.com>2024-06-28 10:17:24 +0200
committerTomatoCake <60300461+DEVTomatoCake@users.noreply.github.com>2024-06-28 10:17:24 +0200
commit16f8a1c7ac4eb1dafd571b5b3082f0df129fd39f (patch)
tree8d33c90273630be6d1c7dcca0a183367c8c67712 /src/util
parentPrettier stuff -.- (diff)
downloadserver-ts-16f8a1c7ac4eb1dafd571b5b3082f0df129fd39f.tar.xz
Add config value for cache duration
Diffstat (limited to 'src/util')
-rw-r--r--src/util/config/types/CdnConfiguration.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/util/config/types/CdnConfiguration.ts b/src/util/config/types/CdnConfiguration.ts

index 033190813..842cb87c4 100644 --- a/src/util/config/types/CdnConfiguration.ts +++ b/src/util/config/types/CdnConfiguration.ts
@@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. */ @@ -25,4 +25,6 @@ export class CdnConfiguration extends EndpointConfiguration { endpointPublic: string | null = null; endpointPrivate: string | null = null; + + proxyCacheHeaderSeconds: number = 60 * 60 * 24; }