service/templates/nginx.conf.j2

37 lines
678 B
Plaintext
Raw Normal View History

# worker_processes 1;
daemon off;
worker_rlimit_nofile 1024;
events {
worker_connections 800;
}
http {
error_log /var/log/{{ id | replace("/", "_") }}_error.log warn;
access_log /var/log/{{ id | replace("/", "_") }}_access.log;
include /etc/nginx/mime.types;
default_type application/octet-stream;
index index.html index.htm index.xhtml;
fastcgi_param HTTP_PROXY "";
keepalive_timeout 65;
server_tokens off;
{% for user in consumers["www"] %}
server {
listen {{ port(user.id) }} ;
listen [::]:{{ port(user.id) }} ;
server_name {{ user.domain }} ;
location / {
root {{ user.root }} ;
}
}
{% endfor %}
}