Page MenuHomeDevCentral

D3305.id8512.diff
No OneTemporary

D3305.id8512.diff

diff --git a/pillar/paas/alkane/windriver/drive.sls b/pillar/paas/alkane/windriver/drive.sls
new file mode 100644
--- /dev/null
+++ b/pillar/paas/alkane/windriver/drive.sls
@@ -0,0 +1,41 @@
+# -------------------------------------------------------------
+# Salt — PaaS Alkane :: PHP and static sites [development]
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Site: https://drive.nasqueron.org/
+# -------------------------------------------------------------
+
+web_aliases:
+ services:
+ - &db-B 172.27.27.9
+
+# -------------------------------------------------------------
+# PHP sites
+#
+# Username must be unique and use max 31 characters.
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+web_php_sites:
+ drive.nasqueron.org:
+ domain: nasqueron.org
+ subdomain: drive
+ user: web-org-nasqueron-drive
+ php-fpm: prod
+ php_flags:
+ opcache.save_comments: on
+ opcache.validate_timestamp: off
+ php_values:
+ opcache.jit: 1255
+ opcache.jit_buffer_size: 128M
+
+ env:
+ DB_HOST: *db-B
+ DB_NAME: nextcloud_windriver
+
+ # Per NextCloud documentation
+ HOSTNAME: $HOSTNAME
+ PATH: /usr/local/bin:/usr/bin:/bin
+ TMP: /tmp
+ TMPDIR: /tmp
+ TEMP: /tmp
diff --git a/roles/webserver-alkane/php/files/php-fpm-pool.conf b/roles/webserver-alkane/php/files/php-fpm-pool.conf
--- a/roles/webserver-alkane/php/files/php-fpm-pool.conf
+++ b/roles/webserver-alkane/php/files/php-fpm-pool.conf
@@ -36,6 +36,14 @@
php_flag[display_startup_errors] = {{ display_errors }}
php_admin_flag[log_errors] = on
+{% for key, value in php_flags.items() -%}
+php_flag[{{ key }}] = {{ value }}
+{% endfor -%}
+
+{% for key, value in php_values.items() -%}
+php_value[{{ key }}] = {{ value }}
+{% endfor -%}
+
{% if 'wordpress' in capabilities -%}
; Allow Wordpress to process large images
php_value[memory_limit] = 1024M
diff --git a/roles/webserver-alkane/php/php-fpm.sls b/roles/webserver-alkane/php/php-fpm.sls
--- a/roles/webserver-alkane/php/php-fpm.sls
+++ b/roles/webserver-alkane/php/php-fpm.sls
@@ -51,6 +51,8 @@
user: {{ site['user' ] }}
display_errors: {{ site['display_errors'] | default('off') }}
slow_delay: {{ site['slow_delay'] | default('5s') }}
+ php_flags: {{ site['php_flags'] | default({}) }}
+ php_values: {{ site['php_values'] | default({}) }}
env : {{ site['env'] | default({}) }}
capabilities: {{ site['capabilities'] | default([]) }}

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 22, 01:33 (14 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2589019
Default Alt Text
D3305.id8512.diff (2 KB)

Event Timeline