]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server.ts
Split files in activitypub server
[github/Chocobozzz/PeerTube.git] / server.ts
index 5323bae2b423677bf3322fdf510485bfdd18e212..bdcbb79886fe874c57d31ebef2853853fc2e1a5e 100644 (file)
--- a/server.ts
+++ b/server.ts
@@ -95,7 +95,7 @@ if (isTestInstance()) {
       req.path.indexOf(STATIC_PATHS.WEBSEED) === -1
     ) {
       return (cors({
-        origin: 'http://localhost:3000',
+        origin: '*',
         exposedHeaders: 'Retry-After',
         credentials: true
       }))(req, res, next)
@@ -215,7 +215,8 @@ async function startApplication () {
   Redis.Instance.init()
 
   // Make server listening
-  server.listen(port, hostname)
-  logger.info('Server listening on %s:%d', hostname, port)
-  logger.info('Web server: %s', CONFIG.WEBSERVER.URL)
+  server.listen(port, hostname, () => {
+    logger.info('Server listening on %s:%d', hostname, port)
+    logger.info('Web server: %s', CONFIG.WEBSERVER.URL)
+  })
 }