From ec94429f2af26eb53712c9e9a6a91e7e1dda0ab7 Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Tue, 16 Nov 2021 09:27:04 +0100 Subject: [PATCH] Expose accounts's challenge-response endpoints + CORS. --- docker/nginx/conf.d/server/server.account | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docker/nginx/conf.d/server/server.account b/docker/nginx/conf.d/server/server.account index 47ac31cd..c30692c4 100644 --- a/docker/nginx/conf.d/server/server.account +++ b/docker/nginx/conf.d/server/server.account @@ -20,3 +20,17 @@ location /api { rewrite /api/(.*) /$1 break; proxy_pass http://accounts:3000; } + +location /api/register { + include /etc/nginx/conf.d/include/cors; + + rewrite /api/(.*) /$1 break; + proxy_pass http://accounts:3000; +} + +location /api/login { + include /etc/nginx/conf.d/include/cors; + + rewrite /api/(.*) /$1 break; + proxy_pass http://accounts:3000; +}