1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00

Implement getServerListeningConfig plugin helper

This commit is contained in:
Chocobozzz 2023-01-04 11:52:45 +01:00
parent 518c5cc62d
commit 60bab7b540
No known key found for this signature in database
GPG key ID: 583A612D890159BE
4 changed files with 25 additions and 0 deletions

View file

@ -209,6 +209,10 @@ function buildConfigHelpers () {
return WEBSERVER.URL
},
getServerListeningConfig () {
return { hostname: CONFIG.LISTEN.HOSTNAME, port: CONFIG.LISTEN.PORT }
},
getServerConfig () {
return ServerConfigManager.Instance.getServerConfig()
}