aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-22 10:32:53 +0200
committerChocobozzz <me@florianbigard.com>2021-10-22 10:32:53 +0200
commit7f91ecbde475fcbf9e4997786b7a313ff4b8587c (patch)
tree792261de87af7889119dd09db47ca8fc941a9086
parent619537426bbb9fcb9f2825068d5f907db0dc1f09 (diff)
downloadPeerTube-7f91ecbde475fcbf9e4997786b7a313ff4b8587c.tar.gz
PeerTube-7f91ecbde475fcbf9e4997786b7a313ff4b8587c.tar.zst
PeerTube-7f91ecbde475fcbf9e4997786b7a313ff4b8587c.zip
Completely remove torrent static path
-rw-r--r--server/initializers/constants.ts1
-rw-r--r--support/doc/api/openapi.yaml2
2 files changed, 0 insertions, 3 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index dc5747fc7..87a74a32c 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -583,7 +583,6 @@ const NSFW_POLICY_TYPES: { [ id: string ]: NSFWPolicyType } = {
583// Express static paths (router) 583// Express static paths (router)
584const STATIC_PATHS = { 584const STATIC_PATHS = {
585 THUMBNAILS: '/static/thumbnails/', 585 THUMBNAILS: '/static/thumbnails/',
586 TORRENTS: '/static/torrents/',
587 WEBSEED: '/static/webseed/', 586 WEBSEED: '/static/webseed/',
588 REDUNDANCY: '/static/redundancy/', 587 REDUNDANCY: '/static/redundancy/',
589 STREAMING_PLAYLISTS: { 588 STREAMING_PLAYLISTS: {
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml
index e9e84b139..d6f8c1ae0 100644
--- a/support/doc/api/openapi.yaml
+++ b/support/doc/api/openapi.yaml
@@ -5137,7 +5137,6 @@ components:
5137 type: string 5137 type: string
5138 format: uri 5138 format: uri
5139 description: magnet URI allowing to resolve the video via BitTorrent without a metainfo file 5139 description: magnet URI allowing to resolve the video via BitTorrent without a metainfo file
5140 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.mp4
5141 pattern: /magnet:\?xt=urn:[a-z0-9]+:[a-z0-9]{32}/i 5140 pattern: /magnet:\?xt=urn:[a-z0-9]+:[a-z0-9]{32}/i
5142 resolution: 5141 resolution:
5143 $ref: '#/components/schemas/VideoResolutionConstant' 5142 $ref: '#/components/schemas/VideoResolutionConstant'
@@ -5487,7 +5486,6 @@ components:
5487 type: string 5486 type: string
5488 format: uri 5487 format: uri
5489 description: magnet URI allowing to resolve the import's source video 5488 description: magnet URI allowing to resolve the import's source video
5490 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.mp4
5491 pattern: /magnet:\?xt=urn:[a-z0-9]+:[a-z0-9]{32}/i 5489 pattern: /magnet:\?xt=urn:[a-z0-9]+:[a-z0-9]{32}/i
5492 torrentfile: 5490 torrentfile:
5493 writeOnly: true 5491 writeOnly: true