nginx.conf 446 B

12345678910111213141516171819202122232425262728293031
  1. pid /var/run/nginx.pid;
  2. events {
  3. worker_connections 768;
  4. }
  5. http {
  6. server {
  7. listen 8080;
  8. root /app;
  9. location /liveness {
  10. access_log off;
  11. return 200 "healthy\n";
  12. }
  13. location /readiness {
  14. access_log off;
  15. return 200 "healthy\n";
  16. }
  17. location / {
  18. try_files $uri $uri/ =404;
  19. }
  20. location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
  21. expires 1y;
  22. log_not_found off;
  23. }
  24. }
  25. }