porcelain-doll-repair w/ shrimpy
This commit is contained in:
parent
bee3240fbf
commit
1cfd600738
6 changed files with 121 additions and 18 deletions
|
@ -24,6 +24,13 @@ in {
|
|||
ps2l_saerro.servers."${tsHost "ps2live" 8101}" = {};
|
||||
ps2l_aggpop.servers."${tsHost "ps2live" 8201}" = {};
|
||||
ps2l_metagame.servers."${tsHost "ps2live" 8301}" = {};
|
||||
pdr.servers."${tsHost "porcelain-doll-repair" 3000 }" = {};
|
||||
};
|
||||
|
||||
proxyCachePath."pdr" = {
|
||||
enable = true;
|
||||
keysZoneSize = "16m";
|
||||
inactive = "720m";
|
||||
};
|
||||
|
||||
virtualHosts = let
|
||||
|
@ -44,7 +51,7 @@ in {
|
|||
} // defaultConfig;
|
||||
placeholder = {
|
||||
locations."=/" = {
|
||||
alias = pkgs.writeText "placeholder.html" "empty space -- this site is non-functional";
|
||||
root = pkgs.writeText "placeholder.html" "empty space -- this site is non-functional";
|
||||
extraConfig = ''
|
||||
default_type text/plain;
|
||||
'';
|
||||
|
@ -80,7 +87,21 @@ in {
|
|||
};
|
||||
|
||||
"doll.repair" = static { src = flakePackage "doll-repair"; };
|
||||
"porcelain.doll.repair" = placeholder;
|
||||
"porcelain.doll.repair" = {
|
||||
clientMaxBodySize = "150m";
|
||||
|
||||
locations."/" = {
|
||||
recommendedProxySettings = true;
|
||||
proxyPass = "http://pdr";
|
||||
proxyWebsockets = true;
|
||||
extraConfig = ''
|
||||
proxy_cache pdr;
|
||||
proxy_cache_lock on;
|
||||
proxy_cache_use_stale updating;
|
||||
add_header X-Cache $upstream_cache_status;
|
||||
'';
|
||||
};
|
||||
} // defaultConfig;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -1,15 +1,19 @@
|
|||
{ ... }: {
|
||||
{ inputs, ... }: {
|
||||
imports = [
|
||||
../../templates/proxmox-lxc.nix
|
||||
../../server.nix
|
||||
../../features/dns-cache.nix
|
||||
../../features/telemetry
|
||||
|
||||
inputs.iceshrimp.nixosModules.iceshrimp
|
||||
];
|
||||
|
||||
networking.hostName = "porcelain-doll-repair";
|
||||
system.stateVersion = "24.05";
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
|
||||
|
||||
services.iceshrimp = {
|
||||
enable = true;
|
||||
url = "https://porcelain.doll.repair";
|
||||
createDb = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue