nginx.conf 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. user cloudron;
  2. worker_processes 1;
  3. pid /run/nginx.pid;
  4. daemon off;
  5. # Send logs to stderr
  6. error_log /dev/stderr warn;
  7. events {
  8. worker_connections 768;
  9. }
  10. http {
  11. error_log /dev/stderr warn;
  12. log_format simple '$remote_addr [$time_local] "$request" $status $body_bytes_sent "$http_referer"';
  13. access_log /dev/stdout simple;
  14. include /etc/nginx/mime.types;
  15. client_body_temp_path /tmp/client_body 1 2;
  16. proxy_temp_path /tmp/proxy_temp 1 2;
  17. fastcgi_temp_path /tmp/fastcgi_temp 1 2;
  18. uwsgi_temp_path /tmp/uwsgi_temp 1 2;
  19. scgi_temp_path /tmp/scgi_temp 1 2;
  20. proxy_buffering off;
  21. proxy_cache_path /tmp/proxy_cache levels=1:2 keys_zone=my_cache:10m max_size=100m inactive=60m use_temp_path=off;
  22. proxy_cache my_cache;
  23. server {
  24. error_log /dev/stderr warn;
  25. listen 8000 default_server;
  26. server_name _;
  27. proxy_read_timeout 120s;
  28. location /healthcheck {
  29. return 200;
  30. }
  31. location / {
  32. proxy_pass http://localhost:3000;
  33. }
  34. }
  35. }