move akkoma-static into differente repo
This commit is contained in:
parent
63444f2728
commit
d3adacad2d
14 changed files with 62 additions and 109 deletions
26
services/cloudflare.nix
Normal file
26
services/cloudflare.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.cloudflared.enable = true;
|
||||
services.cloudflared.tunnels."65c093ce-a3ac-4369-b240-2169514be106" = {
|
||||
credentialsFile = "/etc/secrets/65c093ce-a3ac-4369-b240-2169514be106.json";
|
||||
ingress = {
|
||||
"kemonomimi.pet" = "http://localhost:8679";
|
||||
"fedi.kemonomimi.pet" = "http://localhost:8678";
|
||||
"media.kemonomimi.pet" = "http://localhost:8678";
|
||||
};
|
||||
default = "http_status:404";
|
||||
};
|
||||
|
||||
services.cloudflare-dyndns = {
|
||||
enable = true;
|
||||
|
||||
domains = [ "danielk.me" ];
|
||||
|
||||
apiTokenFile = "/etc/secrets/cloudflare-api-token";
|
||||
|
||||
proxied = false;
|
||||
ipv4 = true;
|
||||
ipv6 = false;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, inputs, ... }:
|
||||
let
|
||||
frontendConfig = {
|
||||
alwaysShowSubjectInput = true;
|
||||
|
|
@ -30,18 +30,6 @@ let
|
|||
};
|
||||
in
|
||||
{
|
||||
# probably move them out? atm they stay since they only serve kemonomimi
|
||||
services.cloudflared.enable = true;
|
||||
services.cloudflared.tunnels."65c093ce-a3ac-4369-b240-2169514be106" = {
|
||||
credentialsFile = "/etc/secrets/65c093ce-a3ac-4369-b240-2169514be106.json";
|
||||
ingress = {
|
||||
"kemonomimi.pet" = "http://localhost:8679";
|
||||
"fedi.kemonomimi.pet" = "http://localhost:8678";
|
||||
"media.kemonomimi.pet" = "http://localhost:8678";
|
||||
};
|
||||
default = "http_status:404";
|
||||
};
|
||||
|
||||
services.akkoma.enable = true;
|
||||
# ill have to enable this
|
||||
# services.akkoma.config.":pleroma".":media_proxy" = {
|
||||
|
|
@ -59,7 +47,7 @@ in
|
|||
registrations_open = false;
|
||||
healthcheck = true;
|
||||
allow_relay = true;
|
||||
upload_limit = "10G";
|
||||
upload_limit = 10737418240;
|
||||
max_pinned_statuses = 20;
|
||||
public = true;
|
||||
};
|
||||
|
|
@ -110,9 +98,10 @@ in
|
|||
cp -r ${src} $out
|
||||
'';
|
||||
in {
|
||||
"favicon.png" = mkPackage ../akkoma-static/favicon.png;
|
||||
"static" = mkPackage ../akkoma-static/static;
|
||||
"instance" = mkPackage ../akkoma-static/instance;
|
||||
"favicon.png" = mkPackage (inputs.akkoma-static + "/favicon.png");
|
||||
"static" = mkPackage (inputs.akkoma-static + "/static");
|
||||
"instance" = mkPackage (inputs.akkoma-static + "/instance");
|
||||
"emoji" = mkPackage (inputs.akkoma-static + "/emoji");
|
||||
};
|
||||
|
||||
systemd.services.local-static-http = {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ in
|
|||
BitTorrent = {
|
||||
Session = {
|
||||
Port = torrentPort;
|
||||
GlobalMaxRatio = 5;
|
||||
# GlobalMaxRatio = 5;
|
||||
ShareLimitAction = "RemoveWithContent";
|
||||
QueueingSystemEnabled = false;
|
||||
DefaultSavePath = "/var/lib/torrents";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue