Compare commits

..

No commits in common. "2c830905d1c0bde4673dc04baa9e8ec46a835315" and "b15b3c9ebf587de0c60d08b78dcf857915434a1b" have entirely different histories.

2 changed files with 5 additions and 28 deletions

View File

@ -1,18 +0,0 @@
{
auto_https off
}
:8080 {
root * ./result/public
encode gzip
file_server
# redirect to your custom 404 page
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
file_server
}
}

View File

@ -13,12 +13,12 @@
supportedSystems = ["x86_64-linux" "aarch64-linux"];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
pkgs = forAllSystems (system: nixpkgs.legacyPackages.${system});
url_deploy = "https://project-cloud.net";
url_local = "http://localhost:8080";
url = "https://project-cloud.net";
name = "project-cloud";
theme = theme_anemone;
package = system: url:
pkgs.${system}.stdenv.mkDerivation {
in {
packages = forAllSystems (system: {
default = pkgs.${system}.stdenv.mkDerivation {
inherit name;
nativeBuildInputs = with pkgs.${system}; [zola];
@ -35,16 +35,11 @@
cp -r public/ $out/
'';
};
in {
packages = forAllSystems (system: rec {
project-cloud = package system url_deploy;
test = package system url_local;
default = project-cloud;
});
devShells = forAllSystems (system: {
default = pkgs.${system}.mkShellNoCC {
packages = with pkgs.${system}; [zola caddy];
packages = with pkgs.${system}; [zola];
};
});
};