Update nginx.md
In the spirit of discoverability and least surprise, primary custom template example mirrors nginx.conf generated by default.
This commit is contained in:
1 parent
68fb0e7b98
commit
ea240f117e
1 file changed
+7
@@ -40,6 +40,13 @@ server {
|
|||||||
# set a custom header for requests
|
# set a custom header for requests
|
||||||
add_header X-Served-By www-ec2-01;
|
add_header X-Served-By www-ec2-01;
|
||||||
|
|
||||||
|
gzip on;
|
||||||
|
gzip_min_length 1100;
|
||||||
|
gzip_buffers 4 32k;
|
||||||
|
gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/x-javascript application/json application/xml application/rss+xml font/truetype application/x-font-ttf font/opentype application/vnd.ms-fontobject image/svg+xml;
|
||||||
|
gzip_vary on;
|
||||||
|
gzip_comp_level 6;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://{{ .APP }};
|
proxy_pass http://{{ .APP }};
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|||||||
Reference in new issue
Block a user