Compare commits
No commits in common. "2c830905d1c0bde4673dc04baa9e8ec46a835315" and "b15b3c9ebf587de0c60d08b78dcf857915434a1b" have entirely different histories.
2c830905d1
...
b15b3c9ebf
18
Caddyfile
18
Caddyfile
@ -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
|
|
||||||
}
|
|
||||||
}
|
|
15
flake.nix
15
flake.nix
@ -13,12 +13,12 @@
|
|||||||
supportedSystems = ["x86_64-linux" "aarch64-linux"];
|
supportedSystems = ["x86_64-linux" "aarch64-linux"];
|
||||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||||
pkgs = forAllSystems (system: nixpkgs.legacyPackages.${system});
|
pkgs = forAllSystems (system: nixpkgs.legacyPackages.${system});
|
||||||
url_deploy = "https://project-cloud.net";
|
url = "https://project-cloud.net";
|
||||||
url_local = "http://localhost:8080";
|
|
||||||
name = "project-cloud";
|
name = "project-cloud";
|
||||||
theme = theme_anemone;
|
theme = theme_anemone;
|
||||||
package = system: url:
|
in {
|
||||||
pkgs.${system}.stdenv.mkDerivation {
|
packages = forAllSystems (system: {
|
||||||
|
default = pkgs.${system}.stdenv.mkDerivation {
|
||||||
inherit name;
|
inherit name;
|
||||||
nativeBuildInputs = with pkgs.${system}; [zola];
|
nativeBuildInputs = with pkgs.${system}; [zola];
|
||||||
|
|
||||||
@ -35,16 +35,11 @@
|
|||||||
cp -r public/ $out/
|
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: {
|
devShells = forAllSystems (system: {
|
||||||
default = pkgs.${system}.mkShellNoCC {
|
default = pkgs.${system}.mkShellNoCC {
|
||||||
packages = with pkgs.${system}; [zola caddy];
|
packages = with pkgs.${system}; [zola];
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user