ajenti-v
ajenti-v copied to clipboard
[Feature Request] Allowing to edit templates' default values
Hello,
I've been using Ajenti-v for only couple of days, but already loving so far!
I've a request, I hope this is considered.
I'd love to have a section to edit default values in templates.
E.g: I wanted to edit worker_connections
in nxinx.conf
, and there was no place to edit.
nginx.conf
suggests me to add custom values for environment in /etc/nginx.custom.events.d/*.conf;
. I've added a worker_connections value, but then, because it's already in the template, nginx config test failed, and I couldn't restart the server. I had to edit manually from /var/lib/ajenti/plugins/vh-nginx/nginx_templates.py
.
I'd be awesome if there was at least a textarea for users holding the template to edit these variables.
I'd appreciate if this is considered. Thanks, Kind Regards,
+1
I was going to add a new question, but since question is written for general templates, here comes my another issue regarding this:
I want to use a same pool that I've set with all the servers (virtualhosts) with Nginx, php-fpm, to keep them under control. I know a custom socket can be set over advanced section of the content, but I want to edit the global pool, which I could not find a section to edit to.
In short, this is what I want to edit (pm, start and children services etc.)
[global-pool]
user = www-data
group = www-data
listen = /var/run/php-fcgi.sock
listen.owner = www-data
listen.group = www-data
listen.mode = 0660
pm = dynamic
pm.start_servers = 1
pm.max_children = 5
pm.min_spare_servers = 1
pm.max_spare_servers = 5
Currently, the only way is to edit /var/lib/ajenti/plugins/vh-php-fpm/phpfpm.py
manually, which would be reset after an ajenti update.
+1
+1, I need to set the sendfile
directive to off
.
+1 !
+1
+1
+1
+1
+1
four years later, still +1
+1