caddy: follow upstream example, use /srv dir for

serving static files
pull/2/head
teutat3s 2022-01-16 22:04:02 +01:00
parent e50b97c1cc
commit 2f49b8846c
Signed by: teutat3s
GPG Key ID: 4FA1D3FA524F22C1
3 changed files with 6 additions and 3 deletions

View File

@ -6,7 +6,9 @@
}
}
# static file server
miom.space {
root * /var/www/miom.space
file_server
root * /srv/miom.space
file_server
}
}

View File

@ -8,5 +8,5 @@ RUN ./build.sh
FROM caddy:2.4.6-alpine
COPY --from=build-stage /app/_site /var/www/miom.space/
COPY --from=build-stage /app/_site /srv/miom.space/
COPY --from=build-stage /app/Caddyfile /etc/caddy/Caddyfile

View File

@ -1,6 +1,7 @@
{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/feed45d391471db2ecdbe5ba7aa301ab290a0c8f.tar.gz") {},
nightingale-pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/f7949198dcff52265b322ca8abf7450610e7e49e.tar.gz") {}
}:
pkgs.mkShell {
buildInputs = [
nightingale-pkgs.docker-compose