Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4.  
  5. root /var/www/dev.fishpal.com;
  6.  
  7. server_name dev.fishpal.com;
  8.  
  9. # Add index.php to the list if you are using PHP
  10. index index.html index.htm index.nginx-debian.html;
  11.  
  12. location ~* ^/ {
  13. # First attempt to serve request as file, then
  14. # as directory, then fall back to displaying a 404.
  15. try_files $uri $uri/ =404;
  16. }
  17.  
  18. location /api/ {
  19. proxy_pass http://127.0.0.1:3000/;
  20. proxy_http_version 1.1;
  21. proxy_set_header Host $host;
  22. proxy_set_header X-Real-IP $remote_addr;
  23. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  24. proxy_read_timeout 1800;
  25. proxy_connect_timeout 1800;
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement