nginx.conf.example 719 B

12345678910111213141516171819202122
  1. server {
  2. listen 8080;
  3. server_name honorlee.natappvip.cc;
  4. root {Your SugarNode [dist] path};
  5. #root /Volumes/HonorLee/Develop/work/Fan/WebServer;
  6. location ~.*\.(jpg|png|gif|txt|html)$ {
  7. try_files $uri @proxy;
  8. }
  9. location /example {
  10. add_header Cache-Control no-store;
  11. try_files $uri $uri @proxy;
  12. }
  13. location /asset {
  14. add_header Cache-Control no-store;
  15. try_files $uri $uri @proxy;
  16. }
  17. location / {
  18. add_header Access-Control-Allow-Origin *;
  19. proxy_pass http://127.0.0.1:8080;
  20. client_max_body_size 20m;
  21. }
  22. }