Initial commit.
This commit is contained in:
20
imagora-launcher/build.gradle.kts
Normal file
20
imagora-launcher/build.gradle.kts
Normal file
@@ -0,0 +1,20 @@
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
id("org.springframework.boot") version "3.5.7"
|
||||
id("io.spring.dependency-management") version "1.1.7"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(kotlin("stdlib"))
|
||||
implementation(kotlin("reflect"))
|
||||
implementation(project(":imagora-domain"))
|
||||
implementation(project(":imagora-application"))
|
||||
implementation(project(":imagora-infrastructure"))
|
||||
implementation(project(":imagora-exposition"))
|
||||
implementation("org.springframework.boot:spring-boot-starter-web")
|
||||
implementation("org.springframework.boot:spring-boot-devtools")
|
||||
}
|
||||
|
||||
springBoot {
|
||||
mainClass = "org.takiguchi.imagora.launcher.ApplicationLauncherKt"
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package org.takiguchi.imagora.launcher
|
||||
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication
|
||||
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration
|
||||
import org.springframework.boot.runApplication
|
||||
|
||||
@SpringBootApplication(
|
||||
scanBasePackages = [
|
||||
"org.takiguchi.imagora.domain",
|
||||
"org.takiguchi.imagora.application",
|
||||
"org.takiguchi.imagora.infrastructure",
|
||||
"org.takiguchi.imagora.exposition"
|
||||
],
|
||||
exclude = [
|
||||
SecurityAutoConfiguration::class
|
||||
]
|
||||
)
|
||||
open class ImagoraApplication
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
runApplication<ImagoraApplication>(*args)
|
||||
}
|
||||
25
imagora-launcher/src/main/resources/application-local.yaml
Normal file
25
imagora-launcher/src/main/resources/application-local.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
application:
|
||||
security:
|
||||
jwt:
|
||||
secret-key: secret
|
||||
expiration-delay-in-minutes: 5
|
||||
password:
|
||||
salt: s@lT
|
||||
|
||||
server:
|
||||
error:
|
||||
whitelabel:
|
||||
enabled: false # Disable html error responses.
|
||||
include-stacktrace: never
|
||||
http2:
|
||||
enabled: true
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:postgresql://localhost:11979/imagora_database
|
||||
username: imagora_user
|
||||
password: P@ssword!
|
||||
driver-class-name: org.postgresql.Driver
|
||||
jpa:
|
||||
show-sql: false
|
||||
open-in-view: false
|
||||
21
imagora-launcher/src/main/resources/application.yaml
Normal file
21
imagora-launcher/src/main/resources/application.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
application:
|
||||
security:
|
||||
jwt:
|
||||
secret-key: <JWT-SECRET-KEY>
|
||||
expiration-delay-in-minutes: <JWT-EXPIRATION-DELAY-IN-MINUTES>
|
||||
password:
|
||||
salt: <PASSWORD-SALT>
|
||||
|
||||
server:
|
||||
error:
|
||||
include-stacktrace: never
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:postgresql://<URL>:<PORT>/<DATABASE_NAME>
|
||||
username: <USERNAME>
|
||||
password: <PASSWORD>
|
||||
driver-class-name: org.postgresql.Driver
|
||||
threads:
|
||||
virtual:
|
||||
enabled: true
|
||||
Reference in New Issue
Block a user