Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid floating semi-colon on rate-limiting newline #7156

Merged
merged 2 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 40 additions & 80 deletions internal/configs/version2/__snapshots__/templates_test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,7 @@ server {
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
auth_jwt "My Api";
auth_jwt_key_file jwk-secret;
js_var $header_query_value "${http_x_header_name}${http_other_header}${arg_myQuery}${arg_myOtherQuery}";
Expand Down Expand Up @@ -400,8 +399,7 @@ server {
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down Expand Up @@ -749,8 +747,7 @@ server {
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
auth_jwt "My Api";
auth_jwt_key_file jwk-secret;
app_protect_enable on;
Expand Down Expand Up @@ -842,8 +839,7 @@ server {
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down Expand Up @@ -1430,8 +1426,7 @@ server {
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
# server snippet
location /split {
rewrite ^ @split_0 last;
Expand Down Expand Up @@ -1478,8 +1473,7 @@ server {
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down Expand Up @@ -1744,8 +1738,7 @@ server {
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
# server snippet
location /split {
rewrite ^ @split_0 last;
Expand Down Expand Up @@ -1792,8 +1785,7 @@ server {
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down Expand Up @@ -2126,8 +2118,7 @@ server {
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
auth_jwt "My Api";
auth_jwt_key_file jwk-secret;
app_protect_enable on;
Expand Down Expand Up @@ -2210,8 +2201,7 @@ server {
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down Expand Up @@ -2494,8 +2484,7 @@ server {
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
auth_jwt "My Api";
auth_jwt_key_file jwk-secret;
app_protect_enable on;
Expand Down Expand Up @@ -2577,8 +2566,7 @@ server {
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down Expand Up @@ -2918,8 +2906,7 @@ server {
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
auth_jwt "My Api";
auth_jwt_key_file jwk-secret;
app_protect_enable on;
Expand Down Expand Up @@ -3001,8 +2988,7 @@ server {
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down Expand Up @@ -3340,8 +3326,7 @@ server {
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
auth_jwt "My Api";
auth_jwt_key_file jwk-secret;
app_protect_enable on;
Expand Down Expand Up @@ -3423,8 +3408,7 @@ server {
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down Expand Up @@ -3762,8 +3746,7 @@ server {
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
auth_jwt "My Api";
auth_jwt_key_file jwk-secret;
app_protect_enable on;
Expand Down Expand Up @@ -3845,8 +3828,7 @@ server {
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down Expand Up @@ -4184,8 +4166,7 @@ server {
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
auth_jwt "My Api";
auth_jwt_key_file jwk-secret;
app_protect_enable on;
Expand Down Expand Up @@ -4267,8 +4248,7 @@ server {
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down Expand Up @@ -4606,8 +4586,7 @@ server {
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
auth_jwt "My Api";
auth_jwt_key_file jwk-secret;
app_protect_enable on;
Expand Down Expand Up @@ -4689,8 +4668,7 @@ server {
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down Expand Up @@ -5028,8 +5006,7 @@ server {
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
auth_jwt "My Api";
auth_jwt_key_file jwk-secret;
app_protect_enable on;
Expand Down Expand Up @@ -5111,8 +5088,7 @@ server {
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down Expand Up @@ -5450,8 +5426,7 @@ server {
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
auth_jwt "My Api";
auth_jwt_key_file jwk-secret;
app_protect_enable on;
Expand Down Expand Up @@ -5533,8 +5508,7 @@ server {
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down Expand Up @@ -5874,8 +5848,7 @@ server {
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
auth_jwt "My Api";
auth_jwt_key_file jwk-secret;
app_protect_enable on;
Expand Down Expand Up @@ -5957,8 +5930,7 @@ server {
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down Expand Up @@ -6298,8 +6270,7 @@ server {
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
auth_jwt "My Api";
auth_jwt_key_file jwk-secret;
app_protect_enable on;
Expand Down Expand Up @@ -6381,8 +6352,7 @@ server {
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down Expand Up @@ -6722,8 +6692,7 @@ server {
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
auth_jwt "My Api";
auth_jwt_key_file jwk-secret;
app_protect_enable on;
Expand Down Expand Up @@ -6805,8 +6774,7 @@ server {
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down Expand Up @@ -7146,8 +7114,7 @@ server {gunzip on;
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
auth_jwt "My Api";
auth_jwt_key_file jwk-secret;
app_protect_enable on;
Expand Down Expand Up @@ -7229,8 +7196,7 @@ server {gunzip on;
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down Expand Up @@ -7570,8 +7536,7 @@ server {
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
auth_jwt "My Api";
auth_jwt_key_file jwk-secret;
app_protect_enable on;
Expand Down Expand Up @@ -7653,8 +7618,7 @@ server {
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down Expand Up @@ -8056,8 +8020,7 @@ server {
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
# server snippet
location /split {
rewrite ^ @split_0 last;
Expand Down Expand Up @@ -8104,8 +8067,7 @@ server {
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down Expand Up @@ -8439,8 +8401,7 @@ server {
allow all;
limit_req_log_level error;
limit_req_status 503;
limit_req zone=pol_rl_test_test_test burst=5
delay=10;
limit_req zone=pol_rl_test_test_test burst=5 delay=10;
auth_jwt "My Api";
auth_jwt_key_file jwk-secret;
app_protect_enable on;
Expand Down Expand Up @@ -8522,8 +8483,7 @@ server {
deny all;
deny 127.0.0.1;
allow all;
limit_req zone=loc_pol_rl_test_test_test
;
limit_req zone=loc_pol_rl_test_test_test;


proxy_ssl_certificate egress-mtls-secret.pem;
Expand Down
Loading
Loading