caddy: follow upstream example, use /srv dir for
serving static files
This commit is contained in:
parent
e50b97c1cc
commit
2f49b8846c
|
@ -6,7 +6,9 @@
|
|||
}
|
||||
}
|
||||
|
||||
# static file server
|
||||
miom.space {
|
||||
root * /var/www/miom.space
|
||||
root * /srv/miom.space
|
||||
file_server
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue