Don't display admin email in security.txt
This commit is contained in:
parent
3ff44b67ea
commit
822872aacd
|
@ -760,8 +760,9 @@ instance:
|
||||||
Disallow:
|
Disallow:
|
||||||
# /.well-known/security.txt rules. This endpoint is cached, so you may have to wait a few hours before viewing your changes
|
# /.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
|
# To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string
|
||||||
securitytxt:
|
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:'
|
Contact: https://github.com/Chocobozzz/PeerTube/blob/develop/SECURITY.md
|
||||||
|
Expires: 2025-12-31T11:00:00.000Z'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# Cards configuration to format video in Twitter
|
# Cards configuration to format video in Twitter
|
||||||
|
|
|
@ -770,8 +770,9 @@ instance:
|
||||||
Disallow:
|
Disallow:
|
||||||
# /.well-known/security.txt rules. This endpoint is cached, so you may have to wait a few hours before viewing your changes
|
# /.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
|
# To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string
|
||||||
securitytxt:
|
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:'
|
Contact: https://github.com/Chocobozzz/PeerTube/blob/develop/SECURITY.md
|
||||||
|
Expires: 2025-12-31T11:00:00.000Z'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# Cards configuration to format video in Twitter
|
# Cards configuration to format video in Twitter
|
||||||
|
|
|
@ -27,7 +27,7 @@ wellKnownRouter.get('/.well-known/security.txt',
|
||||||
cacheRoute(ROUTE_CACHE_LIFETIME.SECURITYTXT),
|
cacheRoute(ROUTE_CACHE_LIFETIME.SECURITYTXT),
|
||||||
(_, res: express.Response) => {
|
(_, res: express.Response) => {
|
||||||
res.type('text/plain')
|
res.type('text/plain')
|
||||||
return res.send(CONFIG.INSTANCE.SECURITYTXT + CONFIG.INSTANCE.SECURITYTXT_CONTACT)
|
return res.send(CONFIG.INSTANCE.SECURITYTXT)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -546,8 +546,7 @@ const CONFIG = {
|
||||||
get CSS () { return config.get<string>('instance.customizations.css') }
|
get CSS () { return config.get<string>('instance.customizations.css') }
|
||||||
},
|
},
|
||||||
get ROBOTS () { return config.get<string>('instance.robots') },
|
get ROBOTS () { return config.get<string>('instance.robots') },
|
||||||
get SECURITYTXT () { return config.get<string>('instance.securitytxt') },
|
get SECURITYTXT () { return config.get<string>('instance.securitytxt') }
|
||||||
get SECURITYTXT_CONTACT () { return config.get<string>('admin.email') }
|
|
||||||
},
|
},
|
||||||
SERVICES: {
|
SERVICES: {
|
||||||
TWITTER: {
|
TWITTER: {
|
||||||
|
|
Loading…
Reference in New Issue