nginx_config_generator_kthompson 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/nginx.erb +3 -5
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/nginx.erb
CHANGED
@@ -9,8 +9,6 @@ worker_processes 2;
|
|
9
9
|
# pid of nginx master process
|
10
10
|
pid <%= config['pid_path'] || 'logs/' %>nginx.pid;
|
11
11
|
|
12
|
-
server_names_hash_bucket_size 128;
|
13
|
-
|
14
12
|
# Number of worker connections. 1024 is a good default
|
15
13
|
events {
|
16
14
|
worker_connections 1024;
|
@@ -37,10 +35,10 @@ http {
|
|
37
35
|
'"$http_user_agent" "http_x_forwarded_for"';
|
38
36
|
|
39
37
|
# main access log
|
40
|
-
access_log <%= config['log_path'] || 'logs/' %>access.log
|
38
|
+
access_log <%= config['log_path'] || 'logs/' %>access.log;
|
41
39
|
|
42
40
|
# main error log
|
43
|
-
error_log <%= config['log_path'] || 'logs/' %>error.log
|
41
|
+
error_log <%= config['log_path'] || 'logs/' %>error.log;
|
44
42
|
#error_log logs/error.log debug_http;
|
45
43
|
|
46
44
|
# no sendfile on OSX
|
@@ -159,7 +157,7 @@ http {
|
|
159
157
|
# needed for HTTPS
|
160
158
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
161
159
|
proxy_set_header Host $http_host;
|
162
|
-
proxy_redirect
|
160
|
+
proxy_redirect off;
|
163
161
|
proxy_max_temp_file_size 0;
|
164
162
|
<% if site['ssl'] %>
|
165
163
|
# set X-FORWARDED_PROTO so ssl_requirement plugin works
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nginx_config_generator_kthompson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kevin Thompson
|