refector
This commit is contained in:
parent
42f15beccf
commit
ed42006971
21 changed files with 271 additions and 366 deletions
|
|
@ -1,8 +1,9 @@
|
|||
{ pkgs, ... }:
|
||||
{ inputs, ... }:
|
||||
|
||||
{
|
||||
imports = [ "${inputs.self}/modules/mizukios/features/caddy/common.nix" ];
|
||||
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
# globalConfig = ''
|
||||
# servers {
|
||||
# trusted_proxies static cloudflare
|
||||
|
|
@ -29,20 +30,5 @@
|
|||
virtualHosts."report.dazzle.st".extraConfig = ''
|
||||
respond 204
|
||||
'';
|
||||
|
||||
package = pkgs.caddy.withPlugins {
|
||||
plugins = [
|
||||
"github.com/caddy-dns/cloudflare@v0.2.2"
|
||||
"github.com/aksdb/caddy-cgi/v2@v2.2.6"
|
||||
"github.com/shift72/caddy-geo-ip@v0.6.0"
|
||||
"github.com/lolPants/caddy-requestid@v1.1.2"
|
||||
"github.com/WeidiDeng/caddy-cloudflare-ip@v0.0.0-20231130002422-f53b62aa13cb"
|
||||
"github.com/caddyserver/ntlm-transport@v0.1.2"
|
||||
"github.com/ueffel/caddy-brotli@v1.6.0"
|
||||
"github.com/RussellLuo/caddy-ext/ratelimit@v0.3.0"
|
||||
"github.com/neodyme-labs/user_agent_parse@v0.0.1"
|
||||
];
|
||||
hash = "sha256-z9/LF2gws+H0pKL6F62QfklD0W8DKWCccnXLOOs3+jY=";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue