You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This script attempts to automatically match and grant (via setfacl) permissions for PHP-FPM-USER (as known, process owner or website-user) along with their associated Nginx Cache Paths.
24
+
# If it cannot automatically match the PHP-FPM-USER along with their associated Nginx Cache Path, it offers an easy manual setup option with the 'manual-configs.nginx' file.
25
+
# Mainly, in case your current web server setup involves two distinct users, WEBSERVER-USER (nginx or www-data) and PHP-FPM-USER,
26
+
# the solution proposed by this script involves combining Linux server side tools 'inotifywait' with 'setfacl' to automatically grant write permissions to the PHP-FPM-USER
27
+
# for the corresponding Nginx Cache Paths (listening cache events), which are matched either automatically or via a manual configuration file.
28
+
# This approach is an alternative to external Nginx modules like Cache Purge module for purge operations.
29
+
# This script create npp-wordpress sytemd service to manage grant permission for purge and preload actions.
30
+
31
+
# After completing the setup (whether automatic or manual), you can manage the automatically created
32
+
# 'npp-wordpress' systemd service on the WP admin dashboard NPP plugin settings page.
33
+
# This allows you to start and stop inotifywait/setfacl operations (via systemd) for Nginx Cache Path directly
34
+
# from the front-end for associated PHP-FPM-USER
30
35
31
36
# Manual setup instructions
32
37
manual_setup() {
@@ -237,7 +242,8 @@ find_create_includedir() {
237
242
# By granting these permissions, the goal is to allow the 'npp-wordpress' systemd service to be controlled directly from the WordPress admin dashboard, enhancing operational flexibility and automation.
238
243
# This automation enhances security by limiting sudo access to only specific systemd service management tasks.
239
244
# After successful integration NPP users will be able to manage (start, stop, status) the 'npp-wordpress' systemd service on WP admin dashboard NPP plugin settings page.
240
-
# This implementation not restrictly necessarry for functional cache purge & preload actions, but it is nice to have this ability that control main plugin systemd service 'npp-wordpress' on WP admin dashboard.
245
+
# This implementation not restrictly necessarry for functional cache purge & preload actions and not breaks default setup process,
246
+
# but it is nice to have this ability that control main plugin systemd service 'npp-wordpress' on WP admin dashboard.
0 commit comments