initial commit
This commit is contained in:
1
angie/conf/acme/path.conf
Normal file
1
angie/conf/acme/path.conf
Normal file
@@ -0,0 +1 @@
|
||||
acme_client_path /run/ngx/lib/acme;
|
5
angie/conf/brotli/buffers.conf
Normal file
5
angie/conf/brotli/buffers.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
brotli_comp_level 5; # default: 6
|
||||
brotli_window 128k; # default: 512k
|
||||
|
||||
brotli_min_length 1024;
|
||||
brotli_buffers 32 16k;
|
9
angie/conf/brotli/types.conf.j2
Normal file
9
angie/conf/brotli/types.conf.j2
Normal file
@@ -0,0 +1,9 @@
|
||||
{%- set mime_types = j2cfg.compress_types or [] -%}
|
||||
{%- set mime_types = mime_types | any_to_str_list | uniq_str_list -%}
|
||||
{%- if mime_types -%}
|
||||
brotli_types
|
||||
{%- for t in mime_types %}
|
||||
{{ t }}
|
||||
{%- endfor %}
|
||||
;
|
||||
{%- endif -%}
|
1
angie/conf/core-quic-bpf.conf
Normal file
1
angie/conf/core-quic-bpf.conf
Normal file
@@ -0,0 +1 @@
|
||||
quic_bpf on;
|
1
angie/conf/core_ev-accept-mutex-delay.conf
Normal file
1
angie/conf/core_ev-accept-mutex-delay.conf
Normal file
@@ -0,0 +1 @@
|
||||
accept_mutex_delay 200ms;
|
1
angie/conf/core_ev-accept-mutex.conf
Normal file
1
angie/conf/core_ev-accept-mutex.conf
Normal file
@@ -0,0 +1 @@
|
||||
accept_mutex on;
|
1
angie/conf/core_ev-multi-accept.conf
Normal file
1
angie/conf/core_ev-multi-accept.conf
Normal file
@@ -0,0 +1 @@
|
||||
multi_accept on;
|
4
angie/conf/fastcgi/buffers.conf
Normal file
4
angie/conf/fastcgi/buffers.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
fastcgi_buffers 16 16k;
|
||||
fastcgi_buffer_size 16k;
|
||||
fastcgi_busy_buffers_size 32k;
|
||||
fastcgi_temp_file_write_size 32k;
|
14
angie/conf/fastcgi/cache-bypass.conf.j2
Normal file
14
angie/conf/fastcgi/cache-bypass.conf.j2
Normal file
@@ -0,0 +1,14 @@
|
||||
{%- set cache_bypass = j2cfg.cache_bypass or [] -%}
|
||||
{%- if cache_bypass -%}
|
||||
## disable (response) cache under following conditions
|
||||
fastcgi_cache_bypass
|
||||
{%- for v in cache_bypass %}
|
||||
{{ v | ngx_esc }}
|
||||
{%- endfor %}
|
||||
;
|
||||
fastcgi_no_cache
|
||||
{%- for v in cache_bypass %}
|
||||
{{ v | ngx_esc }}
|
||||
{%- endfor %}
|
||||
;
|
||||
{%- endif -%}
|
2
angie/conf/fastcgi/headers.conf
Normal file
2
angie/conf/fastcgi/headers.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
include snip/fastcgi-request-headers;
|
||||
include snip/fastcgi-response-headers;
|
7
angie/conf/fastcgi/param.conf
Normal file
7
angie/conf/fastcgi/param.conf
Normal file
@@ -0,0 +1,7 @@
|
||||
include snip/fastcgi.conf;
|
||||
|
||||
fastcgi_param PATH_INFO $path_info;
|
||||
|
||||
fastcgi_param AUTH_USER $remote_user;
|
||||
fastcgi_param REMOTE_USER $remote_user;
|
||||
fastcgi_param HTTP_HOST $host;
|
1
angie/conf/fastcgi/temp.conf
Normal file
1
angie/conf/fastcgi/temp.conf
Normal file
@@ -0,0 +1 @@
|
||||
fastcgi_temp_path /run/ngx/cache/temp_fastcgi 2 2;
|
1
angie/conf/grpc/buffers.conf
Normal file
1
angie/conf/grpc/buffers.conf
Normal file
@@ -0,0 +1 @@
|
||||
grpc_buffer_size 16k;
|
2
angie/conf/grpc/headers.conf
Normal file
2
angie/conf/grpc/headers.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
include snip/grpc-request-headers;
|
||||
include snip/grpc-response-headers;
|
7
angie/conf/grpc/ssl.conf.j2
Normal file
7
angie/conf/grpc/ssl.conf.j2
Normal file
@@ -0,0 +1,7 @@
|
||||
{%- for k, v in j2cfg.tls.conf_cmd|dictsort %}
|
||||
grpc_ssl_conf_command {{ k }} {{ v | ngx_esc }};
|
||||
{%- endfor %}
|
||||
|
||||
grpc_ssl_trusted_certificate {{ env.NGX_SSL_CERT_FILE }};
|
||||
grpc_ssl_verify on;
|
||||
grpc_ssl_server_name on;
|
4
angie/conf/gzip/buffers.conf
Normal file
4
angie/conf/gzip/buffers.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
gzip_comp_level 2; # default: 1
|
||||
|
||||
gzip_min_length 1024;
|
||||
gzip_buffers 32 16k;
|
1
angie/conf/gzip/proxied.conf
Normal file
1
angie/conf/gzip/proxied.conf
Normal file
@@ -0,0 +1 @@
|
||||
gzip_proxied any;
|
9
angie/conf/gzip/types.conf.j2
Normal file
9
angie/conf/gzip/types.conf.j2
Normal file
@@ -0,0 +1,9 @@
|
||||
{%- set mime_types = j2cfg.compress_types or [] -%}
|
||||
{%- set mime_types = mime_types | any_to_str_list | uniq_str_list -%}
|
||||
{%- if mime_types -%}
|
||||
gzip_types
|
||||
{%- for t in mime_types %}
|
||||
{{ t }}
|
||||
{%- endfor %}
|
||||
;
|
||||
{%- endif -%}
|
1
angie/conf/gzip/vary.conf
Normal file
1
angie/conf/gzip/vary.conf
Normal file
@@ -0,0 +1 @@
|
||||
gzip_vary on;
|
1
angie/conf/http-acme.conf
Normal file
1
angie/conf/http-acme.conf
Normal file
@@ -0,0 +1 @@
|
||||
include conf/acme/*.conf;
|
1
angie/conf/http-brotli-static.conf
Normal file
1
angie/conf/http-brotli-static.conf
Normal file
@@ -0,0 +1 @@
|
||||
brotli_static on;
|
2
angie/conf/http-brotli.conf
Normal file
2
angie/conf/http-brotli.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
include conf/brotli/*.conf;
|
||||
brotli on;
|
1
angie/conf/http-fastcgi.conf
Normal file
1
angie/conf/http-fastcgi.conf
Normal file
@@ -0,0 +1 @@
|
||||
include conf/fastcgi/*.conf;
|
1
angie/conf/http-grpc.conf
Normal file
1
angie/conf/http-grpc.conf
Normal file
@@ -0,0 +1 @@
|
||||
include conf/grpc/*.conf;
|
2
angie/conf/http-gunzip.conf
Normal file
2
angie/conf/http-gunzip.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
gunzip_buffers 16 16k;
|
||||
gunzip on;
|
1
angie/conf/http-gzip-static.conf
Normal file
1
angie/conf/http-gzip-static.conf
Normal file
@@ -0,0 +1 @@
|
||||
gzip_static on;
|
2
angie/conf/http-gzip.conf
Normal file
2
angie/conf/http-gzip.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
include conf/gzip/*.conf;
|
||||
gzip on;
|
4
angie/conf/http-modsecurity.conf
Normal file
4
angie/conf/http-modsecurity.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
modsecurity_rules_file modsecurity/rules.conf;
|
||||
|
||||
## NOT enabling ModSecurity by default!
|
||||
# modsecurity on;
|
1
angie/conf/http-njs.conf
Normal file
1
angie/conf/http-njs.conf
Normal file
@@ -0,0 +1 @@
|
||||
include conf/njs/*.conf;
|
1
angie/conf/http-perl.conf
Normal file
1
angie/conf/http-perl.conf
Normal file
@@ -0,0 +1 @@
|
||||
include conf/perl/*.conf;
|
2
angie/conf/http-proxy.conf
Normal file
2
angie/conf/http-proxy.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
include conf/proxy/*.conf;
|
||||
include conf/proxy-http/*.conf;
|
5
angie/conf/http-quic-gso.conf.j2
Normal file
5
angie/conf/http-quic-gso.conf.j2
Normal file
@@ -0,0 +1,5 @@
|
||||
quic_gso on;
|
||||
|
||||
{%- if env.NGX_HTTP_PROXY == '1' %}
|
||||
proxy_quic_gso on;
|
||||
{%- endif %}
|
1
angie/conf/http-scgi.conf
Normal file
1
angie/conf/http-scgi.conf
Normal file
@@ -0,0 +1 @@
|
||||
include conf/scgi/*.conf;
|
25
angie/conf/http-ssl.conf.j2
Normal file
25
angie/conf/http-ssl.conf.j2
Normal file
@@ -0,0 +1,25 @@
|
||||
include conf/ssl/*.conf;
|
||||
|
||||
## lowering from 16k to 4k to improve time-to-first-byte
|
||||
ssl_buffer_size 4k;
|
||||
|
||||
{%- if env.NGX_HTTP_SSL_PROFILE %}
|
||||
include snip/ssl-{{ env.NGX_HTTP_SSL_PROFILE }};
|
||||
{%- endif %}
|
||||
|
||||
{%- if j2cfg.tls.stapling.enable %}
|
||||
ssl_stapling on;
|
||||
{%- if j2cfg.tls.stapling.verify %}
|
||||
ssl_stapling_verify on;
|
||||
{%- else %}
|
||||
ssl_stapling_verify off;
|
||||
{%- endif %}
|
||||
{%- if j2cfg.tls.stapling.file %}
|
||||
ssl_stapling_file {{ j2cfg.tls.stapling.file | ngx_esc }};
|
||||
{%- endif %}
|
||||
{%- if j2cfg.tls.stapling.responder %}
|
||||
ssl_stapling_responder {{ j2cfg.tls.stapling.responder | ngx_esc }};
|
||||
{%- endif %}
|
||||
{%- else %}
|
||||
ssl_stapling off;
|
||||
{%- endif %}
|
1
angie/conf/http-uwsgi.conf
Normal file
1
angie/conf/http-uwsgi.conf
Normal file
@@ -0,0 +1 @@
|
||||
include conf/uwsgi/*.conf;
|
2
angie/conf/http-v2.conf
Normal file
2
angie/conf/http-v2.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
include conf/http2/*.conf;
|
||||
http2 on;
|
2
angie/conf/http-v3.conf
Normal file
2
angie/conf/http-v3.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
include conf/http3/*.conf;
|
||||
http3 on;
|
1
angie/conf/http-zstd-static.conf
Normal file
1
angie/conf/http-zstd-static.conf
Normal file
@@ -0,0 +1 @@
|
||||
zstd_static on;
|
2
angie/conf/http-zstd.conf
Normal file
2
angie/conf/http-zstd.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
include conf/zstd/*.conf;
|
||||
zstd on;
|
2
angie/conf/http2/param.conf
Normal file
2
angie/conf/http2/param.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
http2_chunk_size 16k;
|
||||
http2_body_preread_size 64k;
|
9
angie/conf/http3/param.conf.j2
Normal file
9
angie/conf/http3/param.conf.j2
Normal file
@@ -0,0 +1,9 @@
|
||||
http3_max_concurrent_streams 128; #default
|
||||
http3_stream_buffer_size 64k; #default
|
||||
quic_active_connection_id_limit 3;
|
||||
|
||||
{%- if env.NGX_HTTP_PROXY == '1' %}
|
||||
proxy_http3_max_concurrent_streams 128; #default
|
||||
proxy_http3_stream_buffer_size 64k; #default
|
||||
proxy_quic_active_connection_id_limit 3;
|
||||
{%- endif %}
|
5
angie/conf/mail-ssl.conf.j2
Normal file
5
angie/conf/mail-ssl.conf.j2
Normal file
@@ -0,0 +1,5 @@
|
||||
include conf/ssl/*.conf;
|
||||
|
||||
{%- if env.NGX_MAIL_SSL_PROFILE %}
|
||||
include snip/ssl-{{ env.NGX_MAIL_SSL_PROFILE }};
|
||||
{%- endif %}
|
1
angie/conf/njs/path.conf
Normal file
1
angie/conf/njs/path.conf
Normal file
@@ -0,0 +1 @@
|
||||
js_path site;
|
1
angie/conf/njs/tls-ca-file.conf.in
Normal file
1
angie/conf/njs/tls-ca-file.conf.in
Normal file
@@ -0,0 +1 @@
|
||||
js_fetch_trusted_certificate ${NGX_SSL_CERT_FILE};
|
1
angie/conf/perl/path.conf
Normal file
1
angie/conf/perl/path.conf
Normal file
@@ -0,0 +1 @@
|
||||
perl_modules site;
|
4
angie/conf/proxy-http/buffers.conf
Normal file
4
angie/conf/proxy-http/buffers.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
proxy_buffers 16 16k;
|
||||
proxy_buffer_size 16k;
|
||||
proxy_busy_buffers_size 32k;
|
||||
proxy_temp_file_write_size 32k;
|
14
angie/conf/proxy-http/cache-bypass.conf.j2
Normal file
14
angie/conf/proxy-http/cache-bypass.conf.j2
Normal file
@@ -0,0 +1,14 @@
|
||||
{%- set cache_bypass = j2cfg.cache_bypass or [] -%}
|
||||
{%- if cache_bypass -%}
|
||||
## disable (response) cache under following conditions
|
||||
proxy_cache_bypass
|
||||
{%- for v in cache_bypass %}
|
||||
{{ v | ngx_esc }}
|
||||
{%- endfor %}
|
||||
;
|
||||
proxy_no_cache
|
||||
{%- for v in cache_bypass %}
|
||||
{{ v | ngx_esc }}
|
||||
{%- endfor %}
|
||||
;
|
||||
{%- endif -%}
|
2
angie/conf/proxy-http/headers.conf
Normal file
2
angie/conf/proxy-http/headers.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
include snip/proxy-request-headers;
|
||||
include snip/proxy-response-headers;
|
1
angie/conf/proxy-http/temp.conf
Normal file
1
angie/conf/proxy-http/temp.conf
Normal file
@@ -0,0 +1 @@
|
||||
proxy_temp_path /run/ngx/cache/temp_proxy 2 2;
|
1
angie/conf/proxy-http/version.conf
Normal file
1
angie/conf/proxy-http/version.conf
Normal file
@@ -0,0 +1 @@
|
||||
proxy_http_version 1.1;
|
0
angie/conf/proxy-stream/.gitkeep
Normal file
0
angie/conf/proxy-stream/.gitkeep
Normal file
7
angie/conf/proxy/ssl.conf.j2
Normal file
7
angie/conf/proxy/ssl.conf.j2
Normal file
@@ -0,0 +1,7 @@
|
||||
{%- for k, v in j2cfg.tls.conf_cmd|dictsort %}
|
||||
proxy_ssl_conf_command {{ k }} {{ v | ngx_esc }};
|
||||
{%- endfor %}
|
||||
|
||||
proxy_ssl_trusted_certificate {{ env.NGX_SSL_CERT_FILE }};
|
||||
proxy_ssl_verify on;
|
||||
proxy_ssl_server_name on;
|
4
angie/conf/scgi/buffers.conf
Normal file
4
angie/conf/scgi/buffers.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
scgi_buffers 16 16k;
|
||||
scgi_buffer_size 16k;
|
||||
scgi_busy_buffers_size 32k;
|
||||
scgi_temp_file_write_size 32k;
|
14
angie/conf/scgi/cache-bypass.conf.j2
Normal file
14
angie/conf/scgi/cache-bypass.conf.j2
Normal file
@@ -0,0 +1,14 @@
|
||||
{%- set cache_bypass = j2cfg.cache_bypass or [] -%}
|
||||
{%- if cache_bypass -%}
|
||||
## disable (response) cache under following conditions
|
||||
scgi_cache_bypass
|
||||
{%- for v in cache_bypass %}
|
||||
{{ v | ngx_esc }}
|
||||
{%- endfor %}
|
||||
;
|
||||
scgi_no_cache
|
||||
{%- for v in cache_bypass %}
|
||||
{{ v | ngx_esc }}
|
||||
{%- endfor %}
|
||||
;
|
||||
{%- endif -%}
|
2
angie/conf/scgi/headers.conf
Normal file
2
angie/conf/scgi/headers.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
include snip/scgi-request-headers;
|
||||
include snip/scgi-response-headers;
|
7
angie/conf/scgi/param.conf
Normal file
7
angie/conf/scgi/param.conf
Normal file
@@ -0,0 +1,7 @@
|
||||
include snip/scgi_params;
|
||||
|
||||
scgi_param PATH_INFO $path_info;
|
||||
|
||||
scgi_param AUTH_USER $remote_user;
|
||||
scgi_param REMOTE_USER $remote_user;
|
||||
scgi_param HTTP_HOST $host;
|
1
angie/conf/scgi/temp.conf
Normal file
1
angie/conf/scgi/temp.conf
Normal file
@@ -0,0 +1 @@
|
||||
scgi_temp_path /run/ngx/cache/temp_scgi 2 2;
|
3
angie/conf/ssl/cmd.conf.j2
Normal file
3
angie/conf/ssl/cmd.conf.j2
Normal file
@@ -0,0 +1,3 @@
|
||||
{%- for k, v in j2cfg.tls.conf_cmd|dictsort %}
|
||||
ssl_conf_command {{ k }} {{ v | ngx_esc }};
|
||||
{%- endfor %}
|
1
angie/conf/stream-njs.conf
Normal file
1
angie/conf/stream-njs.conf
Normal file
@@ -0,0 +1 @@
|
||||
include conf/njs/*.conf;
|
2
angie/conf/stream-proxy.conf
Normal file
2
angie/conf/stream-proxy.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
include conf/proxy/*.conf;
|
||||
include conf/proxy-stream/*.conf;
|
5
angie/conf/stream-ssl.conf.j2
Normal file
5
angie/conf/stream-ssl.conf.j2
Normal file
@@ -0,0 +1,5 @@
|
||||
include conf/ssl/*.conf;
|
||||
|
||||
{%- if env.NGX_STREAM_SSL_PROFILE %}
|
||||
include snip/ssl-{{ env.NGX_STREAM_SSL_PROFILE }};
|
||||
{%- endif %}
|
4
angie/conf/uwsgi/buffers.conf
Normal file
4
angie/conf/uwsgi/buffers.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
uwsgi_buffers 16 16k;
|
||||
uwsgi_buffer_size 16k;
|
||||
uwsgi_busy_buffers_size 32k;
|
||||
uwsgi_temp_file_write_size 32k;
|
14
angie/conf/uwsgi/cache-bypass.conf.j2
Normal file
14
angie/conf/uwsgi/cache-bypass.conf.j2
Normal file
@@ -0,0 +1,14 @@
|
||||
{%- set cache_bypass = j2cfg.cache_bypass or [] -%}
|
||||
{%- if cache_bypass -%}
|
||||
## disable (response) cache under following conditions
|
||||
uwsgi_cache_bypass
|
||||
{%- for v in cache_bypass %}
|
||||
{{ v | ngx_esc }}
|
||||
{%- endfor %}
|
||||
;
|
||||
uwsgi_no_cache
|
||||
{%- for v in cache_bypass %}
|
||||
{{ v | ngx_esc }}
|
||||
{%- endfor %}
|
||||
;
|
||||
{%- endif -%}
|
2
angie/conf/uwsgi/headers.conf
Normal file
2
angie/conf/uwsgi/headers.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
include snip/uwsgi-request-headers;
|
||||
include snip/uwsgi-response-headers;
|
7
angie/conf/uwsgi/param.conf
Normal file
7
angie/conf/uwsgi/param.conf
Normal file
@@ -0,0 +1,7 @@
|
||||
include snip/uwsgi_params;
|
||||
|
||||
uwsgi_param PATH_INFO $path_info;
|
||||
|
||||
uwsgi_param AUTH_USER $remote_user;
|
||||
uwsgi_param REMOTE_USER $remote_user;
|
||||
uwsgi_param HTTP_HOST $host;
|
7
angie/conf/uwsgi/ssl.conf.j2
Normal file
7
angie/conf/uwsgi/ssl.conf.j2
Normal file
@@ -0,0 +1,7 @@
|
||||
{%- for k, v in j2cfg.tls.conf_cmd|dictsort %}
|
||||
uwsgi_ssl_conf_command {{ k }} {{ v | ngx_esc }};
|
||||
{%- endfor %}
|
||||
|
||||
uwsgi_ssl_trusted_certificate {{ env.NGX_SSL_CERT_FILE }};
|
||||
uwsgi_ssl_verify on;
|
||||
uwsgi_ssl_server_name on;
|
1
angie/conf/uwsgi/temp.conf
Normal file
1
angie/conf/uwsgi/temp.conf
Normal file
@@ -0,0 +1 @@
|
||||
uwsgi_temp_path /run/ngx/cache/temp_uwsgi 2 2;
|
4
angie/conf/zstd/buffers.conf
Normal file
4
angie/conf/zstd/buffers.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
zstd_comp_level 2; # default: 1
|
||||
|
||||
zstd_min_length 1024;
|
||||
zstd_buffers 32 16k;
|
9
angie/conf/zstd/types.conf.j2
Normal file
9
angie/conf/zstd/types.conf.j2
Normal file
@@ -0,0 +1,9 @@
|
||||
{%- set mime_types = j2cfg.compress_types or [] -%}
|
||||
{%- set mime_types = mime_types | any_to_str_list | uniq_str_list -%}
|
||||
{%- if mime_types -%}
|
||||
zstd_types
|
||||
{%- for t in mime_types %}
|
||||
{{ t }}
|
||||
{%- endfor %}
|
||||
;
|
||||
{%- endif -%}
|
Reference in New Issue
Block a user