Initial commit
This commit is contained in:
29
modules/desktop/cinny.nix
Executable file
29
modules/desktop/cinny.nix
Executable file
@@ -0,0 +1,29 @@
|
||||
{ lib, pkgs, ... }: {
|
||||
services.caddy = {
|
||||
enable = lib.mkDefault true;
|
||||
virtualHosts."http://localhost:1989".extraConfig = ''
|
||||
encode zstd gzip
|
||||
root * ${pkgs.cinny}
|
||||
|
||||
|
||||
file_server
|
||||
@index {
|
||||
not path /index.html
|
||||
not path /public/*
|
||||
not path /assets/*
|
||||
|
||||
not path /config.json
|
||||
|
||||
not path /manifest.json
|
||||
not path /pdf.worker.min.js
|
||||
not path /olm.wasm
|
||||
not path /sw.js
|
||||
|
||||
path /*
|
||||
}
|
||||
|
||||
rewrite /*/olm.wasm /olm.wasm
|
||||
rewrite @index /index.html
|
||||
'';
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user