Permalink
Browse files

drupal cookbook added

  • Loading branch information...
0 parents commit 518e8fdec74b0387f269266a5746c2bc8662bc9c @mdxp mdxp committed Sep 11, 2010
65 README.rdoc
@@ -0,0 +1,65 @@
+= DESCRIPTION:
+
+Installs and configures Drupal; it creates the drupal db user, db password and the database;
+You will need to manually complete the installation step by visiting http://<server_fqdn>/install.php
+
+= REQUIREMENTS:
+
+== Platform:
+
+Tested on Ubuntu 10.04, Debian Lenny. As long as the required cookbooks work (apache, php, mysql) it
+should work just fine on any other distributions.
+
+== Cookbooks:
+
+Opscode cookbooks (http://github.com/opscode/cookbooks/tree/master)
+
+* mysql
+* php
+* apache2
+* openssl (used to generate the secure random drupal db password)
+
+= ATTRIBUTES:
+
+* drupal[:version] - version of drupal to download and install (default: 6.19)
+* drupal[:checksum] - sha256sum of the source tarball
+* drupal[:dir] - location to copy the drupal files. (default: /var/www/drupal)
+* drupal[:db][:database] - drupal database (default: drupal)
+* drupal[:db][:user] - drupal db user (default: drupal)
+* drupal[:db][:password] - drupal db password (randomly generated if not defined)
+* drupal[:src] - where to place the drupal source tarball (default: Chef::Config[:file_cache_path])
+
+* drupal[:drush][:version] - version of drush to download (default: 3.3)
+* drupal[:drush][:checksum] - sha256sum of the drush tarball
+* drupal[:drush][:dir] - where to install the drush file. (default: /usr/local/drush)
+
+= USAGE:
+
+Include the drupal recipe to install drupal on your system; this will enable also the drupal cron:
+
+ include_recipe "drupal"
+
+Include the drush recipe to install drush:
+
+ include_recipe "drupal::drush"
+
+If you want to install a different version you just have to customize the version attribute and checksum
+(sha256 checksum on the source)
+
+= LICENSE and AUTHOR:
+
+Author:: Marius Ducea (marius@promethost.com)
+
+Copyright:: 2010, Promet Solutions
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
34 attributes/default.rb
@@ -0,0 +1,34 @@
+#
+# Author:: Marius Ducea (marius@promethost.com)
+# Cookbook Name:: drupal
+# Attributes:: drupal
+#
+# Copyright 2010, Promet Solutions
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+default[:drupal][:version] = "6.19"
+default[:drupal][:checksum] = "b2067b18408321af8595715e2c1fb0e9f20c188b4276bb616c066ff6ab26ee88"
+default[:drupal][:dir] = "/var/www/drupal"
+default[:drupal][:db][:database] = "drupal"
+default[:drupal][:db][:user] = "drupal"
+
+::Chef::Node.send(:include, Opscode::OpenSSL::Password)
+
+set_unless[:drupal][:db][:password] = secure_password
+default[:drupal][:src] = Chef::Config[:file_cache_path]
+
+default[:drupal][:drush][:version] = "3.3"
+default[:drupal][:drush][:checksum] = "9b7b8cf0c4426a5b3211cb349130ca9ef8222bb6b0a8dc7fdc24a8be4edd9755"
+default[:drupal][:drush][:dir] = "/usr/local/drush"
50 metadata.json
@@ -0,0 +1,50 @@
+{
+ "recipes": {
+ "drupal": "Installs and configures Drupal",
+ "drupal::cron": "Sets up the default drupal cron",
+ "drupal::drush": "Installs drush - a command line shell and scripting interface for Drupal"
+ },
+ "replacing": {
+ },
+ "attributes": {
+ },
+ "maintainer_email": "marius@promethost.com",
+ "groupings": {
+ },
+ "dependencies": {
+ "mysql": [
+
+ ],
+ "php": [
+
+ ],
+ "openssl": [
+
+ ],
+ "apache2": [
+
+ ]
+ },
+ "recommendations": {
+ },
+ "long_description": "= DESCRIPTION:\n\nInstalls and configures Drupal; it creates the drupal db user, db password and the database;\nYou will need to manually complete the installation step by visiting http://<server_fqdn>/install.php\n\n= REQUIREMENTS:\n\n== Platform:\n\nTested on Ubuntu 10.04, Debian Lenny. As long as the required cookbooks work (apache, php, mysql) it\nshould work just fine on any other distributions.\n\n== Cookbooks:\n\nOpscode cookbooks (http://github.com/opscode/cookbooks/tree/master)\n\n* mysql\n* php\n* apache2\n* openssl (used to generate the secure random drupal db password)\n\n= ATTRIBUTES:\n\n* drupal[:version] - version of drupal to download and install (default: 6.19)\n* drupal[:checksum] - sha256sum of the source tarball\n* drupal[:dir] - location to copy the drupal files. (default: /var/www/drupal)\n* drupal[:db][:database] - drupal database (default: drupal)\n* drupal[:db][:user] - drupal db user (default: drupal)\n* drupal[:db][:password] - drupal db password (randomly generated if not defined)\n* drupal[:src] - where to place the drupal source tarball (default: Chef::Config[:file_cache_path])\n\n* drupal[:drush][:version] - version of drush to download (default: 3.3)\n* drupal[:drush][:checksum] - sha256sum of the drush tarball\n* drupal[:drush][:dir] - where to install the drush file. (default: /usr/local/drush)\n\n= USAGE:\n\nInclude the drupal recipe to install drupal on your system; this will enable also the drupal cron:\n\n include_recipe \"drupal\"\n\nInclude the drush recipe to install drush:\n \n include_recipe \"drupal::drush\"\n\nIf you want to install a different version you just have to customize the version attribute and checksum \n(sha256 checksum on the source)\n\n= LICENSE and AUTHOR:\n\nAuthor:: Marius Ducea (marius@promethost.com)\n\nCopyright:: 2010, Promet Solutions\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
+ "suggestions": {
+ },
+ "platforms": {
+ "debian": [
+
+ ],
+ "ubuntu": [
+
+ ]
+ },
+ "license": "Apache 2.0",
+ "version": "0.2.0",
+ "conflicting": {
+ },
+ "name": "drupal",
+ "providing": {
+ },
+ "description": "Installs/Configures drupal",
+ "maintainer": "Promet Solutions"
+ }
18 metadata.rb
@@ -0,0 +1,18 @@
+maintainer "Promet Solutions"
+maintainer_email "marius@promethost.com"
+license "Apache 2.0"
+description "Installs/Configures drupal"
+long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
+version "0.2.0"
+recipe "drupal", "Installs and configures Drupal"
+recipe "drupal::cron", "Sets up the default drupal cron"
+recipe "drupal::drush", "Installs drush - a command line shell and scripting interface for Drupal"
+
+%w{ php apache2 mysql openssl }.each do |cb|
+ depends cb
+end
+
+%w{ debian ubuntu }.each do |os|
+ supports os
+end
+
25 recipes/cron.rb
@@ -0,0 +1,25 @@
+#
+# Author:: Marius Ducea (marius@promethost.com)
+# Cookbook Name:: drupal
+# Recipe:: cron
+#
+# Copyright 2010, Promet Solutions
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+cron "drupal hourly cron" do
+ command "cd #{node[:drupal][:dir]}; /usr/bin/php cron.php"
+ minute "0"
+ only_if { File.exist?("#{node[:drupal][:dir]}/cron.php") }
+end
107 recipes/default.rb
@@ -0,0 +1,107 @@
+#
+# Author:: Marius Ducea (marius@promethost.com)
+# Cookbook Name:: drupal
+# Recipe:: default
+#
+# Copyright 2010, Promet Solutions
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+include_recipe "apache2"
+include_recipe %w{php::php5 php::module_mysql}
+include_recipe "mysql::server"
+Gem.clear_paths
+require 'mysql'
+
+execute "mysql-install-drupal-privileges" do
+ command "/usr/bin/mysql -u root -p#{node[:mysql][:server_root_password]} < /etc/mysql/drupal-grants.sql"
+ action :nothing
+end
+
+template "/etc/mysql/drupal-grants.sql" do
+ path "/etc/mysql/drupal-grants.sql"
+ source "grants.sql.erb"
+ owner "root"
+ group "root"
+ mode "0600"
+ variables(
+ :user => node[:drupal][:db][:user],
+ :password => node[:drupal][:db][:password],
+ :database => node[:drupal][:db][:database]
+ )
+ notifies :run, resources(:execute => "mysql-install-drupal-privileges"), :immediately
+end
+
+execute "create #{node[:drupal][:db][:database]} database" do
+ command "/usr/bin/mysqladmin -u root -p#{node[:mysql][:server_root_password]} create #{node[:drupal][:db][:database]}"
+ not_if do
+ m = Mysql.new("localhost", "root", node[:mysql][:server_root_password])
+ m.list_dbs.include?(node[:drupal][:db][:database])
+ end
+end
+
+#install drupal
+remote_file "#{node[:drupal][:src]}/drupal-#{node[:drupal][:version]}.tar.gz" do
+ checksum node[:drupal][:checksum]
+ source "http://ftp.drupal.org/files/projects/drupal-#{node[:drupal][:version]}.tar.gz"
+ mode "0644"
+end
+
+directory "#{node[:drupal][:dir]}" do
+ owner "root"
+ group "root"
+ mode "0755"
+ action :create
+end
+
+execute "untar-drupal" do
+ cwd node[:drupal][:dir]
+ command "tar --strip-components 1 -xzf #{node[:drupal][:src]}/drupal-#{node[:drupal][:version]}.tar.gz"
+ creates "#{node[:drupal][:dir]}/index.php"
+end
+
+if node.has_key?("ec2")
+ server_fqdn = node.ec2.public_hostname
+else
+ server_fqdn = node.fqdn
+end
+
+log "Navigate to 'http://#{server_fqdn}/install.php' to complete the drupal installation" do
+ action :nothing
+end
+
+directory "#{node[:drupal][:dir]}/sites/default/files" do
+ mode "0777"
+ action :create
+end
+
+template "#{node[:drupal][:dir]}/sites/default/settings.php" do
+ source "settings.php.erb"
+ mode "0644"
+ variables(
+ :database => node[:drupal][:db][:database],
+ :user => node[:drupal][:db][:user],
+ :password => node[:drupal][:db][:password]
+ )
+ notifies :write, resources(:log => "Navigate to 'http://#{server_fqdn}/install.php' to complete the drupal installation")
+end
+
+web_app "drupal" do
+ template "drupal.conf.erb"
+ docroot "#{node[:drupal][:dir]}"
+ server_name server_fqdn
+ server_aliases node.fqdn
+end
+
+include_recipe "drupal::cron"
50 recipes/drush.rb
@@ -0,0 +1,50 @@
+#
+# Author:: Marius Ducea (marius@promethost.com)
+# Cookbook Name:: drupal
+# Recipe:: drush
+#
+# Copyright 2010, Promet Solutions
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+include_recipe %w{php::php5 php::module_mysql}
+
+remote_file "#{node[:drupal][:src]}/drush-6.x-#{node[:drupal][:drush][:version]}.tar.gz" do
+ checksum node[:drupal][:drush][:checksum]
+ source "http://ftp.drupal.org/files/projects/drush-6.x-#{node[:drupal][:drush][:version]}.tar.gz"
+ mode "0644"
+end
+
+directory "#{node[:drupal][:drush][:dir]}" do
+ owner "root"
+ group "root"
+ mode "0755"
+ action :create
+end
+
+execute "untar-drush" do
+ cwd node[:drupal][:drush][:dir]
+ command "tar --strip-components 1 -xzf #{node[:drupal][:src]}/drush-6.x-#{node[:drupal][:drush][:version]}.tar.gz"
+ not_if "/usr/local/bin/drush status drush-version --pipe | grep #{node[:drupal][:drush][:version]}"
+end
+
+link "/usr/local/bin/drush" do
+ to "#{node[:drupal][:drush][:dir]}/drush"
+end
+
+execute "install-drush-make" do
+ cwd node[:drupal][:drush][:dir]
+ command "/usr/local/bin/drush dl drush_make"
+ not_if { File.directory?("/root/.drush/drush_make")}
+end
18 templates/default/drupal.conf.erb
@@ -0,0 +1,18 @@
+<VirtualHost *:80>
+ ServerName <%= @params[:server_name] %>
+ ServerAlias <% @params[:server_aliases].each do |a| %><%= "#{a}" %> <% end %>
+ DocumentRoot <%= @params[:docroot] %>
+
+ <Directory <%= @params[:docroot] %>>
+ Options FollowSymLinks
+ Order allow,deny
+ Allow from all
+ </Directory>
+
+ ErrorLog <%= @node[:apache][:log_dir] %>/<%= @params[:name] %>-error.log
+ CustomLog <%= @node[:apache][:log_dir] %>/<%= @params[:name] %>-access.log combined
+
+ <IfModule mod_rewrite.c>
+ RewriteEngine On
+ </IfModule>
+</VirtualHost>
3 templates/default/grants.sql.erb
@@ -0,0 +1,3 @@
+GRANT ALL ON <%= @database %>.* TO '<%= @user %>'@'%' IDENTIFIED BY '<%= @password %>';
+
+FLUSH PRIVILEGES;
239 templates/default/settings.php.erb
@@ -0,0 +1,239 @@
+<?php
+// $Id: default.settings.php,v 1.8.2.4 2009/09/14 12:59:18 goba Exp $
+
+/**
+ * @file
+ * Drupal site-specific configuration file.
+ *
+ * IMPORTANT NOTE:
+ * This file may have been set to read-only by the Drupal installation
+ * program. If you make changes to this file, be sure to protect it again
+ * after making your modifications. Failure to remove write permissions
+ * to this file is a security risk.
+ *
+ * The configuration file to be loaded is based upon the rules below.
+ *
+ * The configuration directory will be discovered by stripping the
+ * website's hostname from left to right and pathname from right to
+ * left. The first configuration file found will be used and any
+ * others will be ignored. If no other configuration file is found
+ * then the default configuration file at 'sites/default' will be used.
+ *
+ * For example, for a fictitious site installed at
+ * http://www.drupal.org/mysite/test/, the 'settings.php'
+ * is searched in the following directories:
+ *
+ * 1. sites/www.drupal.org.mysite.test
+ * 2. sites/drupal.org.mysite.test
+ * 3. sites/org.mysite.test
+ *
+ * 4. sites/www.drupal.org.mysite
+ * 5. sites/drupal.org.mysite
+ * 6. sites/org.mysite
+ *
+ * 7. sites/www.drupal.org
+ * 8. sites/drupal.org
+ * 9. sites/org
+ *
+ * 10. sites/default
+ *
+ * If you are installing on a non-standard port number, prefix the
+ * hostname with that number. For example,
+ * http://www.drupal.org:8080/mysite/test/ could be loaded from
+ * sites/8080.www.drupal.org.mysite.test/.
+ */
+
+/**
+ * Database settings:
+ *
+ * Note that the $db_url variable gets parsed using PHP's built-in
+ * URL parser (i.e. using the "parse_url()" function) so make sure
+ * not to confuse the parser. If your username, password
+ * or database name contain characters used to delineate
+ * $db_url parts, you can escape them via URI hex encodings:
+ *
+ * : = %3a / = %2f @ = %40
+ * + = %2b ( = %28 ) = %29
+ * ? = %3f = = %3d & = %26
+ *
+ * To specify multiple connections to be used in your site (i.e. for
+ * complex custom modules) you can also specify an associative array
+ * of $db_url variables with the 'default' element used until otherwise
+ * requested.
+ *
+ * You can optionally set prefixes for some or all database table names
+ * by using the $db_prefix setting. If a prefix is specified, the table
+ * name will be prepended with its value. Be sure to use valid database
+ * characters only, usually alphanumeric and underscore. If no prefixes
+ * are desired, leave it as an empty string ''.
+ *
+ * To have all database names prefixed, set $db_prefix as a string:
+ *
+ * $db_prefix = 'main_';
+ *
+ * To provide prefixes for specific tables, set $db_prefix as an array.
+ * The array's keys are the table names and the values are the prefixes.
+ * The 'default' element holds the prefix for any tables not specified
+ * elsewhere in the array. Example:
+ *
+ * $db_prefix = array(
+ * 'default' => 'main_',
+ * 'users' => 'shared_',
+ * 'sessions' => 'shared_',
+ * 'role' => 'shared_',
+ * 'authmap' => 'shared_',
+ * );
+ *
+ * Database URL format:
+ * $db_url = 'mysql://username:password@localhost/databasename';
+ * $db_url = 'mysqli://username:password@localhost/databasename';
+ * $db_url = 'pgsql://username:password@localhost/databasename';
+ */
+$db_url = 'mysql://<%= @user %>:<%= @password %>@localhost/<%= @database %>';
+$db_prefix = '';
+
+/**
+ * Access control for update.php script
+ *
+ * If you are updating your Drupal installation using the update.php script
+ * being not logged in as administrator, you will need to modify the access
+ * check statement below. Change the FALSE to a TRUE to disable the access
+ * check. After finishing the upgrade, be sure to open this file again
+ * and change the TRUE back to a FALSE!
+ */
+$update_free_access = FALSE;
+
+/**
+ * Base URL (optional).
+ *
+ * If you are experiencing issues with different site domains,
+ * uncomment the Base URL statement below (remove the leading hash sign)
+ * and fill in the absolute URL to your Drupal installation.
+ *
+ * You might also want to force users to use a given domain.
+ * See the .htaccess file for more information.
+ *
+ * Examples:
+ * $base_url = 'http://www.example.com';
+ * $base_url = 'http://www.example.com:8888';
+ * $base_url = 'http://www.example.com/drupal';
+ * $base_url = 'https://www.example.com:8888/drupal';
+ *
+ * It is not allowed to have a trailing slash; Drupal will add it
+ * for you.
+ */
+# $base_url = 'http://www.example.com'; // NO trailing slash!
+
+/**
+ * PHP settings:
+ *
+ * To see what PHP settings are possible, including whether they can
+ * be set at runtime (ie., when ini_set() occurs), read the PHP
+ * documentation at http://www.php.net/manual/en/ini.php#ini.list
+ * and take a look at the .htaccess file to see which non-runtime
+ * settings are used there. Settings defined here should not be
+ * duplicated there so as to avoid conflict issues.
+ */
+ini_set('arg_separator.output', '&amp;');
+ini_set('magic_quotes_runtime', 0);
+ini_set('magic_quotes_sybase', 0);
+ini_set('session.cache_expire', 200000);
+ini_set('session.cache_limiter', 'none');
+ini_set('session.cookie_lifetime', 2000000);
+ini_set('session.gc_maxlifetime', 200000);
+ini_set('session.save_handler', 'user');
+ini_set('session.use_cookies', 1);
+ini_set('session.use_only_cookies', 1);
+ini_set('session.use_trans_sid', 0);
+ini_set('url_rewriter.tags', '');
+
+/**
+ * If you encounter a situation where users post a large amount of text, and
+ * the result is stripped out upon viewing but can still be edited, Drupal's
+ * output filter may not have sufficient memory to process it. If you
+ * experience this issue, you may wish to uncomment the following two lines
+ * and increase the limits of these variables. For more information, see
+ * http://php.net/manual/en/pcre.configuration.php.
+ */
+# ini_set('pcre.backtrack_limit', 200000);
+# ini_set('pcre.recursion_limit', 200000);
+
+/**
+ * Drupal automatically generates a unique session cookie name for each site
+ * based on on its full domain name. If you have multiple domains pointing at
+ * the same Drupal site, you can either redirect them all to a single domain
+ * (see comment in .htaccess), or uncomment the line below and specify their
+ * shared base domain. Doing so assures that users remain logged in as they
+ * cross between your various domains.
+ */
+# $cookie_domain = 'example.com';
+
+/**
+ * Variable overrides:
+ *
+ * To override specific entries in the 'variable' table for this site,
+ * set them here. You usually don't need to use this feature. This is
+ * useful in a configuration file for a vhost or directory, rather than
+ * the default settings.php. Any configuration setting from the 'variable'
+ * table can be given a new value. Note that any values you provide in
+ * these variable overrides will not be modifiable from the Drupal
+ * administration interface.
+ *
+ * Remove the leading hash signs to enable.
+ */
+# $conf = array(
+# 'site_name' => 'My Drupal site',
+# 'theme_default' => 'minnelli',
+# 'anonymous' => 'Visitor',
+/**
+ * A custom theme can be set for the off-line page. This applies when the site
+ * is explicitly set to off-line mode through the administration page or when
+ * the database is inactive due to an error. It can be set through the
+ * 'maintenance_theme' key. The template file should also be copied into the
+ * theme. It is located inside 'modules/system/maintenance-page.tpl.php'.
+ * Note: This setting does not apply to installation and update pages.
+ */
+# 'maintenance_theme' => 'minnelli',
+/**
+ * reverse_proxy accepts a boolean value.
+ *
+ * Enable this setting to determine the correct IP address of the remote
+ * client by examining information stored in the X-Forwarded-For headers.
+ * X-Forwarded-For headers are a standard mechanism for identifying client
+ * systems connecting through a reverse proxy server, such as Squid or
+ * Pound. Reverse proxy servers are often used to enhance the performance
+ * of heavily visited sites and may also provide other site caching,
+ * security or encryption benefits. If this Drupal installation operates
+ * behind a reverse proxy, this setting should be enabled so that correct
+ * IP address information is captured in Drupal's session management,
+ * logging, statistics and access management systems; if you are unsure
+ * about this setting, do not have a reverse proxy, or Drupal operates in
+ * a shared hosting environment, this setting should be set to disabled.
+ */
+# 'reverse_proxy' => TRUE,
+/**
+ * reverse_proxy accepts an array of IP addresses.
+ *
+ * Each element of this array is the IP address of any of your reverse
+ * proxies. Filling this array Drupal will trust the information stored
+ * in the X-Forwarded-For headers only if Remote IP address is one of
+ * these, that is the request reaches the web server from one of your
+ * reverse proxies. Otherwise, the client could directly connect to
+ * your web server spoofing the X-Forwarded-For headers.
+ */
+# 'reverse_proxy_addresses' => array('a.b.c.d', ...),
+# );
+
+/**
+ * String overrides:
+ *
+ * To override specific strings on your site with or without enabling locale
+ * module, add an entry to this list. This functionality allows you to change
+ * a small number of your site's default English language interface strings.
+ *
+ * Remove the leading hash signs to enable.
+ */
+# $conf['locale_custom_strings_en'] = array(
+# 'forum' => 'Discussion board',
+# '@count min' => '@count minutes',
+# );

0 comments on commit 518e8fd

Please sign in to comment.