default.conf 561 B

123456789101112131415161718
  1. server {
  2. listen 80;
  3. server_name localhost,127.0.0.1;
  4. location / {
  5. try_files $uri /index.html;
  6. root "/var/www/html/client/";
  7. }
  8. location /api{
  9. proxy_pass http://localhost:6060;
  10. proxy_set_header Host $proxy_host;
  11. proxy_set_header X-Real-IP $remote_addr;
  12. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  13. proxy_set_header Cookie $http_cookie;
  14. proxy_set_header X-Forwarded-Proto $scheme;
  15. }
  16. }