Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F7122620
D3305.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D3305.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 22, 01:51 (15 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2589019
Default Alt Text
D3305.diff (2 KB)
Attached To
Mode
D3305: Configure NextCloud php-fpm pool
Attached
Detach File
Event Timeline
Log In to Comment