default.conf 655 B

123456789101112131415161718192021222324
  1. server {
  2. listen 8080;
  3. server_name _;
  4. charset utf-8;
  5. location / {
  6. root /app;
  7. try_files $uri $uri/ /index.html;
  8. index index.html index.htm;
  9. }
  10. location /gw {
  11. proxy_set_header Host $http_host;
  12. proxy_set_header X-Real-IP $remote_addr;
  13. proxy_set_header REMOTE-HOST $remote_addr;
  14. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  15. proxy_pass http://127.0.0.1:8880;
  16. }
  17. error_page 500 502 503 504 /50x.html;
  18. location = /50x.html {
  19. root html;
  20. }
  21. }