mirror of https://github.com/zulip/zulip.git
puppet: Fix nginx upstreams for staging.
(imported from commit eb1e6e3b2d35533af4a24015a91201e2414f8e28)
This commit is contained in:
parent
9b58aef815
commit
c872866289
|
@ -2,6 +2,9 @@ server {
|
||||||
listen 80;
|
listen 80;
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
include /etc/nginx/zulip-include/upstreams;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443;
|
listen 443;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
|
@ -76,6 +76,14 @@ class zulip::app_frontend {
|
||||||
source => "puppet:///modules/zulip/nginx/zulip-include-frontend/app",
|
source => "puppet:///modules/zulip/nginx/zulip-include-frontend/app",
|
||||||
notify => Service["nginx"],
|
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/":
|
file { "/etc/nginx/zulip-include/app.d/":
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => "root",
|
owner => "root",
|
||||||
|
|
|
@ -14,18 +14,7 @@ server {
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
upstream django {
|
include /etc/nginx/zulip-include/upstreams;
|
||||||
server_name unix:/home/zulip/deployments/fastcgi-socket;
|
|
||||||
}
|
|
||||||
|
|
||||||
upstream tornado {
|
|
||||||
server_name localhost:9993;
|
|
||||||
keepalive 10000;
|
|
||||||
}
|
|
||||||
|
|
||||||
upstream localhost_sso {
|
|
||||||
server_name localhost:8888;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443;
|
listen 443;
|
||||||
|
|
|
@ -4,6 +4,8 @@ server {
|
||||||
return 301 https://$server_name$request_uri;
|
return 301 https://$server_name$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
include /etc/nginx/zulip-include/upstreams;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443;
|
listen 443;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue