aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
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
parent35c29307767ac773eaab5054071c7df0555effcb (diff)
downloadPeerTube-5447516b9a87725a6f8c55ec7e4ea1c1be839ee6.tar.gz
PeerTube-5447516b9a87725a6f8c55ec7e4ea1c1be839ee6.tar.zst
PeerTube-5447516b9a87725a6f8c55ec7e4ea1c1be839ee6.zip
draft "security.txt" spec integration (#1020)
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/checker.ts2
-rw-r--r--server/initializers/constants.ts5
2 files changed, 5 insertions, 2 deletions
diff --git a/server/initializers/checker.ts b/server/initializers/checker.ts
index 3cc6268cf..9dd104035 100644
--- a/server/initializers/checker.ts
+++ b/server/initializers/checker.ts
@@ -55,7 +55,7 @@ function checkMissedConfig () {
55 'import.videos.http.enabled', 'import.videos.torrent.enabled', 55 'import.videos.http.enabled', 'import.videos.torrent.enabled',
56 'trending.videos.interval_days', 56 'trending.videos.interval_days',
57 'instance.name', 'instance.short_description', 'instance.description', 'instance.terms', 'instance.default_client_route', 57 'instance.name', 'instance.short_description', 'instance.description', 'instance.terms', 'instance.default_client_route',
58 'instance.default_nsfw_policy', 'instance.robots', 58 'instance.default_nsfw_policy', 'instance.robots', 'instance.securitytxt',
59 'services.twitter.username', 'services.twitter.whitelisted' 59 'services.twitter.username', 'services.twitter.whitelisted'
60 ] 60 ]
61 const requiredAlternatives = [ 61 const requiredAlternatives = [
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: {