I have a local Kopia repository on my server
Ready to mount
Make a directory under /mnt
and let Kopia mount it
mount.sh
# mount.sh
kopia mount all /mnt/kopia > /dev/null 2>&1 &
Setup webDAV server with Docker-compose and Caddy
User Caddy with basicauth
to protect your webdav
Docker compose file
version: '2.1'
services:
webdav:
image: mwader/webdav
container_name: webdav
ports:
- 8083:8080
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Taipei
volumes:
- /mnt/kopia:/webdav
restart: unless-stopped
Start the docker-compose
# Pull the latest image
docker-compose pull
# Start it
docker-compose up -d webdav
# Rebuild the docker-compose
docker-compose up -d --no-deps --build webdav
Setup Caddy server
nano /etc/caddy/Caddyfile
{
auto_https off
auto_https disable_redirects
}
https://example.com:83 {
tls /root/.acme.sh/example.com/fullchain.cer /root/.acme.sh/example.com/example.com.key
basicauth {
admin XXXX**DUDSJKSKDKJSDGSHJ
}
reverse_proxy 127.0.0.1:8083
}
Example screenshot