PeerTube icon indicating copy to clipboard operation
PeerTube copied to clipboard

server: serve files from storage/well-known

Open kontrollanten opened this issue 3 years ago • 2 comments

Description

Give the server admin the possibility to add files in storage/well-known to be served by /.well-known/. Makes it possible to add Apple app site association file.

Related issues

closes #5206

Has this been tested?

  • [x] 🙋 no, because I need help

Since all logic is handled by express this may not need tests?

kontrollanten avatar Aug 24 '22 05:08 kontrollanten

Hello,

Why don't you prefer to add your custom directive in your nginx configuration? It seems to be very specific to your peertube instance.

Chocobozzz avatar Sep 09 '22 12:09 Chocobozzz

Hello,

Why don't you prefer to add your custom directive in your nginx configuration? It seems to be very specific to your peertube instance.

Since we're using the nginx config from the repo to always be up to date with the latest recommended settings. To insert this config with sed/awk is a bit tricky and fragile. There's a lot of other use cases when the well-known folder is used, even though I'm not sure how many is applicable on a PT server.

kontrollanten avatar Sep 09 '22 12:09 kontrollanten