diff --git a/UnityAuth/build.gradle b/UnityAuth/build.gradle index 3612865..dcf4d16 100644 --- a/UnityAuth/build.gradle +++ b/UnityAuth/build.gradle @@ -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") diff --git a/nginx-default.conf b/nginx-default.conf index 2bc7789..7525d45 100644 --- a/nginx-default.conf +++ b/nginx-default.conf @@ -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$ {