2024-01-03 15:46:28 +01:00
|
|
|
{% if nginx_matomo_tracking | bool %}
|
2023-11-23 15:36:38 +01:00
|
|
|
load_module /usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so;
|
2024-01-03 15:46:28 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2020-12-24 14:27:31 +01:00
|
|
|
worker_processes auto;
|
|
|
|
|
|
|
|
events
|
|
|
|
{
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
http
|
|
|
|
{
|
|
|
|
include mime.types;
|
|
|
|
default_type text/html;
|
2021-01-02 10:39:20 +01:00
|
|
|
|
|
|
|
# caching
|
2021-01-02 11:26:23 +01:00
|
|
|
proxy_cache_path /tmp/cache levels=1:2 keys_zone=cache:20m max_size=20g inactive=14d use_temp_path=off;
|
2021-01-02 10:39:20 +01:00
|
|
|
|
|
|
|
# logs
|
2021-01-01 23:45:04 +01:00
|
|
|
access_log syslog:server=unix:/dev/log;
|
2020-12-31 13:40:53 +01:00
|
|
|
error_log syslog:server=unix:/dev/log;
|
2021-01-02 10:39:20 +01:00
|
|
|
|
2020-12-24 14:27:31 +01:00
|
|
|
sendfile on;
|
|
|
|
keepalive_timeout 65;
|
2021-01-02 10:02:17 +01:00
|
|
|
|
|
|
|
# gzip
|
2020-12-24 14:27:31 +01:00
|
|
|
gzip on;
|
2021-01-01 21:44:34 +01:00
|
|
|
gzip_proxied any;
|
|
|
|
gzip_vary on;
|
2021-01-02 10:02:17 +01:00
|
|
|
gzip_disable "MSIE [1-6]\.(?!.*SV1)"; # Disable for Internetexplorer 6
|
|
|
|
gzip_comp_level 4;
|
|
|
|
gzip_min_length 256;
|
|
|
|
gzip_types application/atom+xml application/javascript application/xml+rss application/x-javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy text/javascript text/xml;
|
|
|
|
|
2020-12-24 14:27:31 +01:00
|
|
|
types_hash_max_size 4096;
|
2023-12-12 12:32:35 +01:00
|
|
|
include {{nginx_upstreams_directory}}*.conf;
|
|
|
|
include {{nginx_maps_directory}}*.conf;
|
|
|
|
include {{nginx_servers_directory}}*.conf;
|
2020-12-24 14:27:31 +01:00
|
|
|
}
|