apxtrib/adminapi/www/adminapx/conf/nginx.conf.mustache

45 lines
1.8 KiB
Plaintext
Raw Normal View History

2023-04-17 10:03:56 +00:00
user {{{sudoerUser}}};
2023-01-22 09:53:09 +00:00
worker_processes auto;
2023-11-05 11:03:25 +00:00
error_log /var/log/nginx/error.log notice;
2023-01-22 09:53:09 +00:00
pid /var/run/nginx.pid;
#include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
2023-04-13 05:46:35 +00:00
2023-01-22 09:53:09 +00:00
log_format main '[$time_local]##"$http_x_forwarded_for"##"$request" '
'"$http_user_agent"';
log_format mainold '$remote_addr - $remote_user [$time_local] "$request" '
2023-11-05 11:03:25 +00:00
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
log_format track escape=json '{"time":"$time_iso8601","alias":"$sent_http_xalias","uuid":"$sent_http_xuuid",'
'"lg":"$sent_http_xlang","consentcookie":"$sent_http_consentcookie",'
'"request_filename":"$request_filename","request":"$request",'
'"args":"$args","remoteaddr":"$remote_addr","httpxforwardedfor":"$http_x_forwarded_for",'
'"httpreferer":"$http_referer","httpuseragent":"$http_user_agent"}';
#access_log /var/log/nginx/access.log main;
2023-01-22 09:53:09 +00:00
sendfile on;
keepalive_timeout 65;
2023-11-05 11:03:25 +00:00
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 4 32k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/x-font-ttf application/javascript font/eot font/opentype image/svg+xml image/x-icon text/plain;
2023-01-22 09:53:09 +00:00
##
# Virtual Host Configs
##
2023-04-13 05:46:35 +00:00
{{#nginx.include}}
2023-04-17 10:03:56 +00:00
include {{{.}}};
2023-04-13 05:46:35 +00:00
{{/nginx.include}}
2023-01-22 09:53:09 +00:00
}