summaryrefslogtreecommitdiff
path: root/etc/nginx/apps/drupal/cron_allowed_hosts.conf
blob: bdb3dd9ccc6c40ae91ebce548e2a5f4909a3833d (plain)
1
2
3
4
5
6
7
8
9
10
# -*- mode: nginx; mode:autopair; mode: flyspell-prog; ispell-local-dictionary: "american" -*-
### Configuration file for specifying which hosts can invoke Drupal's
### cron. This only applies if you're not using drush to run cron.

geo $not_allowed_cron {
    default 1;
    ## Add your set of hosts.
    127.0.0.1 0; # allow the localhost
    192.168.1.0/24 0; # allow on an internal network
}