aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/crontab-example4
-rw-r--r--config/nginx-ssl.conf.example5
-rw-r--r--config/nginx.conf.example3
3 files changed, 7 insertions, 5 deletions
diff --git a/config/crontab-example b/config/crontab-example
index 79ba70beb..44e328e4e 100644
--- a/config/crontab-example
+++ b/config/crontab-example
@@ -10,8 +10,8 @@ MAILTO=!!(*= $mailto *)!!
# Every 5 minutes
*/5 * * * * !!(*= $user *)!! !!(*= $vhost_dir *)!!/!!(*= $vcspath *)!!/commonlib/bin/run-with-lockfile.sh -n !!(*= $vhost_dir *)!!/change-xapian-database.lock "!!(*= $vhost_dir *)!!/!!(*= $vcspath *)!!/script/update-xapian-index verbose=true" >> !!(*= $vhost_dir *)!!/!!(*= $vcspath *)!!/log/update-xapian-index.log || echo "stalled?"
# Every 10 minutes
-5,15,25,35,45,55 * * * * !!(*= $user *)!! /etc/init.d/foi-alert-tracks check
-5,15,25,35,45,55 * * * * !!(*= $user *)!! /etc/init.d/foi-purge-varnish check
+5,15,25,35,45,55 * * * * !!(*= $user *)!! /etc/init.d/!!(*= $site *)!!-alert-tracks check
+5,15,25,35,45,55 * * * * !!(*= $user *)!! /etc/init.d/!!(*= $site *)!!-purge-varnish check
0,10,20,30,40,50 * * * * !!(*= $user *)!! !!(*= $vhost_dir *)!!/!!(*= $vcspath *)!!/commonlib/bin/run-with-lockfile.sh -n !!(*= $vhost_dir *)!!/send-batch-requests.lock !!(*= $vhost_dir *)!!/!!(*= $vcspath *)!!/script/send-batch-requests || echo "stalled?"
# Once an hour
diff --git a/config/nginx-ssl.conf.example b/config/nginx-ssl.conf.example
index cdb89ef05..af2e9e4ab 100644
--- a/config/nginx-ssl.conf.example
+++ b/config/nginx-ssl.conf.example
@@ -21,6 +21,11 @@ server {
access_log /var/log/nginx/alaveteli_ssl_access.log;
error_log /var/log/nginx/alaveteli_ssl_error.log error;
+ location /download {
+ internal;
+ alias /var/www/alaveteli/alaveteli/cache/zips/production/download;
+ }
+
ssl on;
ssl_certificate /etc/ssl/certs/www.example.com.cert;
ssl_certificate_key /etc/ssl/private/www.example.com.key;
diff --git a/config/nginx.conf.example b/config/nginx.conf.example
index be937b7fd..7b8af2bd9 100644
--- a/config/nginx.conf.example
+++ b/config/nginx.conf.example
@@ -24,9 +24,6 @@ server {
try_files $uri/index.html $uri @alaveteli;
- error_page 500 502 503 504 /500.html;
- error_page 404 /404.html;
- error_page 422 /422.html;
location /download {
internal;