Just open 5678 for now
This commit is contained in:
parent
e9ec8cea05
commit
5fd854bd89
2 changed files with 3 additions and 21 deletions
|
|
@ -15,6 +15,8 @@
|
||||||
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
|
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
|
||||||
#HTTPS
|
#HTTPS
|
||||||
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
|
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
|
||||||
|
#Resque-Web
|
||||||
|
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5678 -j ACCEPT
|
||||||
#Websocket
|
#Websocket
|
||||||
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
|
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
|
||||||
#Crossdomain policy file for Flash sockets
|
#Crossdomain policy file for Flash sockets
|
||||||
|
|
|
||||||
|
|
@ -35,9 +35,6 @@ http {
|
||||||
server <%="localhost:#{port}"%>;
|
server <%="localhost:#{port}"%>;
|
||||||
<% end %>
|
<% end %>
|
||||||
}
|
}
|
||||||
upstream resque_web {
|
|
||||||
server "localhost:5678";
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 843;
|
listen 843;
|
||||||
|
|
@ -53,24 +50,6 @@ http {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name resque.<%= @url %>;
|
|
||||||
rewrite ^(.*) https://resque.<%= @url %>$1 permanent;
|
|
||||||
}
|
|
||||||
server {
|
|
||||||
|
|
||||||
listen 443;
|
|
||||||
server_name resque.<%= @url %>;
|
|
||||||
|
|
||||||
ssl on;
|
|
||||||
ssl_certificate /usr/local/nginx/conf/diaspora.crt;
|
|
||||||
ssl_certificate_key /usr/local/nginx/conf/diaspora.key;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
proxy_pass http://resque_web;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
|
@ -88,6 +67,7 @@ http {
|
||||||
ssl_certificate <%= @cert_location %>;
|
ssl_certificate <%= @cert_location %>;
|
||||||
ssl_certificate_key <%= @key_location %>;
|
ssl_certificate_key <%= @key_location %>;
|
||||||
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue