nginx.conf 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 /adminsync/ {
  32. proxy_pass http://localhost:3000/;
  33. }
  34. location / {
  35. proxy_pass http://localhost:4001/;
  36. proxy_http_version 1.1;
  37. proxy_set_header Upgrade $http_upgrade;
  38. proxy_set_header Connection "upgrade";
  39. proxy_set_header Host $host;
  40. }
  41. }
  42. }