build: Update dockerfile and env vars

This commit is contained in:
oSumAtrIX
2024-06-05 14:47:55 +02:00
parent 0904390481
commit 9d816223fb
6 changed files with 34 additions and 54 deletions

View File

@@ -19,7 +19,7 @@ internal object StartAPICommand : Runnable {
description = ["The host address to bind to."],
showDefaultValue = CommandLine.Help.Visibility.ALWAYS,
)
private var host: String = "0.0.0.0"
private var host: String = "127.0.0.1"
@CommandLine.Option(
names = ["-p", "--port"],

View File

@@ -36,9 +36,7 @@ import java.io.File
fun Application.configureDependencies() {
val globalModule = module {
single {
Dotenv.configure()
.systemProperties()
.load()
Dotenv.configure().load()
}
factory { params ->
val defaultRequestUri: String = params.get<String>()
@@ -80,7 +78,7 @@ fun Application.configureDependencies() {
)
}
get<Dotenv>()["GITHUB_TOKEN"]?.let {
get<Dotenv>()["BACKEND_API_TOKEN"]?.let {
install(Auth) {
bearer {
loadTokens {