Skip to content

Commit 929549d

Browse files
committed
📚 Add new section for credits.
1 parent 860c905 commit 929549d

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

README.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Optimized Nginx Configuration
2+
23
Nginx configuration example for maximum performance.
34

45
## Table of Contents
@@ -42,13 +43,14 @@ Nginx configuration example for maximum performance.
4243
* [`worker_processes`](#the-worker_processes-directive)
4344
* [`worker_rlimit_nofile`](#the-worker_rlimit_nofile-directive)
4445
* [`worker_connections`](#the-worker_connections-directive)
45-
* [`server_names_hash_max_size` and `server_names_hash_bucket_size`](#the-server_names_hash_max_size-and-server_names_hash_bucket_size-directives)
46-
* `types_hash_max_size` and `types_hash_bucket_size`](#the-types_hash_max_size-and-types_hash_bucket_size-directives)
46+
* [`server_names_hash_max_size`](#the-server_names_hash_max_size-and-server_names_hash_bucket_size-directives) and [`server_names_hash_bucket_size`](#the-server_names_hash_max_size-and-server_names_hash_bucket_size-directives)
47+
* [`types_hash_max_size`](#the-types_hash_max_size-and-types_hash_bucket_size-directives) and [`types_hash_bucket_size`](#the-types_hash_max_size-and-types_hash_bucket_size-directives)
4748
* [`sendfile`](#the-sendfile-directive)
4849
* [`tcp_nopush`](#the-tcp_nopush-directive)
4950
* [`tcp_nodelay`](#the-tcp_nodelay-directive)
5051
* [`keepalive_timeout`](#the-keepalive_timeout-directive)
5152
* [Gzip related directives](#gzip-related-directives)
53+
* [Credits](#credits)
5254

5355
## Requirements
5456

@@ -871,7 +873,7 @@ However, nowadays chances are so small that our files won't fill up the buffer i
871873
tcp_nodelay on;
872874
```
873875

874-
### The `keepalive_timeout` timeout
876+
### The `keepalive_timeout` directive
875877
This directive is used to set a timeout of which a keep-alive connection will stay open. The longer the duration is, the better for the client, especially on SSL connection. The downside is the worker connection is occupied much longer.
876878

877879
```nginx
@@ -892,6 +894,13 @@ There are also several other directives you can set related to gzip:
892894
* `gzip_proxied` => Enables or disables gzipping of responses for proxied connection.
893895
* `gzip_vary` => Enables or disables inserting the “Vary: Accept-Encoding” header in response.
894896

897+
## Credits
898+
899+
All of these configurations setup are gathered from the following resources:
900+
901+
* [Nginx Documentation](http://nginx.org/en/docs/)
902+
* [Nginx Configs Boilerplate](https://github.com/h5bp/server-configs-nginx) by [h5bp](https://h5bp.github.io)
903+
* [Nginx Optimization](https://t37.net/nginx-optimization-understanding-sendfile-tcp_nodelay-and-tcp_nopush.html) by [Fred de Villamil](https://t37.net)
895904

896905

897906

0 commit comments

Comments
 (0)