ActivityPub-federated video streaming platform using P2P directly in your web browser
Completely remove torrent static path
Chocobozzz7f91ecbde475
diff --git a/server/initializers/constants.ts b/server/initializers/constants.tsindex dc5747fc7c..87a74a32c5 100644--- a/server/initializers/constants.ts+++ b/server/initializers/constants.ts@@ -583,7 +583,6 @@ const NSFW_POLICY_TYPES: { [ id: string ]: NSFWPolicyType } = {// Express static paths (router)const STATIC_PATHS = {THUMBNAILS: '/static/thumbnails/',- TORRENTS: '/static/torrents/',WEBSEED: '/static/webseed/',REDUNDANCY: '/static/redundancy/',STREAMING_PLAYLISTS: {diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yamlindex e9e84b1393..d6f8c1ae0b 100644--- a/support/doc/api/openapi.yaml+++ b/support/doc/api/openapi.yaml@@ -5137,7 +5137,6 @@ components:type: stringformat: uridescription: magnet URI allowing to resolve the video via BitTorrent without a metainfo file- example: magnet:?xs=https%3A%2F%2Fframatube.org%2Fstatic%2Ftorrents%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.torrent&xt=urn:btih:38b4747ff788b30bf61f59d1965cd38f9e48e01f&dn=What+is+PeerTube%3F&tr=wss%3A%2F%2Fframatube.org%2Ftracker%2Fsocket&tr=https%3A%2F%2Fframatube.org%2Ftracker%2Fannounce&ws=https%3A%2F%2Fframatube.org%2Fstatic%2Fwebseed%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4pattern: /magnet:\?xt=urn:[a-z0-9]+:[a-z0-9]{32}/iresolution:$ref: '#/components/schemas/VideoResolutionConstant'@@ -5487,7 +5486,6 @@ components:type: stringformat: uridescription: magnet URI allowing to resolve the import's source video- example: magnet:?xs=https%3A%2F%2Fframatube.org%2Fstatic%2Ftorrents%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.torrent&xt=urn:btih:38b4747ff788b30bf61f59d1965cd38f9e48e01f&dn=What+is+PeerTube%3F&tr=wss%3A%2F%2Fframatube.org%2Ftracker%2Fsocket&tr=https%3A%2F%2Fframatube.org%2Ftracker%2Fannounce&ws=https%3A%2F%2Fframatube.org%2Fstatic%2Fwebseed%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4pattern: /magnet:\?xt=urn:[a-z0-9]+:[a-z0-9]{32}/itorrentfile:writeOnly: true