summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rwxr-xr-xetc/global_config.php.sample57
-rwxr-xr-xetc/nginx/crm.conf.sample44
-rwxr-xr-xetc/nginx/global.conf.sample28
-rwxr-xr-xetc/nginx/wiki.conf.sample44
-rwxr-xr-xetc/php-fpm/crm.conf.sample61
-rwxr-xr-xetc/php-fpm/wiki.conf.sample60
6 files changed, 294 insertions, 0 deletions
diff --git a/etc/global_config.php.sample b/etc/global_config.php.sample
new file mode 100755
index 00000000..705f7812
--- /dev/null
+++ b/etc/global_config.php.sample
@@ -0,0 +1,57 @@
+<?php
+# ----
+# Copyright (C) 2013-2020 - Reevo Project (http://reevo.org)
+# License: Affero GPL version 3 - http://www.gnu.org/licenses/agpl.html
+# ----
+
+## ES: Defina el usuario y contraseña para acceder a las DBs
+## EN: Define user and password to access DBs
+
+$REEVO_PATH = "/srv/reevo-2020";
+$REEVO_URL = "reevo.test";
+$REEVO_URL_CRM = "reevo.org";
+
+$REEVO_PROTOCOL = "http";
+
+$REEVO_DB_USER = "";
+$REEVO_DB_PASS = "";
+
+$REEVO_DB_WIKI = "reevo2020_wiki";
+$REEVO_DB_WP = "reevo2020_wp";
+$REEVO_DB_CRM = "reevo2020_crm";
+
+$REEVO_WIKI_API_USER = "";
+$REEVO_WIKI_API_PASS = "";
+
+## Variables de MediaWiki que deben ser secretas
+$wgSitename = "*REEVO TEST";
+$wgServer = "$REEVO_PROTOCOL://$REEVO_URL";
+$wgSecretKey = "";
+$wgAuthenticationTokenVersion = "1";
+$wgUpgradeKey = "";
+$wgPageFormsGoogleMapsKey = "";
+$egMapsGMaps3ApiKey = $wgPageFormsGoogleMapsKey;
+
+## Variables de Wordpress que deben ser secretas
+$WP_REEVO_AUTH_KEY = '';
+$WP_REEVO_SECURE_AUTH_KEY = '';
+$WP_REEVO_LOGGED_IN_KEY = '';
+$WP_REEVO_NONCE_KEY = '';
+$WP_REEVO_AUTH_SALT = '';
+$WP_REEVO_SECURE_AUTH_SALT = '';
+$WP_REEVO_LOGGED_IN_SALT = '';
+$WP_REEVO_NONCE_SALT = '';
+
+####### DEBUG
+if( strpos( $REEVO_URL, 'test' ) !== false) {
+ $wgShowExceptionDetails = true;
+ $wgDebugComments = true;
+ $wgDebugLogFile = "../../log/wiki/mediawiki.log";
+ $wgShowSQLErrors = true;
+ $wgDebugDumpSql = true;
+ $wgShowExceptionDetails= true;
+ $wgShowDBErrorBacktrace = true;
+}
+
+
+?>
diff --git a/etc/nginx/crm.conf.sample b/etc/nginx/crm.conf.sample
new file mode 100755
index 00000000..27754a01
--- /dev/null
+++ b/etc/nginx/crm.conf.sample
@@ -0,0 +1,44 @@
+# ----
+# Copyright (C) 2013-2020 - Reevo (http://reevo.org)
+# License: Affero GPL version 3 - http://www.gnu.org/licenses/agpl.html
+# ES: Este archivos es parte de: reevo-2020 (http://git.reevo.org/reevo/reevo-2020)
+# EN: This file is part of: reevo-2020 (http://git.reevo.org/reevo/reevo-2020)
+# ----
+
+server {
+ server_name crm.example.org example.org;
+ root /srv/reevo-2020/www/crm;
+
+ access_log /srv/reevo-2020/log/crm/nginx.access.log;
+ error_log /srv/reevo-2020/log/crm/nginx.error.log warn;
+
+ index index.html index.htm index.php;
+
+ location ~ \.php$ {
+ # Sitio offline
+ if ($maintenance) { return 503; }
+
+ # Bloquea bots
+ if ($limit_bots) { add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive"; }
+
+ include /etc/nginx/fastcgi_params;
+ fastcgi_pass unix:/srv/reevo-2020/run/crm.socket;
+ fastcgi_index index.php;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ }
+
+ add_header Access-Control-Allow-Origin *;
+ rewrite /wp-admin$ $scheme://$host$uri/ permanent;
+ try_files $uri $uri/ /index.php?$args;
+
+ error_page 503 @maintenance;
+ location @maintenance {
+ rewrite ^(.*)$ /errors/503/index.html break;
+ }
+
+ location /wp-content/plugins/files/civicrm/ {
+ deny all;
+ return 404;
+ }
+
+}
diff --git a/etc/nginx/global.conf.sample b/etc/nginx/global.conf.sample
new file mode 100755
index 00000000..94a501d4
--- /dev/null
+++ b/etc/nginx/global.conf.sample
@@ -0,0 +1,28 @@
+# ----
+# Copyright (C) 2013-2020 - Reevo (http://reevo.org)
+# License: Affero GPL version 3 - http://www.gnu.org/licenses/agpl.html
+# ES: Este archivos es parte de: reevo-web (http://git.reevo.org/reevo/reevo-2020)
+# EN: This file is part of: reevo-2020 (http://git.reevo.org/reevo/reevo-2020)
+# ----
+
+## ES: Modo mantenimiento
+## EN: Maintance mode
+geo $maintenance {
+
+ # ES: cambiar a 1 para entrar en modo mantenimiento
+ # EN: change to 1 to enable maintance mode
+ default 0;
+
+ # ES: listado de IP's con acceso cuando se está en modo mantenimiento
+ # EN: list of allowd IPs in MM
+ # 192.168.56.1 0; # IP en contexto de VM
+}
+
+## ES: No indexar en buscadores
+## EN: Avoid indexing by search engines
+map $http_user_agent $limit_bots {
+
+ # ES: cambiar a 1 para evitar que los sitios sean indexados
+ # EN: change to 1 to avoid indexing
+ default 0;
+}
diff --git a/etc/nginx/wiki.conf.sample b/etc/nginx/wiki.conf.sample
new file mode 100755
index 00000000..210f8686
--- /dev/null
+++ b/etc/nginx/wiki.conf.sample
@@ -0,0 +1,44 @@
+# ----
+# Copyright (C) 2013-2020 - Reevo (http://reevo.org)
+# License: Affero GPL version 3 - http://www.gnu.org/licenses/agpl.html
+# ES: Este archivos es parte de: reevo-web (http://git.reevo.org/reevo/reevo-2020)
+# EN: This file is part of: reevo-2020 (http://git.reevo.org/reevo/reevo-2020)
+# ----
+
+server {
+ server_name example.org ~^(?<subdomain>.+)\.example\.org$;
+ root /srv/reevo-2020/www/wiki;
+
+ index index.php;
+
+ access_log /srv/reevo-2020/log/wiki/nginx.access.log;
+ error_log /srv/reevo-2020/log/wiki/nginx.error.log;
+
+ location / {
+ index index.php;
+ try_files $uri $uri/ @mediawiki;
+ }
+
+ location = /favicon.ico {
+ add_header Cache-Control "public";
+ expires 7d;
+ }
+
+ location = /robots.txt {
+ }
+
+ location @mediawiki {
+ if ($subdomain) {
+ return 301 http://example.org$request_uri#$subdomain;
+ }
+ rewrite ^/([^?]*)(?:\?(.*))? /index.php?title=$1&$2 last;
+ }
+
+ location ~ \.php?$ {
+ include /etc/nginx/fastcgi_params;
+ fastcgi_pass unix:/srv/reevo-2020/run/wiki.socket;
+ fastcgi_index index.php;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ }
+
+}
diff --git a/etc/php-fpm/crm.conf.sample b/etc/php-fpm/crm.conf.sample
new file mode 100755
index 00000000..2c7fd271
--- /dev/null
+++ b/etc/php-fpm/crm.conf.sample
@@ -0,0 +1,61 @@
+; ----
+; Copyright (C) 2013-2020 - Reevo (http://reevo.org)
+; License: Affero GPL version 3 - http://www.gnu.org/licenses/agpl.html
+; ES: Este archivos es parte de: reevo-2020 (http://git.reevo.org/reevo/reevo-2020)
+; EN: This file is part of: reevo-2020 (http://git.reevo.org/reevo/reevo-2020)
+; ----
+
+[crm]
+
+user = reevo
+group = www-data
+
+listen = /srv/reevo-2020/run/$pool.socket
+access.log = /srv/reevo-2020/log/$pool/php_fpm-$pool.access.log
+slowlog = /srv/reevo-2020/log/$pool/php_fpm-$pool.slow.log
+
+listen.owner = reevo
+listen.group = www-data
+listen.mode = 0660
+
+listen.allowed_clients = 127.0.0.1
+
+pm = dynamic
+pm.max_children = 50
+pm.start_servers = 10
+pm.min_spare_servers = 5
+pm.max_spare_servers = 30
+pm.status_path = /.status
+
+ping.path = /.ping
+ping.response = pong $pool.example.org
+
+request_slowlog_timeout = 10
+request_terminate_timeout = 10m
+rlimit_files = 1024
+rlimit_core = 0
+
+chdir = /srv/reevo-2020/www/$pool
+
+catch_workers_output = yes
+
+security.limit_extensions = .php .jpg .png .js .css
+
+env[HOSTNAME] = $pool.example.org
+env[TMP] = /srv/reevo-2020/tmp/$pool
+env[TMPDIR] = /srv/reevo-2020/tmp/$pool
+env[TEMP] = /srv/reevo-2020/tmp/$pool
+
+php_flag[display_errors] = on
+php_admin_value[error_log] = /srv/reevo-2020/log/$pool/php_fpm-$pool.error.log
+php_admin_flag[log_errors] = on
+php_admin_value[memory_limit] = 64M
+
+; upload limits
+php_admin_value[post_max_size] = 12M
+php_admin_value[upload_max_filesize] = 10M
+
+php_admin_value[session.cookie_domain] = .example.org
+php_admin_value[session.save_path] = /srv/reevo-2020/tmp/$pool
+
+php_admin_value[cgi.fix_pathinfo] = 1
diff --git a/etc/php-fpm/wiki.conf.sample b/etc/php-fpm/wiki.conf.sample
new file mode 100755
index 00000000..683d5582
--- /dev/null
+++ b/etc/php-fpm/wiki.conf.sample
@@ -0,0 +1,60 @@
+; ----
+; Copyright (C) 2013-2020 - Reevo (http://reevo.org)
+; License: Affero GPL version 3 - http://www.gnu.org/licenses/agpl.html
+; ES: Este archivos es parte de: reevo-2020 (http://git.reevo.org/reevo/reevo-2020)
+; EN: This file is part of: reevo-2020 (http://git.reevo.org/reevo/reevo-2020)
+; ----
+
+[wiki]
+
+user = reevo
+group = www-data
+
+listen = /srv/reevo-2020/run/$pool.socket
+access.log = /srv/reevo-2020/log/$pool/php_fpm-$pool.access.log
+slowlog = /srv/reevo-2020/log/$pool/php_fpm-$pool.slow.log
+
+listen.owner = reevo
+listen.group = www-data
+listen.mode = 0660
+
+listen.allowed_clients = 127.0.0.1
+
+pm = dynamic
+pm.max_children = 50
+pm.start_servers = 10
+pm.min_spare_servers = 5
+pm.max_spare_servers = 30
+pm.status_path = /.status
+
+ping.path = /.ping
+ping.response = pong $pool.example.org
+
+request_slowlog_timeout = 10
+request_terminate_timeout = 10m
+rlimit_files = 1024
+rlimit_core = 0
+
+chdir = /srv/reevo-2020/www/$pool
+
+catch_workers_output = yes
+
+security.limit_extensions = .php .jpg .png .js .css
+
+env[HOSTNAME] = $pool.example.org
+env[TMP] = /srv/reevo-2020/tmp/$pool
+env[TMPDIR] = /srv/reevo-2020/tmp/$pool
+env[TEMP] = /srv/reevo-2020/tmp/$pool
+
+php_flag[display_errors] = on
+php_admin_value[error_log] = /srv/reevo-2020/log/$pool/php_fpm-$pool.error.log
+php_admin_flag[log_errors] = on
+php_admin_value[memory_limit] = 64M
+
+; upload limits
+php_admin_value[post_max_size] = 12M
+php_admin_value[upload_max_filesize] = 10M
+
+php_admin_value[session.cookie_domain] = .example.org
+
+php_admin_value[cgi.fix_pathinfo] = 1