1
0
Fork 0
mirror of https://github.com/DO1JLR/ansible_role_nginx.git synced 2024-08-16 16:19:48 +02:00
ansible_role_nginx/templates/nginx/nginx.conf.j2

55 lines
1.1 KiB
Text
Raw Permalink Normal View History

2021-10-18 00:42:23 +02:00
{{ ansible_managed | comment }}
user {{ nginx__user }};
2020-11-02 04:51:35 +01:00
worker_processes auto;
pid /run/nginx.pid;
error_log /var/log/nginx/error.log;
include /usr/share/nginx/modules/*.conf;
events {
2021-10-04 22:09:39 +02:00
worker_connections 1024;
2020-11-02 04:51:35 +01:00
}
http {
2021-10-04 22:09:39 +02:00
access_log /var/log/nginx/access.log;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
server_tokens off;
gzip on;
gzip_min_length 256;
2021-10-05 01:04:56 +02:00
gzip_vary on;
2021-10-04 22:09:39 +02:00
gzip_types
application/atom+xml
application/geo+json
application/javascript
application/x-javascript
application/json
application/ld+json
application/manifest+json
application/rdf+xml
application/rss+xml
application/xhtml+xml
application/xml
font/eot
font/otf
font/ttf
image/svg+xml
text/css
text/javascript
text/plain
text/xml;
include /etc/nginx/mime.types;
default_type application/octet-stream;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
2020-11-02 04:51:35 +01:00
}