SHARE
TWEET

Untitled

a guest Dec 25th, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. upstream backend {
  2.   server 127.0.0.1:7000;
  3. }
  4.  
  5. upstream frontend {
  6.   server 127.0.0.1:3000;
  7. }
  8.  
  9. server {
  10.   server_name hani.com www.hani.com
  11.  
  12.   location / {
  13.     proxy_pass $scheme://frontend;
  14.   }
  15. }
  16.  
  17. server {
  18.   server_name api.hani.com
  19.  
  20.   location / {
  21.     proxy_pass $scheme://backend;
  22.   }
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top