AppFeed/templates/mguttsRepository/mgutt/apachewebdav.xml
2021-03-05 12:03:00 -05:00

127 lines
6.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<Container version="2">
<Name>Apache-WebDAV</Name>
<Repository>bytemark/webdav</Repository>
<Registry>https://hub.docker.com/r/bytemark/webdav/</Registry>
<Network>bridge</Network>
<Shell>sh</Shell>
<Privileged>false</Privileged>
<Support>https://forums.unraid.net/topic/103601-support-apache-webdav-bytemark/</Support>
<Project>https://httpd.apache.org/docs/2.4/mod/mod_dav.html</Project>
<Overview>Specifying USERNAME and PASSWORD only supports a single user. If you want to have lots of different logins for various users, bind mount user.passwd as follows:&#13;
&#13;
Open the Unraid WebTerminal &amp;gt;_ and execute the following:&#13;
[b]mkdir /mnt/user/appdata/apachewebdav[/b]&#13;
[b]touch /mnt/user/appdata/apachewebdav/user.passwd[/b]&#13;
&#13;
Add a new Path to this container with the following values:&#13;
[b]Container Path: /user.passwd[/b]&#13;
[b]Host Path: /mnt/user/appdata/apachewebdav/user.passwd[/b]&#13;
&#13;
After starting the container, open its console and execute the following for "Basic" authentification by changing "John" to your username (it asks for your password after executing):&#13;
[b]htpasswd -B /user.passwd John[/b]&#13;
&#13;
or this if you choosed "Digest" authentification:&#13;
[b]htdigest user.passwd WebDAV-Login John[/b]&#13;
&#13;
Execute the command multiple times with different usernames to add more users.</Overview>
<WebUI>http://[IP]:[PORT:8384]/</WebUI>
<TemplateURL>https://raw.githubusercontent.com/mgutt/unraid-docker-templates/main/mgutt/apachewebdav.xml</TemplateURL>
<Icon>https://raw.githubusercontent.com/mgutt/unraid-docker-templates/main/mgutt/images/webdav-powered-by-apache.png</Icon>
<PostArgs></PostArgs>
<CPUset></CPUset>
<Networking>
<Mode>bridge</Mode>
<Publish>
<Port>
<HostPort>8384</HostPort>
<ContainerPort>80</ContainerPort>
<Protocol>tcp</Protocol>
</Port>
</Publish>
</Networking>
<Data>
<Volume>
<HostDir>/mnt/user/webdav</HostDir>
<ContainerDir>/var/lib/dav</ContainerDir>
<Mode>rw</Mode>
</Volume>
<Volume>
<HostDir>/mnt/user/appdata/apachewebdav/user.passwd</HostDir>
<ContainerDir>/user.passwd</ContainerDir>
<Mode>rw</Mode>
</Volume>
</Data>
<Environment>
<Variable>
<Value>localhost</Value>
<Name>SERVER_NAMES</Name>
<Mode></Mode>
</Variable>
<Variable>
<Value>/</Value>
<Name>LOCATION</Name>
<Mode></Mode>
</Variable>
<Variable>
<Value>Basic</Value>
<Name>AUTH_TYPE</Name>
<Mode></Mode>
</Variable>
<Variable>
<Value>WebDAV-Login</Value>
<Name>REALM</Name>
<Mode></Mode>
</Variable>
<Variable>
<Value></Value>
<Name>USERNAME</Name>
<Mode></Mode>
</Variable>
<Variable>
<Value></Value>
<Name>PASSWORD</Name>
<Mode></Mode>
</Variable>
<Variable>
<Value></Value>
<Name>ANONYMOUS_METHODS</Name>
<Mode></Mode>
</Variable>
<Variable>
<Value></Value>
<Name>SSL_CERT</Name>
<Mode></Mode>
</Variable>
</Environment>
<Config Name="Share" Target="/var/lib/dav" Default="" Mode="rw" Description="Container Path: /var/lib/dav" Type="Path" Display="always" Required="false" Mask="false">/mnt/user/webdav</Config>
<Config Name="Webserver Port" Target="80" Default="" Mode="tcp" Description="Container Port: 80" Type="Port" Display="always" Required="false" Mask="false">8384</Config>
<Config Name="Domains" Target="SERVER_NAMES" Default="" Mode="" Description="Comma-separated list of domains (eg, example.com,www.example.com). The first is set as the ServerName, and the rest (if any) are set as ServerAlias. The default is localhost." Type="Variable" Display="always" Required="false" Mask="false">localhost</Config>
<Config Name="Base URL" Target="LOCATION" Default="" Mode="" Description="The URL path for WebDAV (eg, if set to /webdav then clients should connect to example.com/webdav). The default is /." Type="Variable" Display="always" Required="false" Mask="false">/</Config>
<Config Name="Authentication" Target="AUTH_TYPE" Default="" Mode="" Description="Apache authentication type to use. This can be Basic (best choice for HTTPS) or Digest (best choice for HTTP). The default is Basic." Type="Variable" Display="always" Required="false" Mask="false">Basic</Config>
<Config Name="Login Title" Target="REALM" Default="" Mode="" Description="The string will appear in the password dialog provided by browsers." Type="Variable" Display="always" Required="false" Mask="false">WebDAV-Login</Config>
<Config Name="Username" Target="USERNAME" Default="" Mode="" Description="Authenticate with this username (and the password below). Will be ignored if /user.passwd is present." Type="Variable" Display="always" Required="false" Mask="false"></Config>
<Config Name="Password" Target="PASSWORD" Default="" Mode="" Description="Authenticate with this password (and the username above). Will be ignored if /user.passwd is present." Type="Variable" Display="always" Required="false" Mask="false"></Config>
<Config Name="Public methods" Target="ANONYMOUS_METHODS" Default="" Mode="" Description="Comma-separated list of HTTP request methods (eg, GET,POST,OPTIONS,PROPFIND). Clients can use any method you specify here without authentication. Set to ALL to disable authentication. The default is to disallow any anonymous access." Type="Variable" Display="always" Required="false" Mask="false"></Config>
<Config Name="Enable SSL" Target="SSL_CERT" Default="" Mode="" Description="Set to selfsigned to generate a self-signed certificate and enable Apache's SSL module. If you specify SERVER_NAMES, the first domain is set as the Common Name." Type="Variable" Display="always" Required="false" Mask="false"></Config>
<Date>1614942013</Date>
<Description>Specifying USERNAME and PASSWORD only supports a single user. If you want to have lots of different logins for various users, bind mount user.passwd as follows:&#13;
&#13;
Open the Unraid WebTerminal &gt;_ and execute the following:&#13;
mkdir /mnt/user/appdata/apachewebdav&#13;
touch /mnt/user/appdata/apachewebdav/user.passwd&#13;
&#13;
Add a new Path to this container with the following values:&#13;
Container Path: /user.passwd&#13;
Host Path: /mnt/user/appdata/apachewebdav/user.passwd&#13;
&#13;
After starting the container, open its console and execute the following for "Basic" authentification by changing "John" to your username (it asks for your password after executing):&#13;
htpasswd -B /user.passwd John&#13;
&#13;
or this if you choosed "Digest" authentification:&#13;
htdigest user.passwd WebDAV-Login John&#13;
&#13;
Execute the command multiple times with different usernames to add more users.</Description>
<templatePath>/tmp/GitHub/AppFeed/templates/mguttsRepository/mgutt/apachewebdav.xml</templatePath>
</Container>