ActivityPub-federated video streaming platform using P2P directly in your web browser
Don't display admin email in security.txt
Chocobozzz822872aacdd7
diff --git a/config/default.yaml b/config/default.yamlindex fcd634d1db..2a0b0fb1ce 100644--- a/config/default.yaml+++ b/config/default.yaml@@ -760,8 +760,9 @@ instance:Disallow:# /.well-known/security.txt rules. This endpoint is cached, so you may have to wait a few hours before viewing your changes# To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string- securitytxt:- '# If you would like to report a security issue\n# you may report it to:\nContact: https://github.com/Chocobozzz/PeerTube/blob/develop/SECURITY.md\nContact: mailto:'+ securitytxt: |+ Contact: https://github.com/Chocobozzz/PeerTube/blob/develop/SECURITY.md+ Expires: 2025-12-31T11:00:00.000Z'services:# Cards configuration to format video in Twitterdiff --git a/config/production.yaml.example b/config/production.yaml.exampleindex 2ec7c3fca5..5a7f378c4c 100644--- a/config/production.yaml.example+++ b/config/production.yaml.example@@ -770,8 +770,9 @@ instance:Disallow:# /.well-known/security.txt rules. This endpoint is cached, so you may have to wait a few hours before viewing your changes# To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string- securitytxt:- '# If you would like to report a security issue\n# you may report it to:\nContact: https://github.com/Chocobozzz/PeerTube/blob/develop/SECURITY.md\nContact: mailto:'+ securitytxt: |+ Contact: https://github.com/Chocobozzz/PeerTube/blob/develop/SECURITY.md+ Expires: 2025-12-31T11:00:00.000Z'services:# Cards configuration to format video in Twitterdiff --git a/server/server/controllers/well-known.ts b/server/server/controllers/well-known.tsindex b6bcd79efa..e820c060e5 100644--- a/server/server/controllers/well-known.ts+++ b/server/server/controllers/well-known.ts@@ -27,7 +27,7 @@ wellKnownRouter.get('/.well-known/security.txt',cacheRoute(ROUTE_CACHE_LIFETIME.SECURITYTXT),(_, res: express.Response) => {res.type('text/plain')- return res.send(CONFIG.INSTANCE.SECURITYTXT + CONFIG.INSTANCE.SECURITYTXT_CONTACT)+ return res.send(CONFIG.INSTANCE.SECURITYTXT)})diff --git a/server/server/initializers/config.ts b/server/server/initializers/config.tsindex dd196ea0cf..690a20c319 100644--- a/server/server/initializers/config.ts+++ b/server/server/initializers/config.ts@@ -546,8 +546,7 @@ const CONFIG = {get CSS () { return config.get<string>('instance.customizations.css') }},get ROBOTS () { return config.get<string>('instance.robots') },- get SECURITYTXT () { return config.get<string>('instance.securitytxt') },- get SECURITYTXT_CONTACT () { return config.get<string>('admin.email') }+ get SECURITYTXT () { return config.get<string>('instance.securitytxt') }},SERVICES: {TWITTER: {