mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Add ability to use docker on local
This commit is contained in:
parent
f4057afd20
commit
b1053a30f6
3 changed files with 10 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
|||
import validator from 'validator'
|
||||
import { CONFIG } from '@server/initializers/config'
|
||||
import { CONSTRAINTS_FIELDS } from '../../../initializers/constants'
|
||||
import { isTestOrDevInstance } from '../../core-utils'
|
||||
import { exists } from '../misc'
|
||||
|
||||
function isUrlValid (url: string) {
|
||||
|
@ -13,7 +13,7 @@ function isUrlValid (url: string) {
|
|||
}
|
||||
|
||||
// We validate 'localhost', so we don't have the top level domain
|
||||
if (isTestOrDevInstance()) {
|
||||
if (CONFIG.WEBSERVER.HOSTNAME === 'localhost') {
|
||||
isURLOptions.require_tld = false
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue