ajenti-v icon indicating copy to clipboard operation
ajenti-v copied to clipboard

[Feature Request] Allowing to edit templates' default values

Open Ardakilic opened this issue 10 years ago • 12 comments

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,

Ardakilic avatar Sep 28 '14 20:09 Ardakilic

+1

jadsonlourenco avatar Sep 28 '14 20:09 jadsonlourenco

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.

Ardakilic avatar Sep 28 '14 20:09 Ardakilic

+1

SerhanKarakaya avatar Oct 01 '14 09:10 SerhanKarakaya

+1, I need to set the sendfile directive to off.

wvteijlingen avatar Oct 08 '14 12:10 wvteijlingen

+1 !

flayks avatar Apr 03 '15 14:04 flayks

+1

overpod avatar Jul 06 '15 10:07 overpod

+1

diegorivera avatar Nov 05 '15 18:11 diegorivera

+1

ramazansubasi avatar Apr 02 '16 20:04 ramazansubasi

+1

noizo avatar Apr 02 '16 23:04 noizo

+1

SergkeiM avatar May 28 '16 17:05 SergkeiM

four years later, still +1

w-biggs avatar Feb 07 '18 06:02 w-biggs

+1

pfz avatar Mar 12 '18 21:03 pfz