add manga service

This commit is contained in:
xqtc161 2024-04-12 12:03:38 +02:00
parent c08acb7f33
commit 08c244ab7d
5 changed files with 35 additions and 39 deletions

View file

@ -0,0 +1,10 @@
{config, lib, ...}:
{
services.calibre-web = {
enable = true;
options = {
enableBookUploading = true;
# calibreLibrary = "/home/xqtc/ebooks";
};
};
}

View file

@ -10,46 +10,12 @@ with lib; {
./hardware-configuration.nix ./hardware-configuration.nix
./monitoring.nix ./monitoring.nix
./jellyfin.nix ./jellyfin.nix
./calibre-web.nix
./transmission.nix
./lanrarari.nix
../../gc.nix
]; ];
# users.users.nginx.extraGroups = ["acme"];
# services.nginx = {
# enable = true;
# package = pkgs.nginxQuic;
#
# recommendedGzipSettings = true;
# recommendedOptimisation = true;
# recommendedProxySettings = true;
# recommendedTlsSettings = true;
#
# # sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
# # sslProtocols = mkDefault "TLSv1.3";
#
# clientMaxBodySize = mkDefault "128M";
# commonHttpConfig = ''
# map $scheme $hsts_header {
# https "max-age=31536000; includeSubdomains; preload";
# }
# add_header Strict-Transport-Security $hsts_header;
# add_header X-Content-Type-Options "nosniff" always;
# add_header X-XSS-Protection "1; mode=block" always;
# add_header X-Frame-Options "SAMEORIGIN" always;
# add_header Referrer-Policy "same-origin" always;
# '';
# };
#
# security.acme = {
# acceptTerms = true;
# defaults.email = "xqtc@tutanota.com";
# defaults.keyType = "ec256";
# # certs = {
# # # "heroin.trade" = {};
# # "jellyfin.heroin.trade" = {};
# # "grafana.heroin.trade" = {};
# # };
# };
services.caddy = { services.caddy = {
enable = true; enable = true;
email = "xqtc@tutanota.com"; email = "xqtc@tutanota.com";
@ -58,9 +24,16 @@ with lib; {
root * /var/www/website/build/ root * /var/www/website/build/
file_server file_server
} }
demos.heroin.trade {
root * /var/www/demos/
file_server browse
}
jellyfin.heroin.trade { jellyfin.heroin.trade {
reverse_proxy http://127.0.0.1:8096 reverse_proxy http://127.0.0.1:8096
} }
calibre.heroin.trade {
reverse_proxy http://localhost:3000
}
grafana.heroin.trade { grafana.heroin.trade {
reverse_proxy http://127.0.0.1:2342 reverse_proxy http://127.0.0.1:2342
} }
@ -121,6 +94,9 @@ with lib; {
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
services.openssh.enable = true; services.openssh.enable = true;
services.resolved.enable = true;
services.mullvad-vpn.enable = true;
# Open ports in the firewall. # Open ports in the firewall.
networking.firewall.allowedTCPPorts = [22 80 443]; networking.firewall.allowedTCPPorts = [22 80 443];
# networking.firewall.allowedUDPPorts = [443]; # networking.firewall.allowedUDPPorts = [443];

View file

@ -0,0 +1,4 @@
{config, pkgs, lib, ...}:
{
services.lanraragi.enable = true;
}

View file

@ -8,7 +8,7 @@
enable = true; enable = true;
port = 2342; port = 2342;
addr = "127.0.0.1"; addr = "127.0.0.1";
domain = "grafan.heroin.trade"; domain = "grafana.heroin.trade";
}; };
services.prometheus = { services.prometheus = {

View file

@ -0,0 +1,6 @@
{config, lib, ...}:
{
services.transmission = {
enable = true;
};
}