Skip to content

Instantly share code, notes, and snippets.

@adigunhammedolalekan
Created June 28, 2019 17:59
Show Gist options
  • Save adigunhammedolalekan/3a2b387934606dd8ec9cc466b17c5c8d to your computer and use it in GitHub Desktop.
Save adigunhammedolalekan/3a2b387934606dd8ec9cc466b17c5c8d to your computer and use it in GitHub Desktop.
events {
worker_connections 1024;
}
http {
server_tokens off;
server {
listen 80;
location /api/account {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://account-service:9001/api/account;
}
location /api/txn {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://transaction-service:9002/api/txn;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment