aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorAustin Heap <me@austinheap.com>2018-09-06 05:23:46 -0700
committerRigel Kent <par@rigelk.eu>2018-09-06 14:23:46 +0200
commit5447516b9a87725a6f8c55ec7e4ea1c1be839ee6 (patch)
treebb73829e0b2c179e717ff491c75d074ed38bb0e5 /server/initializers/constants.ts
parent35c29307767ac773eaab5054071c7df0555effcb (diff)
downloadPeerTube-5447516b9a87725a6f8c55ec7e4ea1c1be839ee6.tar.gz
PeerTube-5447516b9a87725a6f8c55ec7e4ea1c1be839ee6.tar.zst
PeerTube-5447516b9a87725a6f8c55ec7e4ea1c1be839ee6.zip
draft "security.txt" spec integration (#1020)
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index ba8b9b6ed..5b7ea5d6c 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -57,6 +57,7 @@ const OAUTH_LIFETIME = {
57const ROUTE_CACHE_LIFETIME = { 57const ROUTE_CACHE_LIFETIME = {
58 FEEDS: '15 minutes', 58 FEEDS: '15 minutes',
59 ROBOTS: '2 hours', 59 ROBOTS: '2 hours',
60 SECURITYTXT: '2 hours',
60 NODEINFO: '10 minutes', 61 NODEINFO: '10 minutes',
61 DNT_POLICY: '1 week', 62 DNT_POLICY: '1 week',
62 OVERVIEWS: { 63 OVERVIEWS: {
@@ -265,7 +266,9 @@ const CONFIG = {
265 get JAVASCRIPT () { return config.get<string>('instance.customizations.javascript') }, 266 get JAVASCRIPT () { return config.get<string>('instance.customizations.javascript') },
266 get CSS () { return config.get<string>('instance.customizations.css') } 267 get CSS () { return config.get<string>('instance.customizations.css') }
267 }, 268 },
268 get ROBOTS () { return config.get<string>('instance.robots') } 269 get ROBOTS () { return config.get<string>('instance.robots') },
270 get SECURITYTXT () { return config.get<string>('instance.securitytxt') },
271 get SECURITYTXT_CONTACT () { return config.get<string>('admin.email') }
269 }, 272 },
270 SERVICES: { 273 SERVICES: {
271 TWITTER: { 274 TWITTER: {