20 lines
613 B
Kotlin
20 lines
613 B
Kotlin
package net.keinekekse.app
|
|
|
|
import io.ktor.server.application.*
|
|
import io.ktor.server.engine.*
|
|
import io.ktor.server.netty.*
|
|
import net.keinekekse.app.server.VERSION
|
|
import net.keinekekse.app.server.config.configureSecurity
|
|
|
|
fun main() {
|
|
// embeddedServer(Netty, port = SERVER_PORT, host = "0.0.0.0", module = Application::module)
|
|
println("**\n** Starting ${VERSION.displayName} - ${VERSION.description} ${VERSION.fullVersion}\n**")
|
|
embeddedServer(Netty, port = 7770, host = "0.0.0.0", module = Application::module)
|
|
.start(wait = true)
|
|
}
|
|
|
|
fun Application.module() {
|
|
configureSecurity()
|
|
|
|
}
|