default.conf 666 B

12345678910111213141516171819202122232425
  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://api-gateway:8080;
  16. }
  17. error_page 500 502 503 504 /50x.html;
  18. location = /50x.html {
  19. root html;
  20. }
  21. }