exam_reserve.conf 693 B

123456789101112131415161718192021222324252627
  1. server {
  2. listen 8300;
  3. charset utf-8;
  4. location ^~ / {
  5. alias /home/admin/project/exam-reserve/static/admin/dist/;
  6. try_files $uri $uri/ /index.html;
  7. }
  8. location ^~ /wap {
  9. alias /home/admin/project/exam-reserve/static/wap/dist/;
  10. try_files $uri $uri/ /wap/index.html;
  11. }
  12. location /file/ {
  13. alias /home/admin/project/exam-reserve/static/file/;
  14. add_header Access-Control-Allow-Origin *;
  15. }
  16. location ^~ /api/ {
  17. proxy_pass http://localhost:8080;
  18. proxy_set_header Host $host;
  19. proxy_set_header X-Real-IP $remote_addr;
  20. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  21. }
  22. }