This repository has been archived on 2023-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
homeserver-ansible/roles/services/webserver/templates/nginx.conf.j2

34 lines
494 B
Plaintext
Raw Permalink Normal View History

user http;
worker_processes 1;
2022-02-27 16:05:34 -05:00
events {
worker_connections 1024;
}
http {
include mime.types;
2022-02-27 16:05:34 -05:00
default_type application/octet-stream;
2022-02-27 16:05:34 -05:00
sendfile on;
tcp_nodelay on;
tcp_nopush on;
2022-02-27 16:05:34 -05:00
keepalive_timeout 65;
types_hash_max_size 4096;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log warn;
2022-02-27 16:05:34 -05:00
gzip on;
gzip_disable "msie6";
2022-02-27 16:05:34 -05:00
include /etc/nginx/conf.d/*.conf;
2022-02-27 16:05:34 -05:00
server {
listen 80 default_server;
2022-02-27 16:05:34 -05:00
server_name _;
2022-02-27 16:05:34 -05:00
return 301 https://$host$request_uri;
}
2022-02-27 16:05:34 -05:00
}