Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/adblockplus/templates/web/fileserver.conf.erb

Issue 29795567: #11371 - Password protection for fileserver repositories (Closed)
Patch Set: For comment 4 Created June 2, 2018, 9:04 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: modules/adblockplus/templates/web/fileserver.conf.erb
===================================================================
new file mode 100644
--- /dev/null
+++ b/modules/adblockplus/templates/web/fileserver.conf.erb
@@ -0,0 +1,9 @@
+# Puppet: <%= @title %>
+
+location / {
+ root /var/www/$host;
+<% if @auth_file -%>
mathias 2018/06/05 15:02:58 Shouldn't this check for undef/nil instead?
f.lopez 2018/06/05 18:00:44 Acknowledged.
+ auth_basic "Password protected";
+ auth_basic_user_file <%= @auth_filename %>;
+<% end -%>
+ }

Powered by Google App Engine
This is Rietveld