생각하는 족족 고.따.구 냐..
$ ./gradlew bootRun --args='--spring.profiles.active=dev'
...
apply plugin: 'java'
apply plugin: 'maven-publish'
...
...
jar {
//from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
into("META-INF/maven/$project.group/$project.name") {
from { generatePomFileForMavenJavaPublication }
rename ".*", "pom.xml"
}
}
...
group 'com.my-group'
version '1.0'
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = rootProject.name
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
}
}
repositories {
maven {
credentials {
username 'username'
password 'password'
}
url 'http://localhost:8081/repository/my/'
}
}
}
command> gradle clean build -x test publish # native gradle
# or
command> ./gradlew clean build -x test publish # gradle wrapper
compile ("com.querydsl:querydsl-core:$querydslVersion") sourceSets { |
HTTPS[브라우져] ==> HTTPS[AWS :LB] ==> HTTP[NginX] ==> Spring Boot | X-Forward-* | ?? |
Your application might need to send 302
redirects or render content with absolute links back to itself. When running behind a proxy, the caller wants a link to the proxy and not to the physical address of the machine hosting your app. Typically, such situations are handled through a contract with the proxy, which adds headers to tell the back end how to construct links to itself.
If the proxy adds conventional X-Forwarded-For
and X-Forwarded-Proto
headers (most proxy servers do so), the absolute links should be rendered correctly, provided server.use-forward-headers
is set to true
in your application.properties
.
![]() |
If your application runs in Cloud Foundry or Heroku, the |
proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $host:443; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-Port 443; proxy_set_header X-Forwarded-Proto https; proxy_set_header X-HTTPS-Protocol $ssl_protocol; proxy_redirect off; proxy_pass http://localhost:8080; |