Port 7894 for resque web client. HTTP basic looks in /usr/local/nginx/conf/htpasswd for user:pass.
This commit is contained in:
parent
236fbc7cc7
commit
4b43eaef6b
2 changed files with 22 additions and 1 deletions
|
|
@ -16,7 +16,7 @@
|
|||
#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
|
||||
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 7894 -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
|
||||
|
|
|
|||
|
|
@ -36,6 +36,10 @@ http {
|
|||
<% end %>
|
||||
}
|
||||
|
||||
upstream resque_web {
|
||||
server localhost:5678;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 843;
|
||||
|
||||
|
|
@ -51,6 +55,23 @@ http {
|
|||
|
||||
}
|
||||
|
||||
server {
|
||||
listen 7894;
|
||||
server_name <%= @url %> www.<%= @url %>;
|
||||
|
||||
auth_basic "Restricted";
|
||||
auth_basic_user_file htpasswd;
|
||||
|
||||
ssl on;
|
||||
ssl_certificate /usr/local/nginx/conf/diaspora.crt;
|
||||
ssl_certificate_key /usr/local/nginx/conf/diaspora.key;
|
||||
|
||||
location / {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_pass http://resque_web;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name <%= @url %> www.<%= @url %>;
|
||||
|
|
|
|||
Loading…
Reference in a new issue