33 lines
886 B
Plaintext
33 lines
886 B
Plaintext
# 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;
|
|
# }
|