summaryrefslogtreecommitdiff
path: root/guix/etc/nginx/apps/drupal/drupal_cron_update.conf
diff options
context:
space:
mode:
authorNils Gillmann <ng0@n0.is>2018-09-27 19:24:10 +0000
committerNils Gillmann <ng0@n0.is>2018-09-27 19:24:10 +0000
commit430db6a55226ea4a9c33e322edc4a3a7b325393c (patch)
treed9d0a25b6b3103bcda84d0aa32c007fa3c2d1302 /guix/etc/nginx/apps/drupal/drupal_cron_update.conf
parent82741d1288c8755bfdf57d0e0ce77d6ee121b913 (diff)
downloaddeployment-430db6a55226ea4a9c33e322edc4a3a7b325393c.tar.gz
deployment-430db6a55226ea4a9c33e322edc4a3a7b325393c.tar.bz2
deployment-430db6a55226ea4a9c33e322edc4a3a7b325393c.zip
complications with the way guix builds are made lead me to work on the content of etc in a copied, not symlinked location.
Signed-off-by: Nils Gillmann <ng0@n0.is>
Diffstat (limited to 'guix/etc/nginx/apps/drupal/drupal_cron_update.conf')
-rw-r--r--guix/etc/nginx/apps/drupal/drupal_cron_update.conf40
1 files changed, 40 insertions, 0 deletions
diff --git a/guix/etc/nginx/apps/drupal/drupal_cron_update.conf b/guix/etc/nginx/apps/drupal/drupal_cron_update.conf
new file mode 100644
index 0000000..55500e9
--- /dev/null
+++ b/guix/etc/nginx/apps/drupal/drupal_cron_update.conf
@@ -0,0 +1,40 @@
+# -*- mode: nginx; mode:autopair; mode: flyspell-prog; ispell-local-dictionary: "american" -*-
+### Configuration file for Drupal if you're not using drush to update your site or run cron.
+
+## XMLRPC. Comment out if not enabled.
+location = /xmlrpc.php {
+ fastcgi_pass phpcgi;
+ # To use Apache for serving PHP uncomment the line bellow and
+ # comment out the above.
+ #proxy_pass http://phpapache;
+}
+
+## Restrict cron access to a specific host.
+location = /cron.php {
+ ## If not allowed to run cron then issue a 404 and redirect to the
+ ## site root.
+ if ($not_allowed_cron) {
+ return 404 /;
+ }
+ fastcgi_pass phpcgi;
+ ## To use Apache for serving PHP uncomment the line bellow and
+ ## comment out the above.
+ #proxy_pass http://phpapache;
+}
+
+## Run the update from the web interface with Drupal 7.
+location = /authorize.php {
+ fastcgi_pass phpcgi;
+ ## To use Apache for serving PHP uncomment the line bellow and
+ ## comment out the above.
+ #proxy_pass http://phpapache;
+}
+
+location = /update.php {
+ auth_basic "Restricted Access"; # auth realm
+ auth_basic_user_file .htpasswd-users; # htpasswd file
+ fastcgi_pass phpcgi;
+ ## To use Apache for serving PHP uncomment the line bellow and
+ ## comment out the above.
+ #proxy_pass http://phpapache;
+}