nginx.conf 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. user nginx;
  2. worker_processes 1;
  3. error_log /var/log/nginx/error.log warn;
  4. pid /var/run/nginx.pid;
  5. events {
  6. worker_connections 1024;
  7. }
  8. http {
  9. include /etc/nginx/mime.types;
  10. default_type application/octet-stream;
  11. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  12. '$status $body_bytes_sent "$http_referer" '
  13. '"$http_user_agent" "$http_x_forwarded_for"';
  14. access_log /var/log/nginx/access.log main;
  15. sendfile on;
  16. #tcp_nopush on;
  17. keepalive_timeout 65;
  18. #gzip on;
  19. upstream relay {
  20. server sentry_relay.sentry:3000;
  21. }
  22. upstream sentry {
  23. server host.docker.internal:8888;
  24. }
  25. server {
  26. listen 80;
  27. resolver 127.0.0.11 ipv6=off;
  28. location /api/store/ {
  29. proxy_pass http://relay;
  30. }
  31. location ~ ^/api/\d+/store/$ {
  32. proxy_pass http://relay;
  33. }
  34. location ~ ^/api/\d+/minidump/?$ {
  35. proxy_pass http://relay;
  36. }
  37. location ~ ^/api/\d+/unreal/\w+/$ {
  38. proxy_pass http://relay;
  39. }
  40. location ~ ^/api/\d+/security/$ {
  41. proxy_pass http://relay;
  42. }
  43. location ~ ^/api/\d+/csp-report/$ {
  44. proxy_pass http://relay;
  45. }
  46. location ~ ^/api/\d+/events/[\w-]+/attachments/$ {
  47. proxy_pass http://relay;
  48. }
  49. location / {
  50. proxy_pass http://sentry;
  51. }
  52. }
  53. }