diff --git a/articles/dufs.md b/articles/dufs.md index ddedbbe..20510f1 100644 --- a/articles/dufs.md +++ b/articles/dufs.md @@ -1,25 +1,24 @@ quick and easy cloud storage with dufs and nixos -[dufs](https://github.com/sigoden/dufs) - the distinctive file utility server - is a decent cloud storage replacement for those looking to move away from third-party services like google drive or proton drive. it supports webdav and https file transfer protocols. +dufs[1] -- the distinctive file utility server -- is a decent cloud storage replacement for those looking to move away from third-party services like google drive or proton drive. it supports webdav and https file transfer protocols. it's very easy to set up and get going in nixos using a docker container. ## set up dufs first, enable docker in your `configuration.nix`: - -```nix +``` virtualisation.docker.enable = true; ``` then define a docker container, either in your `configuration.nix` or in a custom module: - -```nix +``` virtualisation.oci-containers = { backend = "docker"; containers.dufs = { - autoStart = true; # automatically restart server after reboot + # automatically restart server after reboot + autoStart = true; image = "sigoden/dufs"; @@ -27,8 +26,9 @@ virtualisation.oci-containers = { "5000:5000" ]; + # the files i want to serve are in /srv/dufs volumes = [ - "/srv/dufs:/data" # the files i want to serve are in /srv/dufs + "/srv/dufs:/data" ]; # tells dufs to serve the files in the docker volume /data @@ -40,32 +40,41 @@ virtualisation.oci-containers = { }; ``` -rebuild your configuration using `nixos-rebuild switch` and head on over to http://localhost:5000 to behold your lovely files. +rebuild your configuration using `nixos-rebuild switch` and head on over to `http://localhost:5000` to behold your lovely files. -# set up tailscale +## set up tailscale -you can use [tailscale](https://tailscale.com/) to access the files on other devices inside (and outside) of your home network. tailscale is like a crazy-fast vpn with a bunch of other comfort features like [magic dns](https://tailscale.com/kb/1081/magicdns), [keyless ssh](https://tailscale.com/kb/1193/tailscale-ssh) and [easy https](https://tailscale.com/kb/1153/enabling-https). +you can use tailscale[2] to access the files on other devices inside (and outside) of your home network. tailscale is like a crazy-fast vpn with a bunch of other comfort features like magic dns[3], keyless ssh[4] and easy https[5]. to enable it in nixos, add the following to your `configuration.nix`: - -```nix +``` services.tailscale.enable = true; -networking.firewall.trustedInterfaces = [ "tailscale0" ]; # lets tailscale use whichever ports it likes +networking.firewall.trustedInterfaces = [ "tailscale0" ]; ``` once again, rebuild your configuration using `nixos-rebuild switch` and run `tailscale up` to start tailscale. -i reccomend enabling magic dns in admin console > dns > magic dns, but if you prefer not to, your server's ip address will be visible by running `tailscale ip -4`. +i recommend enabling magic dns in admin console > dns > magic dns, but if you prefer not to, your server's ip address will be visible by running `tailscale ip -4`. -now for the fun part, putting everything together! +head over to `http://:5000` on one of your other machines running tailscale to upload, download, and view your self-hosted files. -head over to `http://:5000` on one of your other machines to upload, download, and view your self-hosted files. +## dufs clients -## clients - -as for client recommendations, [round sync](https://github.com/newhinton/Round-Sync) on android is good, and [file browser go](https://www.stratospherix.com/filebrowsergo/) on ios isn't terrible. i'm yet to find something better. +as for client recommendations, round sync[6] on android is quite good. it supports both webdav and https remotes, i chose to use webdav when connecting. thanks for stopping by ^.^ -;tags: self hosting, cloud storage, nixos, tailscale +[1] [dufs](https://github.com/sigoden/dufs) + +[2] [tailscale](https://tailscale.com/) + +[3] [magic dns](https://tailscale.com/kb/1081/magicdns) + +[4] [tailscale ssh](https://tailscale.com/kb/1193/tailscale-ssh) + +[5] [tailscale https](https://tailscale.com/kb/1153/enabling-https) + +[6] [round sync](https://github.com/newhinton/Round-Sync) + +;tags: all self-hosting cloud-storage nixos tailscale diff --git a/blog/@all.html b/blog/@all.html index 7510e3d..0a0d7a6 100644 --- a/blog/@all.html +++ b/blog/@all.html @@ -1 +1 @@ -Articles tagged all

#all

posts

\ No newline at end of file +Articles tagged all

#all

posts

\ No newline at end of file diff --git a/blog/atom.xml b/blog/atom.xml index e858ded..03e2c61 100644 --- a/blog/atom.xml +++ b/blog/atom.xml @@ -2,11 +2,20 @@ will holdsworth's blog blog -2025-01-27T23:42:34Z +2025-01-28T19:01:55Z https://fi33.buzz/atom.xml +quick and easy cloud storage with dufs and nixos + +https://fi33.buzz/dufs.html +2025-01-28T18:41:39Z +2025-01-28T18:41:39Z +wi11-holdsworth +dufs[1] -- the distinctive file utility server -- is a decent cloud storage replacement for those looking to move away from third-party services like google drive or proton drive. it supports webdav and https file transfer protocols. + + welcome! https://fi33.buzz/welcome.html diff --git a/blog/index.html b/blog/index.html index 75fd77f..82a74dc 100644 --- a/blog/index.html +++ b/blog/index.html @@ -1 +1 @@ -will holdsworth's blog

will holdsworth's blog

tags: #all

posts


\ No newline at end of file +will holdsworth's blog

will holdsworth's blog

tags: #all, #cloud-storage, #nixos, #self-hosting, #tailscale

posts


\ No newline at end of file diff --git a/blog/rss.xml b/blog/rss.xml index 1104d04..2473d2c 100644 --- a/blog/rss.xml +++ b/blog/rss.xml @@ -5,6 +5,13 @@ https://fi33.buzz blog +quick and easy cloud storage with dufs and nixos +https://fi33.buzz/dufs.html +https://fi33.buzz/dufs.html +Tue, 28 Jan 2025 18:41:39 +1100 +dufs[1] -- the distinctive file utility server -- is a decent cloud storage replacement for those looking to move away from third-party services like google drive or proton drive. it supports webdav and https file transfer protocols. + + welcome! https://fi33.buzz/welcome.html https://fi33.buzz/welcome.html diff --git a/blog/welcome.html b/blog/welcome.html index b28a471..7bc4a12 100644 --- a/blog/welcome.html +++ b/blog/welcome.html @@ -1,4 +1,4 @@ -welcome!

will holdsworth's blog

welcome!

posted: 2025/01/27 22:16
edited: 2025/01/27 23:11

+welcome!

will holdsworth's blog

welcome!

posted: 2025/01/27 22:16
edited: 2025/01/27 23:11

the static site generator i'm using to kickstart this blog[1] requires a single post to exist in order to compile, and failing to provide a post sends make into an infinite loop.