Skip to content

Commit 4433f33

Browse files
committed
Only load .conf files from sitesdir
Prevents backup files from breaking openresty as @gwalls experienced it
1 parent ac6f385 commit 4433f33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/nginx.conf.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ http {
3333
gzip_comp_level 2;
3434
gzip_proxied any;
3535

36-
include <%= scope.lookupvar "openresty::config::sitesdir" %>/*;
36+
include <%= scope.lookupvar "openresty::config::sitesdir" %>/*.conf;
3737
}

0 commit comments

Comments
 (0)