nginx.conf 582 B

1234567891011121314151617181920212223242526272829
  1. server {
  2. listen 80;
  3. server_name _;
  4. root /usr/share/nginx/html;
  5. index index.html;
  6. location /api/ {
  7. proxy_pass http://backend:8080/api/;
  8. proxy_set_header Host $host;
  9. proxy_set_header X-Real-IP $remote_addr;
  10. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  11. }
  12. location /actuator/ {
  13. proxy_pass http://backend:8080/actuator/;
  14. }
  15. location /api-docs {
  16. proxy_pass http://backend:8080/api-docs;
  17. }
  18. location /swagger-ui {
  19. proxy_pass http://backend:8080/swagger-ui;
  20. }
  21. location / {
  22. try_files $uri $uri/ /index.html;
  23. }
  24. }