@@ -36,7 +36,7 @@ Official nginx docker image and docs.
36
36
So here I'm trying to put together all (my) good patterns and knowledge, and organize it as simply as possible in comparison with complex examples above. So anyone will be able to copy this configs and get a good nginx setup out of the box :)
37
37
38
38
Time track:
39
- - [ Filipp Frizzy] ( https://github.com/Friz-zy/ ) 45.56h
39
+ - [ Filipp Frizzy] ( https://github.com/Friz-zy/ ) 46.23h
40
40
41
41
### Support
42
42
@@ -73,25 +73,25 @@ SSL best practice from [mozilla](https://ssl-config.mozilla.org/#server=nginx&ve
73
73
#### Snippets
74
74
Templates and includes. You can also use [ config generator] ( https://www.digitalocean.com/community/tools/nginx ) from digitalocean :)
75
75
76
- * ` corps.conf.j2 `
76
+ * ` corps.include.template `
77
77
Template of corps politic for multiple subdomains setup
78
78
* ` default.conf `
79
79
Example of default config with nginx_status, let's encrypt check and redirect to https
80
- * ` fastcgi.conf `
80
+ * ` fastcgi.include `
81
81
Include for php locations: fastcgi parameters, timeouts and cache example
82
- * ` headers.conf `
82
+ * ` headers.include `
83
83
Include with all headers, see known traps
84
- * ` protected_locations.conf `
84
+ * ` protected_locations.include `
85
85
Include with protected locations with 'deny all'
86
- * ` proxy.conf `
86
+ * ` proxy.include `
87
87
Include for proxy locations: proxy headers, parameters, timeouts and cache example
88
- * ` referer.conf.j2 `
88
+ * ` referer.include.template `
89
89
Template of referer protection for cases when you concurents use your fail2ban protection against you, see known traps
90
- * ` resolver.conf `
90
+ * ` resolver.conf.template `
91
91
Include for dynamic dns resolving, see known traps
92
- * ` site.conf.j2 `
92
+ * ` site.conf.template `
93
93
Template of common site configuration
94
- * ` static_location.conf `
94
+ * ` static_location.include `
95
95
Include with location for static files
96
96
97
97
# Dockerfile
@@ -220,7 +220,7 @@ After all produce only `Name2` header in response.
220
220
So use add_header.conf include or copy all headers manually
221
221
into sections under HTTP one.
222
222
```
223
- include /etc/nginx/snippets/headers.conf
223
+ include /etc/nginx/snippets/headers.include
224
224
```
225
225
226
226
#### DNS resolving and cache in Docker, Kubernetes and other dynamic environments
@@ -267,7 +267,7 @@ can be used for attack to you. For example, you competitors can add to their sit
267
267
```
268
268
269
269
Then valid user after visit to the their site will be automatically blocked on your site 😆
270
- You can fight with this practice using ` http_referer ` , see ` snippets/referer.conf.j2 ` template ;)
270
+ You can fight with this practice using ` http_referer ` , see ` snippets/referer.include.template ` template ;)
271
271
Warning: I have not tested this code yet
272
272
273
273
#### Default templating engine in official docker image can't proceed variables with default values like ` ${var:-$DEFAULT} `
0 commit comments