teachreport.conf 545 B

123456789101112131415161718192021
  1. server {
  2. listen 7500;
  3. access_log off;
  4. location /api/ {
  5. proxy_pass http://127.0.0.1:7580;
  6. proxy_read_timeout 3600;
  7. proxy_set_header Host $http_host;
  8. proxy_set_header X-Real-IP $remote_addr;
  9. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  10. }
  11. location / {
  12. root ../../teachreport/web;
  13. index index.html index.htm;
  14. }
  15. location /static/ {
  16. alias ../../teachreport/static/;
  17. }
  18. }