initial commit
This commit is contained in:
15
angie/angie.conf
Normal file
15
angie/angie.conf
Normal file
@@ -0,0 +1,15 @@
|
||||
daemon off;
|
||||
pid /run/ngx/angie.pid;
|
||||
|
||||
include mod-core.conf;
|
||||
# mod-http.conf
|
||||
# mod-mail.conf
|
||||
# mod-stream.conf
|
||||
include /run/ngx/conf.ctx/mod-*.conf;
|
||||
|
||||
include ctx-core_ev.conf;
|
||||
include ctx-core.conf;
|
||||
# ctx-http.conf
|
||||
# ctx-mail.conf
|
||||
# ctx-stream.conf
|
||||
include /run/ngx/conf.ctx/ctx-*.conf;
|
4
angie/autoconf/core-error-log.conf.j2
Normal file
4
angie/autoconf/core-error-log.conf.j2
Normal file
@@ -0,0 +1,4 @@
|
||||
{%- import 'snip/log.j2mod' as ngx_log -%}
|
||||
|
||||
{# {{ ngx_log.error_log(dest='error.log', level=env.NGX_LOGLEVEL) }} #}
|
||||
{{ ngx_log.error_log(level=env.NGX_LOGLEVEL) }}
|
2
angie/autoconf/core-lock-file.conf
Normal file
2
angie/autoconf/core-lock-file.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
## not a real file but prefix for filenames
|
||||
lock_file /run/ngx/lock/a;
|
1
angie/autoconf/core-pcre-jit.conf
Normal file
1
angie/autoconf/core-pcre-jit.conf
Normal file
@@ -0,0 +1 @@
|
||||
pcre_jit on;
|
3
angie/autoconf/core-user.conf.in
Normal file
3
angie/autoconf/core-user.conf.in
Normal file
@@ -0,0 +1,3 @@
|
||||
## if container is running in non-privileged mode,
|
||||
## then this file is going to be removed by /image-entry/75-adjust-core-user.sh
|
||||
user ${NGX_USER} ${NGX_GROUP};
|
31
angie/autoconf/core-worker-env.conf.j2
Normal file
31
angie/autoconf/core-worker-env.conf.j2
Normal file
@@ -0,0 +1,31 @@
|
||||
{# TODO: investigate error with "include" #}
|
||||
{# {%- include 'core-worker-env.j2inc' -%} #}
|
||||
{%- set w_env = ( j2cfg.core_worker_env or [] ) | any_to_env_dict -%}
|
||||
{#- NB: "TZ" is always provided by Angie itself -#}
|
||||
{%- set w_vars_passthrough = w_env | dict_empty_keys | list_diff(env_vars_preserve + ['TZ']) -%}
|
||||
{%- set vars_passthrough = (env_vars_passthrough + w_vars_passthrough) | uniq | list_intersect(env | dict_keys) -%}
|
||||
|
||||
## NB: "TZ" is always provided by Angie itself
|
||||
|
||||
## preserve
|
||||
{%- for k in env_vars_preserve %}
|
||||
env {{ k | ngx_esc }};
|
||||
{%- endfor %}
|
||||
|
||||
## passthrough
|
||||
{%- for k in vars_passthrough %}
|
||||
env {{ k | ngx_esc }};
|
||||
{%- endfor %}
|
||||
|
||||
{%- set w_vars_override = w_env | dict_non_empty_keys -%}
|
||||
{% if w_vars_override %}
|
||||
## WARNING!
|
||||
## explicit environment variables are NOT implemented
|
||||
## reason: envs are supported only for http_perl but not for http_js/stream_js
|
||||
## solution: provide environment variables explicitly
|
||||
## and then list them in "core_worker_env" key in config
|
||||
##
|
||||
{%- for k in w_vars_override %}
|
||||
## env {{ "{}={}".format(k, w_env[k]) | ngx_esc }}
|
||||
{%- endfor %}
|
||||
{%- endif %}
|
4
angie/autoconf/core-worker-env.j2inc
Normal file
4
angie/autoconf/core-worker-env.j2inc
Normal file
@@ -0,0 +1,4 @@
|
||||
{%- set w_env = ( j2cfg.core_worker_env or [] ) | any_to_env_dict -%}
|
||||
{#- NB: "TZ" is always provided by Angie itself -#}
|
||||
{%- set w_vars_passthrough = w_env | dict_empty_keys | list_diff(env_vars_preserve + ['TZ']) -%}
|
||||
{%- set vars_passthrough = (env_vars_passthrough + w_vars_passthrough) | uniq | list_intersect(env | dict_keys) -%}
|
12
angie/autoconf/core-worker-env.txt.j2
Normal file
12
angie/autoconf/core-worker-env.txt.j2
Normal file
@@ -0,0 +1,12 @@
|
||||
{# TODO: investigate error with "include" #}
|
||||
{# {%- include 'core-worker-env.j2inc' -%} #}
|
||||
{%- set w_env = ( j2cfg.core_worker_env or [] ) | any_to_env_dict -%}
|
||||
{#- NB: "TZ" is always provided by Angie itself -#}
|
||||
{%- set w_vars_passthrough = w_env | dict_empty_keys | list_diff(env_vars_preserve + ['TZ']) -%}
|
||||
{%- set vars_passthrough = (env_vars_passthrough + w_vars_passthrough) | uniq | list_intersect(env | dict_keys) -%}
|
||||
|
||||
{#- NB: "TZ" is always provided by Angie itself -#}
|
||||
{%- set all_vars = (env_vars_preserve + vars_passthrough + ['TZ']) | uniq -%}
|
||||
{%- for k in all_vars %}
|
||||
{{ k | ngx_esc }}
|
||||
{%- endfor %}
|
10
angie/autoconf/core-worker.conf.j2
Normal file
10
angie/autoconf/core-worker.conf.j2
Normal file
@@ -0,0 +1,10 @@
|
||||
worker_processes {{ env.NGX_WORKER_PROCESSES }};
|
||||
{%- if env.NGX_WORKER_CPU_AFFINITY %}
|
||||
worker_cpu_affinity {{ env.NGX_WORKER_CPU_AFFINITY }};
|
||||
{%- endif %}
|
||||
{%- if env.NGX_WORKER_PRIORITY %}
|
||||
worker_priority {{ env.NGX_WORKER_PRIORITY }};
|
||||
{%- endif %}
|
||||
{%- if env.NGX_WORKER_RLIMIT_NOFILE %}
|
||||
worker_rlimit_nofile {{ env.NGX_WORKER_RLIMIT_NOFILE }};
|
||||
{%- endif %}
|
7
angie/autoconf/core_ev-worker.conf.j2
Normal file
7
angie/autoconf/core_ev-worker.conf.j2
Normal file
@@ -0,0 +1,7 @@
|
||||
worker_connections {{ env.NGX_WORKER_CONNECTIONS }};
|
||||
{%- if env.NGX_WORKER_AIO_REQUESTS %}
|
||||
worker_aio_requests {{ env.NGX_WORKER_AIO_REQUESTS }};
|
||||
{%- endif %}
|
||||
{%- if env.NGX_WORKER_PRIORITY %}
|
||||
worker_priority {{ env.NGX_WORKER_PRIORITY }};
|
||||
{%- endif %}
|
2
angie/autoconf/http-access-log.conf
Normal file
2
angie/autoconf/http-access-log.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
include autoconf/http-access-log/format/*.conf;
|
||||
include autoconf/http-access-log/*.conf;
|
4
angie/autoconf/http-access-log/default.conf.j2
Normal file
4
angie/autoconf/http-access-log/default.conf.j2
Normal file
@@ -0,0 +1,4 @@
|
||||
{%- import 'snip/log.j2mod' as ngx_log -%}
|
||||
|
||||
{# {{ ngx_log.access_log(dest='access.log', format='main') }} #}
|
||||
{{ ngx_log.access_log(format='main') }}
|
7
angie/autoconf/http-access-log/format/extended.conf
Normal file
7
angie/autoconf/http-access-log/format/extended.conf
Normal file
@@ -0,0 +1,7 @@
|
||||
log_format extended
|
||||
'$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" rt="$request_time" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for" '
|
||||
'h="$host" sn="$server_name" ru="$request_uri" u="$uri" '
|
||||
'ucs="$upstream_cache_status" ua="$upstream_addr" us="$upstream_status" '
|
||||
'uct="$upstream_connect_time" urt="$upstream_response_time"';
|
4
angie/autoconf/http-access-log/format/main.conf
Normal file
4
angie/autoconf/http-access-log/format/main.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
log_format main
|
||||
'$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
1
angie/autoconf/http-alt-svc.conf
Normal file
1
angie/autoconf/http-alt-svc.conf
Normal file
@@ -0,0 +1 @@
|
||||
include snip/http-alt-svc;
|
4
angie/autoconf/http-buffers.conf
Normal file
4
angie/autoconf/http-buffers.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
subrequest_output_buffer_size 16k;
|
||||
client_body_buffer_size 16k;
|
||||
client_header_buffer_size 4k;
|
||||
large_client_header_buffers 8 16k;
|
1
angie/autoconf/http-client-body-temp.conf
Normal file
1
angie/autoconf/http-client-body-temp.conf
Normal file
@@ -0,0 +1 @@
|
||||
client_body_temp_path /run/ngx/cache/temp_client_body 2 2;
|
3
angie/autoconf/http-max-ranges.conf.j2
Normal file
3
angie/autoconf/http-max-ranges.conf.j2
Normal file
@@ -0,0 +1,3 @@
|
||||
{%- if env.NGX_HTTP_MAX_RANGES %}
|
||||
max_ranges {{ env.NGX_HTTP_MAX_RANGES }};
|
||||
{%- endif %}
|
8
angie/autoconf/http-mime-types.conf
Normal file
8
angie/autoconf/http-mime-types.conf
Normal file
@@ -0,0 +1,8 @@
|
||||
include snip/mime.types;
|
||||
|
||||
types {
|
||||
font/ttf ttf;
|
||||
application/font-sfnt otf;
|
||||
}
|
||||
|
||||
default_type application/octet-stream;
|
26
angie/autoconf/http-request-headers-basic.conf.j2
Normal file
26
angie/autoconf/http-request-headers-basic.conf.j2
Normal file
@@ -0,0 +1,26 @@
|
||||
map $http_upgrade
|
||||
$req_connection
|
||||
{
|
||||
default upgrade;
|
||||
"" "";
|
||||
}
|
||||
|
||||
map $http_user_agent
|
||||
$req_user_agent
|
||||
{
|
||||
default $http_user_agent;
|
||||
{%- if env.NGX_HTTP_FAKE_UA %}
|
||||
## merely fake
|
||||
"" {{ env.NGX_HTTP_FAKE_UA | ngx_esc }};
|
||||
{%- else %}
|
||||
"" "Angie/$angie_version";
|
||||
{%- endif %}
|
||||
}
|
||||
|
||||
map $http_accept
|
||||
$req_accept
|
||||
{
|
||||
volatile;
|
||||
default $http_accept;
|
||||
"" "*/*";
|
||||
}
|
27
angie/autoconf/http-request-headers-forwarded.conf
Normal file
27
angie/autoconf/http-request-headers-forwarded.conf
Normal file
@@ -0,0 +1,27 @@
|
||||
## ref:
|
||||
## - https://www.digitalocean.com/community/tools/nginx?domains.0.reverseProxy.reverseProxy=true
|
||||
map $remote_addr
|
||||
$proxy_forwarded_elem
|
||||
{
|
||||
## IPv4 addresses can be sent as-is
|
||||
~^[0-9.]+$ "for=$remote_addr";
|
||||
## IPv6 addresses need to be bracketed and quoted
|
||||
~^[0-9A-Fa-f:.]+$ "for=\"[$remote_addr]\"";
|
||||
## Unix domain socket names cannot be represented in RFC 7239 syntax
|
||||
default "for=unknown";
|
||||
}
|
||||
|
||||
## ref:
|
||||
## - https://www.digitalocean.com/community/tools/nginx?domains.0.reverseProxy.reverseProxy=true
|
||||
## - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded
|
||||
map $http_forwarded
|
||||
$proxy_add_forwarded
|
||||
{
|
||||
volatile;
|
||||
|
||||
## if the incoming Forwarded header is syntactically valid, append to it
|
||||
"~^(,[ \\t]*)*([!#$%&'*+.^_`|~0-9A-Za-z-]+=([!#$%&'*+.^_`|~0-9A-Za-z-]+|\"([\\t \\x21\\x23-\\x5B\\x5D-\\x7E\\x80-\\xFF]|\\\\[\\t \\x21-\\x7E\\x80-\\xFF])*\"))?(;([!#$%&'*+.^_`|~0-9A-Za-z-]+=([!#$%&'*+.^_`|~0-9A-Za-z-]+|\"([\\t \\x21\\x23-\\x5B\\x5D-\\x7E\\x80-\\xFF]|\\\\[\\t \\x21-\\x7E\\x80-\\xFF])*\"))?)*([ \\t]*,([ \\t]*([!#$%&'*+.^_`|~0-9A-Za-z-]+=([!#$%&'*+.^_`|~0-9A-Za-z-]+|\"([\\t \\x21\\x23-\\x5B\\x5D-\\x7E\\x80-\\xFF]|\\\\[\\t \\x21-\\x7E\\x80-\\xFF])*\"))?(;([!#$%&'*+.^_`|~0-9A-Za-z-]+=([!#$%&'*+.^_`|~0-9A-Za-z-]+|\"([\\t \\x21\\x23-\\x5B\\x5D-\\x7E\\x80-\\xFF]|\\\\[\\t \\x21-\\x7E\\x80-\\xFF])*\"))?)*)?)*$" "$http_forwarded, $proxy_forwarded_elem";
|
||||
|
||||
## otherwise, replace it
|
||||
default "$proxy_forwarded_elem";
|
||||
}
|
2
angie/autoconf/http-resolver.conf.j2
Normal file
2
angie/autoconf/http-resolver.conf.j2
Normal file
@@ -0,0 +1,2 @@
|
||||
{%- set resolver_status_zone = 'http_resolver' -%}
|
||||
{% include 'snip/resolver.j2inc' %}
|
1
angie/autoconf/http-response-headers.conf
Normal file
1
angie/autoconf/http-response-headers.conf
Normal file
@@ -0,0 +1 @@
|
||||
include snip/http-response-headers;
|
3
angie/autoconf/http-v2.conf.j2
Normal file
3
angie/autoconf/http-v2.conf.j2
Normal file
@@ -0,0 +1,3 @@
|
||||
{%- if env.NGX_HTTP_V2 == '0' %}
|
||||
http2 off;
|
||||
{%- endif %}
|
3
angie/autoconf/http-v3.conf.j2
Normal file
3
angie/autoconf/http-v3.conf.j2
Normal file
@@ -0,0 +1,3 @@
|
||||
{%- if env.NGX_HTTP_V3 == '0' %}
|
||||
http3 off;
|
||||
{%- endif %}
|
1
angie/autoconf/http-webroot.conf
Normal file
1
angie/autoconf/http-webroot.conf
Normal file
@@ -0,0 +1 @@
|
||||
root static;
|
2
angie/autoconf/mail-resolver.conf.j2
Normal file
2
angie/autoconf/mail-resolver.conf.j2
Normal file
@@ -0,0 +1,2 @@
|
||||
{%- set resolver_status_zone = 'mail_resolver' -%}
|
||||
{% include 'snip/resolver.j2inc' %}
|
2
angie/autoconf/stream-resolver.conf.j2
Normal file
2
angie/autoconf/stream-resolver.conf.j2
Normal file
@@ -0,0 +1,2 @@
|
||||
{%- set resolver_status_zone = 'stream_resolver' -%}
|
||||
{% include 'snip/resolver.j2inc' %}
|
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 -%}
|
2
angie/ctx-core.conf
Normal file
2
angie/ctx-core.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
include autoconf/core-*.conf;
|
||||
include /run/ngx/conf.load/core-*.conf;
|
4
angie/ctx-core_ev.conf
Normal file
4
angie/ctx-core_ev.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
events {
|
||||
include autoconf/core_ev-*.conf;
|
||||
include /run/ngx/conf.load/core_ev-*.conf;
|
||||
}
|
5
angie/ctx-http.conf
Normal file
5
angie/ctx-http.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
http {
|
||||
include autoconf/http-*.conf;
|
||||
include /run/ngx/conf.load/http-*.conf;
|
||||
include site/http-*.conf;
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user