# SPDX-FileCopyrightText: V # SPDX-License-Identifier: LicenseRef-NONE let pkgs = import {}; config = builtins.toFile "Caddyfile" '' { admin off } :8080 try_files {path}.html {path} file_server { root result } handle_errors { respond "{http.error.status_code} {http.error.status_text}" } log { format single_field common_log } ''; in pkgs.mkShell { shellHook = "exec ${pkgs.caddy}/bin/caddy run --adapter caddyfile --config ${config}"; }