Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- upstream backend {
- server SERV1_ADDR:SERV1_PORT;
- server SERV2_ADDR:SERV2_PORT;
- server SERV3_ADDR:SERV3_PORT;
- }
- log_format upstreamlog '[$time_local] to: $upstream_addr: $request $status upstream_response_time $upstream_response_time msec $msec request_time $request_time';
- server {
- listen NGINX_PORT;
- access_log /var/log/nginx/access.log upstreamlog;
- location /petclinic/api/ {
- proxy_pass http://backend;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement