This commit is contained in:
cronekorkn 2024-10-14 20:58:20 +02:00
parent 116689223e
commit f94fb0f720
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw
2 changed files with 4 additions and 1 deletions

View file

@ -1,6 +1,6 @@
pid /var/run/nginx.pid;
user www-data;
worker_processes 10;
worker_processes ${worker_processes};
% for module in sorted(modules):
load_module modules/ngx_${module}_module.so;
@ -22,6 +22,8 @@ http {
tcp_nopush on;
client_max_body_size 32G;
ssl_dhparam "/etc/ssl/certs/dhparam.pem";
# dont show nginx version
server_tokens off;
% if node.has_bundle('php'):
upstream php-handler {

View file

@ -32,6 +32,7 @@ files = {
'content_type': 'mako',
'context': {
'modules': node.metadata.get('nginx/modules'),
'worker_processes': node.metadata.get('vm/cores'),
},
'triggers': {
'svc_systemd:nginx:restart',