2021-01-28 13:34:53 -05:00
|
|
|
user nginx;
|
|
|
|
worker_processes auto;
|
|
|
|
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
stream {
|
|
|
|
map $ssl_preread_server_name $name {
|
2021-09-07 10:44:17 -04:00
|
|
|
chat.signal.org signal-service;
|
|
|
|
ud-chat.signal.org signal-service;
|
|
|
|
storage.signal.org storage-service;
|
|
|
|
cdn.signal.org signal-cdn;
|
|
|
|
cdn2.signal.org signal-cdn2;
|
2022-09-22 14:17:49 -04:00
|
|
|
cdsi.signal.org cdsi;
|
2021-09-07 10:44:17 -04:00
|
|
|
contentproxy.signal.org content-proxy;
|
|
|
|
uptime.signal.org uptime;
|
|
|
|
api.backup.signal.org backup;
|
2021-01-28 13:34:53 -05:00
|
|
|
sfu.voip.signal.org sfu;
|
2023-08-05 16:50:48 -04:00
|
|
|
svr2.signal.org svr2;
|
2021-01-28 13:34:53 -05:00
|
|
|
updates.signal.org updates;
|
|
|
|
updates2.signal.org updates2;
|
2021-09-07 10:44:17 -04:00
|
|
|
default deny;
|
2021-01-28 13:34:53 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
upstream signal-service {
|
2021-09-07 10:44:17 -04:00
|
|
|
server chat.signal.org:443;
|
2021-01-28 13:34:53 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
upstream storage-service {
|
|
|
|
server storage.signal.org:443;
|
|
|
|
}
|
|
|
|
|
|
|
|
upstream signal-cdn {
|
|
|
|
server cdn.signal.org:443;
|
|
|
|
}
|
|
|
|
|
|
|
|
upstream signal-cdn2 {
|
|
|
|
server cdn2.signal.org:443;
|
|
|
|
}
|
|
|
|
|
2022-09-22 14:17:49 -04:00
|
|
|
upstream cdsi {
|
|
|
|
server cdsi.signal.org:443;
|
|
|
|
}
|
|
|
|
|
2021-01-28 13:34:53 -05:00
|
|
|
upstream content-proxy {
|
|
|
|
server contentproxy.signal.org:443;
|
|
|
|
}
|
|
|
|
|
|
|
|
upstream backup {
|
2021-09-07 10:44:17 -04:00
|
|
|
server api.backup.signal.org:443;
|
2021-01-28 13:34:53 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
upstream sfu {
|
|
|
|
server sfu.voip.signal.org:443;
|
|
|
|
}
|
|
|
|
|
2023-08-05 16:50:48 -04:00
|
|
|
upstream svr2 {
|
|
|
|
server svr2.signal.org:443;
|
|
|
|
}
|
|
|
|
|
2021-01-28 13:34:53 -05:00
|
|
|
upstream updates {
|
|
|
|
server updates.signal.org:443;
|
|
|
|
}
|
|
|
|
|
|
|
|
upstream updates2 {
|
|
|
|
server updates2.signal.org:443;
|
|
|
|
}
|
|
|
|
|
|
|
|
upstream deny {
|
|
|
|
server 127.0.0.1:9;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 4433;
|
|
|
|
proxy_pass $name;
|
2021-09-07 10:44:17 -04:00
|
|
|
ssl_preread on;
|
2021-01-28 13:34:53 -05:00
|
|
|
error_log /dev/null;
|
|
|
|
access_log off;
|
|
|
|
}
|
|
|
|
}
|