Just open 5678 for now

This commit is contained in:
Raphael 2010-12-02 10:33:13 -08:00
parent e9ec8cea05
commit 5fd854bd89
2 changed files with 3 additions and 21 deletions

View file

@ -15,6 +15,8 @@
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
#HTTPS
-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
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
#Crossdomain policy file for Flash sockets

View file

@ -35,9 +35,6 @@ http {
server <%="localhost:#{port}"%>;
<% end %>
}
upstream resque_web {
server "localhost:5678";
}
server {
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 {
listen 80;
@ -88,6 +67,7 @@ http {
ssl_certificate <%= @cert_location %>;
ssl_certificate_key <%= @key_location %>;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;