v0.1 version: added ci, container, nginx + base apigw config
This commit is contained in:
14
data/etc/nginx/apigw_conf.d/basket_api.conf
Normal file
14
data/etc/nginx/apigw_conf.d/basket_api.conf
Normal file
@@ -0,0 +1,14 @@
|
||||
# Basket API
|
||||
#
|
||||
location /api/basket/ {
|
||||
access_log /var/log/nginx/basket_access.log main;
|
||||
error_log /var/log/nginx/basket_error.log warn;
|
||||
|
||||
auth_request /_validate_apikey;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header User-Agent "api-gw"; # TMP - FIXME
|
||||
|
||||
proxy_pass http://basket_api/;
|
||||
}
|
||||
32
data/etc/nginx/apigw_conf.d/identity_api.conf
Normal file
32
data/etc/nginx/apigw_conf.d/identity_api.conf
Normal file
@@ -0,0 +1,32 @@
|
||||
# Identity API
|
||||
#
|
||||
location /api/identity/ {
|
||||
access_log /var/log/nginx/identity_access.log main;
|
||||
error_log /var/log/nginx/identity_error.log warn;
|
||||
|
||||
auth_request /_validate_apikey;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header User-Agent "egommerce-api-gateway/0.1"; # TMP - FIXME
|
||||
|
||||
proxy_pass http://identity_api/;
|
||||
}
|
||||
|
||||
# # URI routing
|
||||
# #
|
||||
# location = /api/warehouse/inventory { # Complete inventory
|
||||
# proxy_pass http://warehouse_inventory;
|
||||
# }
|
||||
|
||||
# location ~ ^/api/warehouse/inventory/shelf/[^/]+$ { # Shelf inventory
|
||||
# proxy_pass http://warehouse_inventory;
|
||||
# }
|
||||
|
||||
# location ~ ^/api/warehouse/inventory/shelf/[^/]+/box/[^/]+$ { # Box on shelf
|
||||
# proxy_pass http://warehouse_inventory;
|
||||
# }
|
||||
|
||||
# location ~ ^/api/warehouse/pricing/[^/]+$ { # Price for specific item
|
||||
# proxy_pass http://warehouse_pricing;
|
||||
# }
|
||||
Reference in New Issue
Block a user