Mercurial Hosting > luan
diff host/startup/nginx/nginx.conf.luan @ 1632:0344a535b1db
add doc
author | fffilimonov |
---|---|
date | Tue, 14 Dec 2021 07:41:01 +0000 |
parents | |
children | 32c6b085bb83 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/host/startup/nginx/nginx.conf.luan Tue Dec 14 07:41:01 2021 +0000 @@ -0,0 +1,30 @@ +local rootDir, user, group = ... + +%> +worker_processes 4; +user <%=user%> <%=group%>; + +events { + worker_connections 4096; +} + +http { + include mime.types; + default_type application/octet-stream; + sendfile on; + keepalive_timeout 65; + + proxy_cache_path <%=rootDir%>/local/nginx_cache levels=1:2 keys_zone=nginx_cache:60m max_size=10g inactive=60m use_temp_path=off; + + upstream luan { + server 127.0.0.1:8080; + } + + server { + listen 80 default_server; + include nginx.default.conf; + } + + include <%=rootDir%>/sites/*/nginx.ssl.conf; +} +<%