Expose accounts's challenge-response endpoints + CORS.

This commit is contained in:
Ivaylo Novakov 2021-11-16 09:27:04 +01:00
parent 74084a8da8
commit ec94429f2a
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
1 changed files with 14 additions and 0 deletions

View File

@ -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;
}