Skip to content

Commit

Permalink
crontab & nginx examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
lemming552 committed Apr 12, 2013
1 parent 20197c0 commit 9481fa7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
8 changes: 8 additions & 0 deletions etc/crontab.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
20 * * * * /data/apps/bin/perl /data/Lacuna-Server/bin/schedule_building.pl --noquiet --daemonize --noinitialize
50 * * * * /data/apps/bin/perl /data/Lacuna-Server/bin/schedule_ship_arrival.pl --noquiet --daemonize --noinitialize

0 * * * * /data/Lacuna-Server/bin/run_hourly.sh
10 1,3,5,7,9,11,13,15,17,19,21,23 * * * /data/Lacuna-Server/bin/run_two_hourly.sh
40 2,6,10,14,18,22 * * * /data/Lacuna-Server/bin/run_four_hourly.sh
15 3 * * * /data/Lacuna-Server/bin/run_daily.sh
15 6 * * 0 /data/Lacuna-Server/bin/run_weekly.sh
12 changes: 11 additions & 1 deletion etc/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,24 @@ http {
root /data/Lacuna-Assets;
index README.txt;
}
location ^~ /starmap/ {
root /data/Lacuna-Server/var/www/public;
index index.html;
}

location /starmap.json {
proxy_set_header Authorization "";
proxy_pass http://s3.amazonaws.com/pt.SERVERNAME.com/starmap.json;
}

location ^~ /captcha/ {
root /data/Lacuna-Captcha/public;
rewrite ^/captcha/(.*)$ /$1 break;
}

location /server_overview.json {
proxy_set_header Authorization "";
proxy_pass http://s3.amazonaws.com/pt.lacunaexpanse.com/server_overview.json;
proxy_pass http://s3.amazonaws.com/pt.SERVERNAME.com/server_overview.json;
}

location ~ /.* {
Expand Down

0 comments on commit 9481fa7

Please sign in to comment.