taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

drupal_cron_update.conf (1315B)


      1 # -*- mode: nginx; mode:autopair; mode: flyspell-prog; ispell-local-dictionary: "american" -*-
      2 ### Configuration file for Drupal if you're not using drush to update your site or run cron.
      3 
      4 ## XMLRPC. Comment out if not enabled.
      5 location = /xmlrpc.php {
      6     fastcgi_pass phpcgi;
      7     # To use Apache for serving PHP uncomment the line bellow and
      8     # comment out the above.
      9     #proxy_pass http://phpapache;
     10 }
     11 
     12 ## Restrict cron access to a specific host.
     13 location = /cron.php {
     14     ## If not allowed to run cron then issue a 404 and redirect to the
     15     ## site root.
     16     if ($not_allowed_cron) {
     17         return 404 /;
     18     }
     19     fastcgi_pass phpcgi;
     20     ## To use Apache for serving PHP uncomment the line bellow and
     21     ## comment out the above.
     22     #proxy_pass http://phpapache;
     23 }
     24 
     25 ## Run the update from the web interface with Drupal 7.
     26 location = /authorize.php {
     27     fastcgi_pass phpcgi;
     28     ## To use Apache for serving PHP uncomment the line bellow and
     29     ## comment out the above.
     30     #proxy_pass http://phpapache;
     31 }
     32 
     33 location = /update.php {
     34     auth_basic "Restricted Access"; # auth realm
     35     auth_basic_user_file .htpasswd-users; # htpasswd file
     36     fastcgi_pass phpcgi;
     37     ## To use Apache for serving PHP uncomment the line bellow and
     38     ## comment out the above.
     39     #proxy_pass http://phpapache;
     40 }