phanpy
This commit is contained in:
parent
c30aa2526e
commit
1e758cd558
4 changed files with 39 additions and 1 deletions
|
|
@ -97,6 +97,7 @@
|
||||||
./hosts/vps/disko-config.nix
|
./hosts/vps/disko-config.nix
|
||||||
./services/nginx.nix
|
./services/nginx.nix
|
||||||
./services/blog.nix
|
./services/blog.nix
|
||||||
|
./services/phanpy.nix
|
||||||
./services/coturn.nix
|
./services/coturn.nix
|
||||||
./services/livekit.nix
|
./services/livekit.nix
|
||||||
./services/lk-jwt.nix
|
./services/lk-jwt.nix
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
accounts-allow-custom-css = false;
|
accounts-allow-custom-css = false;
|
||||||
|
|
||||||
instance-languages = [ "en" ];
|
instance-languages = [ "en" ];
|
||||||
instance-expose-public-timeline = false;
|
instance-expose-public-timeline = true;
|
||||||
instance-expose-peers = false;
|
instance-expose-peers = false;
|
||||||
instance-deliver-to-shared-inboxes = true;
|
instance-deliver-to-shared-inboxes = true;
|
||||||
instance-federation-mode = "blocklist";
|
instance-federation-mode = "blocklist";
|
||||||
|
|
|
||||||
34
services/phanpy.nix
Normal file
34
services/phanpy.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
phanpy = pkgs.stdenv.mkDerivation rec {
|
||||||
|
pname = "phanpy";
|
||||||
|
version = "2026.02.24.48b2cf7";
|
||||||
|
|
||||||
|
src = pkgs.fetchzip {
|
||||||
|
url = "https://github.com/cheeaun/phanpy/releases/download/${version}/phanpy-dist.zip";
|
||||||
|
hash = "sha256-55DI7tr3wvf/jC9S/J71I2YgIKqyPXODKSkZo5SqJM8=";
|
||||||
|
stripRoot = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out
|
||||||
|
cp -r * $out/
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
services.nginx.virtualHosts."phanpy.ellie.town" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
root = "${phanpy}";
|
||||||
|
|
||||||
|
locations."/" = {
|
||||||
|
tryFiles = "$uri $uri/ /index.html";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -91,6 +91,9 @@
|
||||||
virtualHosts."fedi.ellie.town" = {
|
virtualHosts."fedi.ellie.town" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
locations."= /".extraConfig = ''
|
||||||
|
return 302 /@ellie;
|
||||||
|
'';
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://10.10.0.2:8080";
|
proxyPass = "http://10.10.0.2:8080";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue