-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c38870
commit 12ef9fb
Showing
7 changed files
with
37 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,26 @@ | ||
# nginx.conf | ||
events { | ||
worker_connections 1024; | ||
worker_processes auto; | ||
} | ||
|
||
http { | ||
upstream auth_service { | ||
server host.docker.internal:6000; | ||
server ovtf-auth-srv-clpiqqqcgq-ew.a.run.app; | ||
} | ||
|
||
upstream recommendation_service { | ||
server host.docker.internal:6001; | ||
} | ||
|
||
upstream song_service { | ||
server host.docker.internal:6002; | ||
server recommendation-service-clpiqqqcgq-ew.a.run.app; | ||
} | ||
|
||
upstream user_service { | ||
server host.docker.internal:6003; | ||
server user-service-clpiqqqcgq-ew.a.run.app; | ||
} | ||
|
||
server { | ||
listen 80; | ||
|
||
set $nw_proto http; | ||
|
||
include /etc/nginx/conf.d/auth_service.conf; | ||
include /etc/nginx/conf.d/recommendation_service.conf; | ||
include /etc/nginx/conf.d/song_service.conf; | ||
include /etc/nginx/conf.d/user_service.conf; | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
ovatify-backend/microservices/api-gateway/service_config/auth_service_routes.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
# auth_service_routes.conf | ||
location /users/create-user/ { | ||
proxy_pass $nw_proto://auth_service; | ||
proxy_pass https://auth_service; | ||
include /etc/nginx/conf.d/proxy_settings.conf; | ||
} | ||
|
||
location /users/login/ { | ||
proxy_pass $nw_proto://auth_service; | ||
proxy_pass https://auth_service; | ||
include /etc/nginx/conf.d/proxy_settings.conf; | ||
} |
18 changes: 17 additions & 1 deletion
18
ovatify-backend/microservices/api-gateway/service_config/recommendation_service_routes.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
# recommendation_service_routes.conf | ||
location /users/recommend-you-might-like/ { | ||
proxy_pass $nw_proto://recommendation_service; | ||
proxy_pass https://recommendation_service; | ||
include /etc/nginx/conf.d/proxy_settings.conf; | ||
} | ||
|
||
location /users/recommend-since-you-like/ { | ||
proxy_pass https://recommendation_service; | ||
include /etc/nginx/conf.d/proxy_settings.conf; | ||
} | ||
|
||
location /users/recommend-friend-mix/ { | ||
proxy_pass https://recommendation_service; | ||
include /etc/nginx/conf.d/proxy_settings.conf; | ||
} | ||
|
||
location /users/recommend-friend-listen/ { | ||
proxy_pass https://recommendation_service; | ||
include /etc/nginx/conf.d/proxy_settings.conf; | ||
} |
4 changes: 0 additions & 4 deletions
4
ovatify-backend/microservices/api-gateway/service_config/song_service_routes.conf
This file was deleted.
Oops, something went wrong.
15 changes: 13 additions & 2 deletions
15
ovatify-backend/microservices/api-gateway/service_config/user_service_routes.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
location /users/get-recently-added-songs/ { | ||
proxy_pass $nw_proto://user_service; | ||
# user_service_routes.conf | ||
location /users/get-user-profile/ { | ||
proxy_pass https://user_service; | ||
include /etc/nginx/conf.d/proxy_settings.conf; | ||
} | ||
|
||
location /users/edit-user-preferences/ { | ||
proxy_pass https://user_service; | ||
include /etc/nginx/conf.d/proxy_settings.conf; | ||
} | ||
|
||
location /users/delete-user/ { | ||
proxy_pass https://user_service; | ||
include /etc/nginx/conf.d/proxy_settings.conf; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ fly.toml | |
.git/ | ||
*.sqlite3 | ||
.venv/ | ||
venv/ | ||
.idea | ||
.env.* | ||
.vscode/ |