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 7 Created June 5, 2018, 6:47 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
« no previous file with comments | « modules/adblockplus/manifests/web/fileserver/repository.pp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 != nil -%>
+ auth_basic "Password protected";
+ auth_basic_user_file <%= @auth_filename %>;
+<% end -%>
+ }
« no previous file with comments | « modules/adblockplus/manifests/web/fileserver/repository.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld