Advertisement
nodejsdeveloperskh

nginx-backend-frontend-nginx.conf

Mar 4th, 2022
1,464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.64 KB | None | 0 0
  1. events {}
  2.  
  3. http {
  4.         include /etc/nginx/mime.types;
  5.         server {
  6.                 # listen 80; you can do not specify this directive but it is appreciated to explicitely be defined.
  7.                 listen 80;
  8.                 server_name 10.131.40.198;
  9.                 # server_name hostname.domain;
  10.  
  11.                 root /home/ubuntu/frontend;
  12.  
  13.                 location /api {
  14.                         # return 200 "halllo";
  15.                         proxy_pass http://127.0.0.1:9002/api;
  16.                 }
  17.                 location = /doc {
  18.                         proxy_pass http://127.0.0.1:9002/doc;
  19.                 }
  20.         }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement