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: Uploaded a file by mistake Created June 1, 2018, 5:02 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_users.empty? -%>
+ auth_basic "Password protected";
+ auth_basic_user_file <%= @auth_file%>;
+<% end -%>
+ }

Powered by Google App Engine
This is Rietveld