puppet: Fix nginx upstreams for staging.

(imported from commit eb1e6e3b2d35533af4a24015a91201e2414f8e28)
This commit is contained in:
Tim Abbott 2013-12-13 17:47:40 -05:00
parent 9b58aef815
commit c872866289
5 changed files with 26 additions and 12 deletions

View File

@ -2,6 +2,9 @@ server {
listen 80;
return 301 https://$host$request_uri;
}
include /etc/nginx/zulip-include/upstreams;
server {
listen 443;

View File

@ -0,0 +1,12 @@
upstream django {
server unix:/home/zulip/deployments/fastcgi-socket;
}
upstream tornado {
server localhost:9993;
keepalive 10000;
}
upstream localhost_sso {
server localhost:8888;
}

View File

@ -76,6 +76,14 @@ class zulip::app_frontend {
source => "puppet:///modules/zulip/nginx/zulip-include-frontend/app",
notify => Service["nginx"],
}
file { "/etc/nginx/zulip-include/upstreams":
require => Package["nginx-full"],
owner => "root",
group => "root",
mode => 644,
source => "puppet:///modules/zulip/nginx/zulip-include-frontend/upstreams",
notify => Service["nginx"],
}
file { "/etc/nginx/zulip-include/app.d/":
ensure => directory,
owner => "root",

View File

@ -14,18 +14,7 @@ server {
return 301 https://$host$request_uri;
}
upstream django {
server_name unix:/home/zulip/deployments/fastcgi-socket;
}
upstream tornado {
server_name localhost:9993;
keepalive 10000;
}
upstream localhost_sso {
server_name localhost:8888;
}
include /etc/nginx/zulip-include/upstreams;
server {
listen 443;

View File

@ -4,6 +4,8 @@ server {
return 301 https://$server_name$request_uri;
}
include /etc/nginx/zulip-include/upstreams;
server {
listen 443;