mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-18 00:43:57 +00:00
feat: Use Jetty instead of Netty
This commit is contained in:
@@ -6,7 +6,7 @@ import app.revanced.api.configuration.configureSecurity
|
||||
import app.revanced.api.configuration.configureSerialization
|
||||
import app.revanced.api.configuration.routing.configureRouting
|
||||
import io.ktor.server.engine.*
|
||||
import io.ktor.server.netty.*
|
||||
import io.ktor.server.jetty.*
|
||||
import picocli.CommandLine
|
||||
|
||||
@CommandLine.Command(
|
||||
@@ -29,7 +29,7 @@ internal object StartAPICommand : Runnable {
|
||||
private var port: Int = 8080
|
||||
|
||||
override fun run() {
|
||||
embeddedServer(Netty, port, host) {
|
||||
embeddedServer(Jetty, port, host) {
|
||||
configureDependencies()
|
||||
configureHTTP(allowedHost = host)
|
||||
configureSerialization()
|
||||
|
||||
@@ -8,5 +8,4 @@
|
||||
<appender-ref ref="STDOUT"/>
|
||||
</root>
|
||||
<logger name="org.eclipse.jetty" level="INFO"/>
|
||||
<logger name="io.netty" level="INFO"/>
|
||||
</configuration>
|
||||
</configuration>
|
||||
|
||||
Reference in New Issue
Block a user