-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
89 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
install/etc/nginx/snippets/authentication/llng_auth_request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
### Start LemonLDAP:NG Authentication | ||
set $original_uri $uri$is_args$args; | ||
auth_request /lmauth; | ||
auth_request_set $lmremote_user $upstream_http_lm_remote_user; | ||
auth_request_set $lmlocation $upstream_http_location; | ||
auth_request_set $cookie_value $upstream_http_set_cookie; | ||
add_header Set-Cookie $cookie_value; | ||
error_page 401 $lmlocation; | ||
### Start LemonLDAP:NG Authentication | ||
set $original_uri $uri$is_args$args; | ||
auth_request /lmauth; | ||
auth_request_set $lmremote_user $upstream_http_lm_remote_user; | ||
auth_request_set $lmlocation $upstream_http_location; | ||
auth_request_set $cookie_value $upstream_http_set_cookie; | ||
add_header Set-Cookie $cookie_value; | ||
error_page 401 $lmlocation; |
28 changes: 14 additions & 14 deletions
28
install/etc/nginx/snippets/authentication/llng_location_block
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
### LemonLDAP:NG authentication request | ||
location = /lmauth { | ||
internal; | ||
include /etc/nginx/fastcgi_params; | ||
fastcgi_pass llng-upstream-pool; | ||
fastcgi_param REMOTE_PORT {{NGINX_AUTHENTICATION_LLNG_HANDLER_PORT}}; | ||
fastcgi_pass_request_body off; | ||
fastcgi_param CONTENT_LENGTH ""; | ||
fastcgi_param HOST $http_host; | ||
fastcgi_param X_ORIGINAL_URI $original_uri; | ||
proxy_http_version 1.1; | ||
proxy_set_header Connection ""; | ||
} | ||
### End LemonLDAP:NG authentication request | ||
### LemonLDAP:NG authentication request | ||
location = /lmauth { | ||
internal; | ||
include /etc/nginx/fastcgi_params; | ||
fastcgi_pass llng-upstream-pool; | ||
fastcgi_param REMOTE_PORT {{NGINX_AUTHENTICATION_LLNG_HANDLER_PORT}}; | ||
fastcgi_pass_request_body off; | ||
fastcgi_param CONTENT_LENGTH ""; | ||
fastcgi_param HOST $http_host; | ||
fastcgi_param X_ORIGINAL_URI $original_uri; | ||
proxy_http_version 1.1; | ||
proxy_set_header Connection ""; | ||
} | ||
### End LemonLDAP:NG authentication request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
server_names_hash_bucket_size 256; | ||
server_names_hash_max_size 4096; | ||
variables_hash_max_size 4096; | ||
variables_hash_bucket_size 4096; | ||
limit_req_zone $binary_remote_addr zone=flood:50m rate=90r/s; | ||
limit_conn_zone $binary_remote_addr zone=addr:50m; | ||
include /etc/nginx/snippets/blockbots/globalblacklist.conf; | ||
server_names_hash_bucket_size 256; | ||
server_names_hash_max_size 4096; | ||
variables_hash_max_size 4096; | ||
variables_hash_bucket_size 4096; | ||
limit_req_zone $binary_remote_addr zone=flood:50m rate=90r/s; | ||
limit_conn_zone $binary_remote_addr zone=addr:50m; | ||
include /etc/nginx/snippets/blockbots/globalblacklist.conf; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
brotli on; | ||
brotli_window {{NGINX_COMPRESSION_BROTLI_WINDOW}}; | ||
brotli_min_length {{NGINX_COMPRESSION_BROTLI_MIN_LENGTH}}; | ||
brotli_comp_level {{NGINX_COMPRESSION_BROTLI_LEVEL}}; | ||
brotli_types {{NGINX_COMPRESSION_BROTLI_TYPES}}; | ||
brotli on; | ||
brotli_window {{NGINX_COMPRESSION_BROTLI_WINDOW}}; | ||
brotli_min_length {{NGINX_COMPRESSION_BROTLI_MIN_LENGTH}}; | ||
brotli_comp_level {{NGINX_COMPRESSION_BROTLI_LEVEL}}; | ||
brotli_types {{NGINX_COMPRESSION_BROTLI_TYPES}}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
gzip on; | ||
gzip_comp_level {{NGINX_COMPRESSION_GZIP_LEVEL}}; | ||
gzip_http_version {{NGINX_COMPRESSION_GZIP_HTTP_VERSION}}; | ||
gzip_buffers {{NGINX_COMPRESSION_GZIP_BUFFERS}}; | ||
gzip_min_length {{NGINX_COMPRESSION_GZIP_MIN_LENGTH}}; | ||
gzip_proxied {{NGINX_COMPRESSION_GZIP_PROXIED}}; | ||
gzip_types {{NGINX_COMPRESSION_GZIP_TYPES}}; | ||
gzip_disable {{NGINX_COMPRESSION_GZIP_DISABLE}}; | ||
gzip_vary on; | ||
gzip on; | ||
gzip_comp_level {{NGINX_COMPRESSION_GZIP_LEVEL}}; | ||
gzip_http_version {{NGINX_COMPRESSION_GZIP_HTTP_VERSION}}; | ||
gzip_buffers {{NGINX_COMPRESSION_GZIP_BUFFERS}}; | ||
gzip_min_length {{NGINX_COMPRESSION_GZIP_MIN_LENGTH}}; | ||
gzip_proxied {{NGINX_COMPRESSION_GZIP_PROXIED}}; | ||
gzip_types {{NGINX_COMPRESSION_GZIP_TYPES}}; | ||
gzip_disable {{NGINX_COMPRESSION_GZIP_DISABLE}}; | ||
gzip_vary on; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
limit_conn_zone $binary_remote_addr zone=conn_limit_per_ip:{{NGINX_DDOS_CONNECTIONS_PER_IP}}; | ||
limit_req_zone $binary_remote_addr zone=req_limit_per_ip:{{NGINX_DDOS_CONNECTIONS_PER_IP}} rate={{NGINX_DDOS_REQUESTS_PER_IP}}; | ||
limit_conn_zone $binary_remote_addr zone=conn_limit_per_ip:{{NGINX_DDOS_CONNECTIONS_PER_IP}}; | ||
limit_req_zone $binary_remote_addr zone=req_limit_per_ip:{{NGINX_DDOS_CONNECTIONS_PER_IP}} rate={{NGINX_DDOS_REQUESTS_PER_IP}}; | ||
|
||
server { | ||
limit_conn conn_limit_per_ip 10; | ||
limit_req zone=req_limit_per_ip burst=10 nodelay; | ||
} | ||
server { | ||
limit_conn conn_limit_per_ip 10; | ||
limit_req zone=req_limit_per_ip burst=10 nodelay; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
server { | ||
listen 73; | ||
server_name 127.0.0.1; | ||
server { | ||
listen 73; | ||
server_name 127.0.0.1; | ||
|
||
location /stub_status { | ||
stub_status on; | ||
access_log off; | ||
allow 127.0.0.1; | ||
deny all; | ||
} | ||
} | ||
location /stub_status { | ||
stub_status on; | ||
access_log off; | ||
allow 127.0.0.1; | ||
deny all; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
disable_symlinks off; | ||
disable_symlinks off; | ||
|
||
location = /robots.txt { | ||
allow all; | ||
log_not_found off; | ||
access_log off; | ||
} | ||
location = /robots.txt { | ||
allow all; | ||
log_not_found off; | ||
access_log off; | ||
} | ||
|
||
location = /favicon.ico { | ||
log_not_found off; | ||
access_log off; | ||
location = /favicon.ico { | ||
log_not_found off; | ||
access_log off; | ||
} | ||
|
||
} | ||
# deny dot-files | ||
location ~ /\. { | ||
deny all; | ||
access_log off; | ||
log_not_found off; | ||
} | ||
|
||
# deny dot-files | ||
location ~ /\. { | ||
deny all; | ||
access_log off; | ||
log_not_found off; | ||
} | ||
|
||
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ { | ||
log_not_found on; | ||
expires 360d; | ||
} | ||
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ { | ||
log_not_found on; | ||
expires 360d; | ||
} |