Skip to content

Commit

Permalink
added config files
Browse files Browse the repository at this point in the history
  • Loading branch information
tlossen committed Jan 2, 2010
1 parent a7b63f0 commit 4f90f08
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
File renamed without changes.
9 changes: 9 additions & 0 deletions config/crontab
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
JAVA_HOME=/usr/lib/jvm/java-6-openjdk
EC2_URL=https://eu-west-1.ec2.amazonaws.com
EC2_PRIVATE_KEY=/home/ubuntu/.ec2/pk-TM374PQ4KXOLLOWN5DUYXYB3M3EX3IQP.pem
EC2_CERT=/home/ubuntu/.ec2/cert-TM374PQ4KXOLLOWN5DUYXYB3M3EX3IQP.pem
EC2_HOME=/home/ubuntu/ec2-api-tools-1.3-46266
DATA_DIR=/home/ubuntu/cloudexchange.org/app/public/data
PATH=/home/ubuntu/ec2-api-tools-1.3-46266/bin:/opt/ruby/bin:/usr/local/bin:/usr/bin:/bin

*/1 * * * * /home/ubuntu/cloudexchange.org/fetch_history.rb >> /home/ubuntu/cloudexchange.org/cron.log 2>&1
61 changes: 61 additions & 0 deletions config/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
#user nobody;
worker_processes 1;

#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;

#pid logs/nginx.pid;


events {
worker_connections 1024;
}


http {
passenger_root /opt/ruby/lib/ruby/gems/1.8/gems/passenger-2.2.7;
passenger_ruby /opt/ruby/bin/ruby;
passenger_max_pool_size 2;

include mime.types;
default_type application/octet-stream;

#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';

#access_log logs/access.log main;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;

gzip on;

server {
listen 80;
server_name .cloudexchange.org;

#access_log logs/host.access.log main;

location / {
root /home/ubuntu/cloudexchange.org/app/public;
index index.html;
passenger_enabled on;
}

#error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

}

}

0 comments on commit 4f90f08

Please sign in to comment.