You are here

README.txt in Stage File Proxy 7

CONTENTS OF THIS FILE
---------------------

* Introduction
* Requirements
* Installation
* Configuration
* Maintainers


INTRODUCTION
------------

The Stage File Proxy module saves you time and disk space by sending requests to
your development environment's files directory to the production environment and
making a copy of the production file in your development site. It makes it
easier to manage local development environments. This module should not be
installed on a server that faces the internet.

 * For a full description of the module visit
   https://www.drupal.org/project/stage_file_proxy

 * To submit bug reports and feature suggestions, or to track changes visit
   https://www.drupal.org/project/issues/stage_file_proxy


REQUIREMENTS
------------

This module does not require any additional modules outside of Drupal core.


INSTALLATION
------------

 * Install the Stage File Proxy module as you would normally install a
   contributed Drupal module. Visit https://www.drupal.org/node/895232 for
   further information.


CONFIGURATION
-------------

Using Drush:
    1. Enable Stage File Proxy
       $ drush en --yes stage_file_proxy
       $ drush variable-set stage_file_proxy_origin "http://www.example.com"

As this module is only going to be needed on pre-production sites, it would be
better to configure this within your settings.php or settings.local.php file.
    1. File proxy to the live site:
       $conf['stage_file_proxy_origin'] = 'http://www.example.com';
    2. To link to the files, and not copy them:
       $conf['stage_file_proxy_hotlink'] = TRUE;
       If this variable is set to TRUE then Stage File Proxy will not transfer
       the remote file to the local machine. It will just serve a 301 (permanent
       URL redirection) and create a link to the original file on the remote
       server.
    3. To make image sizes the correct size:
       $conf['stage_file_proxy_use_imagecache_root'] = FALSE;
       By default, this variable is set to TRUE.
       When set to FALSE, the Stage File Proxy will look for /imagecache/ in the
       URL and request the original file. It will then send a header to the
       browser to allow transfer of the original image so that imagecache can
       resize the file locally.
       This process speeds up future imagecache requests for the same original
       file.
    4. To help with multisites where the files directory is not the same for
       each URL:
       $conf['stage_file_proxy_origin_dir'] = 'sites/default/files';
       If this is set then Stage File Proxy will use a different path for the
       remote files. This is useful for multisite installations where the sites
       directory contains different names for each URL. If the variable is not
       set, it defaults to the same path as the local site
       (sites/default/files).
    5. To include the username and password within the origin URL:
       $conf['stage_file_proxy_origin'] =
       'http://user:password@prelive.example.com';
       This should be done only if the origin site is not publicly accessible
       and protected with basic access authentication.


MAINTAINERS
-----------

 * Greg Knaddison (greggles) - https://www.drupal.org/u/greggles
 * Rob Wilmshurst (robwilmshurst) - https://www.drupal.org/u/robwilmshurst
 * netaustin - https://www.drupal.org/user/199298
 * Axel Rutz (axel.rutz) - https://www.drupal.org/u/axelrutz

The 7.x branch is actively maintained by greggles with support:

 * CARD.com - https://www.card.com

File

README.txt
View source
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Introduction
  4. * Requirements
  5. * Installation
  6. * Configuration
  7. * Maintainers
  8. INTRODUCTION
  9. ------------
  10. The Stage File Proxy module saves you time and disk space by sending requests to
  11. your development environment's files directory to the production environment and
  12. making a copy of the production file in your development site. It makes it
  13. easier to manage local development environments. This module should not be
  14. installed on a server that faces the internet.
  15. * For a full description of the module visit
  16. https://www.drupal.org/project/stage_file_proxy
  17. * To submit bug reports and feature suggestions, or to track changes visit
  18. https://www.drupal.org/project/issues/stage_file_proxy
  19. REQUIREMENTS
  20. ------------
  21. This module does not require any additional modules outside of Drupal core.
  22. INSTALLATION
  23. ------------
  24. * Install the Stage File Proxy module as you would normally install a
  25. contributed Drupal module. Visit https://www.drupal.org/node/895232 for
  26. further information.
  27. CONFIGURATION
  28. -------------
  29. Using Drush:
  30. 1. Enable Stage File Proxy
  31. $ drush en --yes stage_file_proxy
  32. $ drush variable-set stage_file_proxy_origin "http://www.example.com"
  33. As this module is only going to be needed on pre-production sites, it would be
  34. better to configure this within your settings.php or settings.local.php file.
  35. 1. File proxy to the live site:
  36. $conf['stage_file_proxy_origin'] = 'http://www.example.com';
  37. 2. To link to the files, and not copy them:
  38. $conf['stage_file_proxy_hotlink'] = TRUE;
  39. If this variable is set to TRUE then Stage File Proxy will not transfer
  40. the remote file to the local machine. It will just serve a 301 (permanent
  41. URL redirection) and create a link to the original file on the remote
  42. server.
  43. 3. To make image sizes the correct size:
  44. $conf['stage_file_proxy_use_imagecache_root'] = FALSE;
  45. By default, this variable is set to TRUE.
  46. When set to FALSE, the Stage File Proxy will look for /imagecache/ in the
  47. URL and request the original file. It will then send a header to the
  48. browser to allow transfer of the original image so that imagecache can
  49. resize the file locally.
  50. This process speeds up future imagecache requests for the same original
  51. file.
  52. 4. To help with multisites where the files directory is not the same for
  53. each URL:
  54. $conf['stage_file_proxy_origin_dir'] = 'sites/default/files';
  55. If this is set then Stage File Proxy will use a different path for the
  56. remote files. This is useful for multisite installations where the sites
  57. directory contains different names for each URL. If the variable is not
  58. set, it defaults to the same path as the local site
  59. (sites/default/files).
  60. 5. To include the username and password within the origin URL:
  61. $conf['stage_file_proxy_origin'] =
  62. 'http://user:password@prelive.example.com';
  63. This should be done only if the origin site is not publicly accessible
  64. and protected with basic access authentication.
  65. MAINTAINERS
  66. -----------
  67. * Greg Knaddison (greggles) - https://www.drupal.org/u/greggles
  68. * Rob Wilmshurst (robwilmshurst) - https://www.drupal.org/u/robwilmshurst
  69. * netaustin - https://www.drupal.org/user/199298
  70. * Axel Rutz (axel.rutz) - https://www.drupal.org/u/axelrutz
  71. The 7.x branch is actively maintained by greggles with support:
  72. * CARD.com - https://www.card.com