-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for staging configuration
- Loading branch information
1 parent
fb5d914
commit cfbef79
Showing
2 changed files
with
97 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
user nginx; | ||
worker_processes auto; | ||
|
||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
stream { | ||
map $ssl_preread_server_name $name { | ||
chat.staging.signal.org signal-service; | ||
ud-chat.staging.signal.org signal-service; | ||
storage-staging.signal.org storage-service; | ||
cdn-staging.signal.org signal-cdn; | ||
cdn2-staging.signal.org signal-cdn2; | ||
cdn3-staging.signal.org signal-cdn3; | ||
cdsi.staging.signal.org cdsi; | ||
contentproxy.signal.org content-proxy; | ||
sfu.staging.voip.signal.org sfu; | ||
svr2.staging.signal.org svr2; | ||
updates.signal.org updates; | ||
updates2.signal.org updates2; | ||
backend1.svr3.staging.signal.org svr31; | ||
backend2.svr3.staging.signal.org svr32; | ||
backend3.svr3.staging.signal.org svr33; | ||
default deny; | ||
} | ||
|
||
upstream signal-service { | ||
server chat.staging.signal.org:443; | ||
} | ||
|
||
upstream storage-service { | ||
server storage-staging.signal.org:443; | ||
} | ||
|
||
upstream signal-cdn { | ||
server cdn-staging.signal.org:443; | ||
} | ||
|
||
upstream signal-cdn2 { | ||
server cdn2-staging.signal.org:443; | ||
} | ||
|
||
upstream signal-cdn3 { | ||
server cdn3-staging.signal.org:443; | ||
} | ||
|
||
upstream cdsi { | ||
server cdsi.staging.signal.org:443; | ||
} | ||
|
||
upstream content-proxy { | ||
server contentproxy.signal.org:443; | ||
} | ||
|
||
upstream sfu { | ||
server sfu.staging.voip.signal.org:443; | ||
} | ||
|
||
upstream svr2 { | ||
server svr2.staging.signal.org:443; | ||
} | ||
|
||
upstream svr31 { | ||
server backend1.svr3.staging.signal.org:443; | ||
} | ||
|
||
upstream svr32 { | ||
server backend2.svr3.staging.signal.org:443; | ||
} | ||
|
||
upstream svr33 { | ||
server backend3.svr3.staging.signal.org:443; | ||
} | ||
|
||
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; | ||
ssl_preread on; | ||
error_log /dev/null; | ||
access_log off; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters