mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-20 01:43:57 +00:00
build: Update dockerfile and env vars
This commit is contained in:
@@ -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"],
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user