aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/plugins/plugin-helpers-builder.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-01-04 11:52:45 +0100
committerChocobozzz <me@florianbigard.com>2023-01-04 11:52:54 +0100
commit60bab7b540de3709f3392a0ea964524c13c7e404 (patch)
tree9a3966982af2cf8c1966a2e83db0a3da4a66f1f7 /server/lib/plugins/plugin-helpers-builder.ts
parent518c5cc62d922ddedc16f5a1e2c3e7035f342115 (diff)
downloadPeerTube-60bab7b540de3709f3392a0ea964524c13c7e404.tar.gz
PeerTube-60bab7b540de3709f3392a0ea964524c13c7e404.tar.zst
PeerTube-60bab7b540de3709f3392a0ea964524c13c7e404.zip
Implement getServerListeningConfig plugin helper
Diffstat (limited to 'server/lib/plugins/plugin-helpers-builder.ts')
-rw-r--r--server/lib/plugins/plugin-helpers-builder.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/lib/plugins/plugin-helpers-builder.ts b/server/lib/plugins/plugin-helpers-builder.ts
index e75c0b994..66383af46 100644
--- a/server/lib/plugins/plugin-helpers-builder.ts
+++ b/server/lib/plugins/plugin-helpers-builder.ts
@@ -209,6 +209,10 @@ function buildConfigHelpers () {
209 return WEBSERVER.URL 209 return WEBSERVER.URL
210 }, 210 },
211 211
212 getServerListeningConfig () {
213 return { hostname: CONFIG.LISTEN.HOSTNAME, port: CONFIG.LISTEN.PORT }
214 },
215
212 getServerConfig () { 216 getServerConfig () {
213 return ServerConfigManager.Instance.getServerConfig() 217 return ServerConfigManager.Instance.getServerConfig()
214 } 218 }