Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions UnityAuth/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ java {
}

graalvmNative.toolchainDetection = false

tasks.withType(io.micronaut.gradle.docker.MicronautDockerfile).configureEach {
useCopyLink = false
}

tasks.withType(io.micronaut.gradle.docker.NativeImageDockerfile).configureEach {
useCopyLink = false
}

micronaut {
runtime("netty")
testRuntime("junit5")
Expand Down
18 changes: 0 additions & 18 deletions nginx-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,6 @@ server {
root /usr/share/nginx/html;
}

# TODO: This tries to route the requests from localhost to the API container
# with hostname unity-auth-api but currently receive 504 Gateway Timeout
location /api/ {
proxy_pass http://unity-auth-api:8081;
proxy_http_version 1.1;

proxy_connect_timeout 60s;
proxy_send_timeout 60s;
proxy_read_timeout 60s;
send_timeout 60s;

# Forward headers
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-Proto $scheme;
}

# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
Expand Down