mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Use different p2p policy for embeds and webapp
This commit is contained in:
parent
9576506763
commit
b65de1be4d
12 changed files with 118 additions and 36 deletions
|
@ -183,7 +183,7 @@ async function createUser (req: express.Request, res: express.Response) {
|
|||
password: body.password,
|
||||
email: body.email,
|
||||
nsfwPolicy: CONFIG.INSTANCE.DEFAULT_NSFW_POLICY,
|
||||
p2pEnabled: CONFIG.DEFAULTS.P2P.ENABLED,
|
||||
p2pEnabled: CONFIG.DEFAULTS.P2P.WEBAPP.ENABLED,
|
||||
autoPlayVideo: true,
|
||||
role: body.role,
|
||||
videoQuota: body.videoQuota,
|
||||
|
@ -233,7 +233,7 @@ async function registerUser (req: express.Request, res: express.Response) {
|
|||
password: body.password,
|
||||
email: body.email,
|
||||
nsfwPolicy: CONFIG.INSTANCE.DEFAULT_NSFW_POLICY,
|
||||
p2pEnabled: CONFIG.DEFAULTS.P2P.ENABLED,
|
||||
p2pEnabled: CONFIG.DEFAULTS.P2P.WEBAPP.ENABLED,
|
||||
autoPlayVideo: true,
|
||||
role: UserRole.USER,
|
||||
videoQuota: CONFIG.USER.VIDEO_QUOTA,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue