diff --git a/jicofo-common/pom.xml b/jicofo-common/pom.xml
index eee964aeb8..9331feef72 100644
--- a/jicofo-common/pom.xml
+++ b/jicofo-common/pom.xml
@@ -24,10 +24,6 @@
-
- org.eclipse.jetty
- jetty-server
-
org.igniterealtime.smack
smack-tcp
@@ -75,22 +71,6 @@
org.slf4j
slf4j-api
-
- org.glassfish.jersey.containers
- jersey-container-jetty-http
-
-
- org.glassfish.jersey.containers
- jersey-container-servlet
-
-
- org.glassfish.jersey.inject
- jersey-hk2
-
-
- org.glassfish.jersey.media
- jersey-media-json-jackson
-
com.fasterxml.jackson.module
jackson-module-kotlin
@@ -123,39 +103,6 @@
mockito-core
test
-
- org.glassfish.jersey.test-framework
- jersey-test-framework-core
- test
-
-
- junit
- junit
-
-
-
-
- org.glassfish.jersey.test-framework.providers
- jersey-test-framework-provider-jetty
- test
-
-
- junit
- junit
-
-
-
-
- org.glassfish.jersey.test-framework.providers
- jersey-test-framework-provider-grizzly2
- test
-
-
- junit
- junit
-
-
-
io.kotest
kotest-runner-junit5-jvm
diff --git a/jicofo-selector/pom.xml b/jicofo-selector/pom.xml
index eaa53d8920..140e9f9b01 100644
--- a/jicofo-selector/pom.xml
+++ b/jicofo-selector/pom.xml
@@ -29,10 +29,6 @@
-
- org.eclipse.jetty
- jetty-server
-
org.igniterealtime.smack
smack-tcp
@@ -80,22 +76,6 @@
org.slf4j
slf4j-api
-
- org.glassfish.jersey.containers
- jersey-container-jetty-http
-
-
- org.glassfish.jersey.containers
- jersey-container-servlet
-
-
- org.glassfish.jersey.inject
- jersey-hk2
-
-
- org.glassfish.jersey.media
- jersey-media-json-jackson
-
com.github.spotbugs
@@ -123,39 +103,6 @@
mockito-core
test
-
- org.glassfish.jersey.test-framework
- jersey-test-framework-core
- test
-
-
- junit
- junit
-
-
-
-
- org.glassfish.jersey.test-framework.providers
- jersey-test-framework-provider-jetty
- test
-
-
- junit
- junit
-
-
-
-
- org.glassfish.jersey.test-framework.providers
- jersey-test-framework-provider-grizzly2
- test
-
-
- junit
- junit
-
-
-
io.kotest
kotest-runner-junit5-jvm
diff --git a/jicofo-selector/src/main/resources/reference.conf b/jicofo-selector/src/main/resources/reference.conf
index fcba5ec292..de8532a959 100644
--- a/jicofo-selector/src/main/resources/reference.conf
+++ b/jicofo-selector/src/main/resources/reference.conf
@@ -330,8 +330,9 @@ jicofo {
}
rest {
+ enabled = true
port = 8888
- tls-port = 8843
+ host = "0.0.0.0"
prometheus {
// Enable the prometheus /metrics endpoint.
@@ -345,6 +346,12 @@ jicofo {
// Enable the move-endpoint API.
enabled = true
}
+ debug {
+ enabled = true
+ }
+ pin {
+ enabled = true
+ }
}
sctp {
diff --git a/jicofo/pom.xml b/jicofo/pom.xml
index d5e80586c3..12697e7adb 100644
--- a/jicofo/pom.xml
+++ b/jicofo/pom.xml
@@ -39,8 +39,29 @@
commons-lang3
- org.eclipse.jetty
- jetty-server
+ io.ktor
+ ktor-server-core-jvm
+ ${ktor.version}
+
+
+ io.ktor
+ ktor-server-netty-jvm
+ ${ktor.version}
+
+
+ io.ktor
+ ktor-server-content-negotiation-jvm
+ ${ktor.version}
+
+
+ io.ktor
+ ktor-serialization-jackson-jvm
+ ${ktor.version}
+
+
+ io.ktor
+ ktor-server-status-pages-jvm
+ ${ktor.version}
org.igniterealtime.smack
@@ -93,22 +114,6 @@
org.slf4j
slf4j-api
-
- org.glassfish.jersey.containers
- jersey-container-jetty-http
-
-
- org.glassfish.jersey.containers
- jersey-container-servlet
-
-
- org.glassfish.jersey.inject
- jersey-hk2
-
-
- org.glassfish.jersey.media
- jersey-media-json-jackson
-
com.fasterxml.jackson.module
jackson-module-kotlin
@@ -146,39 +151,6 @@
mockk-jvm
test
-
- org.glassfish.jersey.test-framework
- jersey-test-framework-core
- test
-
-
- junit
- junit
-
-
-
-
- org.glassfish.jersey.test-framework.providers
- jersey-test-framework-provider-jetty
- test
-
-
- junit
- junit
-
-
-
-
- org.glassfish.jersey.test-framework.providers
- jersey-test-framework-provider-grizzly2
- test
-
-
- junit
- junit
-
-
-
io.kotest
kotest-runner-junit5-jvm
diff --git a/jicofo/src/main/java/org/jitsi/jicofo/rest/Application.java b/jicofo/src/main/java/org/jitsi/jicofo/rest/Application.java
deleted file mode 100644
index cd340c747c..0000000000
--- a/jicofo/src/main/java/org/jitsi/jicofo/rest/Application.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright @ 2018 - present 8x8, Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jitsi.jicofo.rest;
-
-import org.glassfish.hk2.utilities.binding.*;
-import org.glassfish.jersey.server.*;
-
-import java.time.*;
-import java.util.*;
-
-/**
- * Adds the configuration for the REST web endpoints.
- */
-public class Application
- extends ResourceConfig
-{
- protected final Clock clock = Clock.systemUTC();
-
- public Application(List
-
- org.eclipse.jetty
- jetty-server
- ${jetty.version}
-
org.igniterealtime.smack
smack-core
@@ -187,26 +181,6 @@
slf4j-api
${slf4j.version}
-
- org.glassfish.jersey.containers
- jersey-container-jetty-http
- ${jersey.version}
-
-
- org.glassfish.jersey.containers
- jersey-container-servlet
- ${jersey.version}
-
-
- org.glassfish.jersey.inject
- jersey-hk2
- ${jersey.version}
-
-
- org.glassfish.jersey.media
- jersey-media-json-jackson
- ${jersey.version}
-
com.fasterxml.jackson.module
jackson-module-kotlin
@@ -244,42 +218,6 @@
4.0.0
test
-
- org.glassfish.jersey.test-framework
- jersey-test-framework-core
- ${jersey.version}
- test
-
-
- junit
- junit
-
-
-
-
- org.glassfish.jersey.test-framework.providers
- jersey-test-framework-provider-jetty
- ${jersey.version}
- test
-
-
- junit
- junit
-
-
-
-
- org.glassfish.jersey.test-framework.providers
- jersey-test-framework-provider-grizzly2
- ${jersey.version}
- test
-
-
- junit
- junit
-
-
-
io.kotest
kotest-runner-junit5-jvm