nginx.conf 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. user nginx;
  2. worker_processes auto;
  3. events {
  4. worker_connections 1024;
  5. }
  6. stream {
  7. map $ssl_preread_server_name $name {
  8. chat.signal.org signal-service;
  9. ud-chat.signal.org signal-service;
  10. textsecure-service.whispersystems.org signal-service;
  11. storage.signal.org storage-service;
  12. cdn.signal.org signal-cdn;
  13. cdn2.signal.org signal-cdn2;
  14. api.directory.signal.org directory;
  15. cdsi.signal.org cdsi;
  16. contentproxy.signal.org content-proxy;
  17. uptime.signal.org uptime;
  18. api.backup.signal.org backup;
  19. sfu.voip.signal.org sfu;
  20. updates.signal.org updates;
  21. updates2.signal.org updates2;
  22. default deny;
  23. }
  24. upstream signal-service {
  25. server chat.signal.org:443;
  26. }
  27. upstream storage-service {
  28. server storage.signal.org:443;
  29. }
  30. upstream signal-cdn {
  31. server cdn.signal.org:443;
  32. }
  33. upstream signal-cdn2 {
  34. server cdn2.signal.org:443;
  35. }
  36. upstream directory {
  37. server api.directory.signal.org:443;
  38. }
  39. upstream cdsi {
  40. server cdsi.signal.org:443;
  41. }
  42. upstream content-proxy {
  43. server contentproxy.signal.org:443;
  44. }
  45. upstream backup {
  46. server api.backup.signal.org:443;
  47. }
  48. upstream sfu {
  49. server sfu.voip.signal.org:443;
  50. }
  51. upstream updates {
  52. server updates.signal.org:443;
  53. }
  54. upstream updates2 {
  55. server updates2.signal.org:443;
  56. }
  57. upstream deny {
  58. server 127.0.0.1:9;
  59. }
  60. server {
  61. listen 4433;
  62. proxy_pass $name;
  63. ssl_preread on;
  64. error_log /dev/null;
  65. access_log off;
  66. }
  67. }