diff --git a/keycloak/library-realm-export.json b/config-files/keycloak/library-realm-export.json similarity index 100% rename from keycloak/library-realm-export.json rename to config-files/keycloak/library-realm-export.json diff --git a/config-files/nginx/config/default.conf b/config-files/nginx/config/default.conf new file mode 100644 index 0000000..7ad49a8 --- /dev/null +++ b/config-files/nginx/config/default.conf @@ -0,0 +1,27 @@ +server { + + # Ports for incoming requests + listen 80; + listen [::]:80; + listen 443; + listen [::]:443; + + server_name proxy; + + # Proxy routes + location /config-server/ { + proxy_pass http://config-server:8080/; + } + + location /catalogue/ { + proxy_pass http://catalogue:8080/; + } + + location /library/ { + proxy_pass http://library:8080/; + } + + location /auth/ { + proxy_pass http://sso:8080/; + } +} diff --git a/nginx/config/default.conf b/nginx/config/default.conf deleted file mode 100644 index 3767ca1..0000000 --- a/nginx/config/default.conf +++ /dev/null @@ -1,9 +0,0 @@ -server { - listen 80; - listen [::]:80; - server_name proxy; - - location /catalogue/ { - proxy_pass http://catalogue:8080/; - } -}