Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
7f91ecbd
Verified
Commit
7f91ecbd
authored
Oct 22, 2021
by
Chocobozzz
Browse files
Completely remove torrent static path
parent
61953742
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/initializers/constants.ts
View file @
7f91ecbd
...
...
@@ -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
:
{
...
...
support/doc/api/openapi.yaml
View file @
7f91ecbd
...
...
@@ -5137,7 +5137,6 @@ components:
type
:
string
format
:
uri
description
:
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.mp4
pattern
:
/magnet:\?xt=urn:[a-z0-9]+:[a-z0-9]{32}/i
resolution
:
$ref
:
'
#/components/schemas/VideoResolutionConstant'
...
...
@@ -5487,7 +5486,6 @@ components:
type
:
string
format
:
uri
description
:
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.mp4
pattern
:
/magnet:\?xt=urn:[a-z0-9]+:[a-z0-9]{32}/i
torrentfile
:
writeOnly
:
true
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment