File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
internal/mode/static/nginx Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ http {
38
38
}
39
39
40
40
stream {
41
- include /etc/nginx/stream-conf.d/*.conf;
42
-
43
41
variables_hash_bucket_size 512 ;
44
42
variables_hash_max_size 1024 ;
45
43
46
- # map_hash_max_size 2048;
47
- # map_hash_bucket_size 256;
44
+ map_hash_max_size 2048 ;
45
+ map_hash_bucket_size 256 ;
46
+
47
+ include /etc/nginx/stream-conf.d/*.conf;
48
48
}
Original file line number Diff line number Diff line change @@ -264,15 +264,17 @@ func TestCreateStreamMaps(t *testing.T) {
264
264
Parameters : []shared.MapParameter {
265
265
{Value : "example.com" , Result : "unix:/var/run/nginx/example.com8081.sock" },
266
266
},
267
+ UseHostnames : true ,
267
268
},
268
269
{
269
270
Source : "$ssl_preread_server_name" ,
270
271
Variable : getVariableName (8080 ),
271
272
Parameters : []shared.MapParameter {
272
273
{Value : "example.com" , Result : "unix:/var/run/nginx/example.com8080.sock" },
273
274
{Value : "cafe.example.com" , Result : "unix:/var/run/nginx/cafe.example.com8080.sock" },
274
- {Value : "app.example.com" , Result : "unix:/var/run/nginx/app.example.com8080 .sock" },
275
+ {Value : "app.example.com" , Result : "unix:/var/run/nginx/https8080 .sock" },
275
276
},
277
+ UseHostnames : true ,
276
278
},
277
279
}
278
280
g .Expect (maps ).To (Equal (expectedMaps ))
You can’t perform that action at this time.
0 commit comments