Compare commits

...

2 Commits

Author SHA1 Message Date
Adrian Gunnar Lauterer 8d7b73e717 init wordpress 2024-05-25 21:55:58 +02:00
Adrian Gunnar Lauterer 59127d9452 added shiori bookmark and archiver 2024-05-25 18:04:54 +02:00
4 changed files with 69 additions and 1 deletions

View File

@ -1,6 +1,15 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
services.nginx = { services.nginx = {
virtualHosts."lauterer.it" = {
forceSSL = true;
useACMEHost = config.networking.domain;
locations."/" = {
proxyWebsockets = true;
proxyPass = "http://100.84.215.84";
};
};
virtualHosts."managment.lauterer.it" = { virtualHosts."managment.lauterer.it" = {
forceSSL = true; forceSSL = true;
useACMEHost = config.networking.domain; useACMEHost = config.networking.domain;
@ -61,5 +70,21 @@
#basicAuthFile = config.sops.secrets."nginx/defaultpass".path; #basicAuthFile = config.sops.secrets."nginx/defaultpass".path;
}; };
#virtualHosts."shiori.lauterer.it" = config.services.nginx.virtualHosts."archive.lauterer.it";
#virtualHosts."pocket.lauterer.it" = config.services.nginx.virtualHosts."archive.lauterer.it";
#virtualHosts."bookmarks.lauterer.it" = config.services.nginx.virtualHosts."archive.lauterer.it";
virtualHosts."archive.lauterer.it" = {
forceSSL = true;
useACMEHost = config.networking.domain;
locations."/" = {
proxyWebsockets = true;
proxyPass = "http://100.84.215.84:8082";
};
#basicAuthFile = config.sops.secrets."nginx/defaultpass".path;
};
}; };
} }

View File

@ -19,10 +19,12 @@
../../profiles/mediaserver.nix ../../profiles/mediaserver.nix
../../services/smb.nix ../../services/smb.nix
../../services/wordpress.nix
../../services/torrent.nix ../../services/torrent.nix
../../services/mc.nix ../../services/mc.nix
#../../services/stableDiffusion.nix #../../services/stableDiffusion.nix
../../services/rss.nix ../../services/rss.nix
../../services/shiori.nix
]; ];
# Bootloader. # Bootloader.

7
services/shiori.nix Normal file
View File

@ -0,0 +1,7 @@
{ config, pkgs, lib, ... }:
{
services.shiori.enable = true;
services.shiori.port = 8082;
}

34
services/wordpress.nix Normal file
View File

@ -0,0 +1,34 @@
{ config, lib, pkgs, ... }: let
wordpress-theme = pkgs.stdenv.mkDerivation rec {
name = "responsive";
version = "4.7.9";
src = pkgs.fetchzip {
url = "https://downloads.wordpress.org/theme/responsive.${version}.zip";
hash = "sha256-7K/pwD1KAuipeOAOLXd2wqOUEhwk+uNGIllVWzDHzp0=";
};
installPhase = "mkdir -p $out; cp -R * $out/";
};
in {
services.wordpress.sites."lauterer.it" = {
languages = [
pkgs.wordpressPackages.languages.de_DE
];
settings = {
WPLANG = "de_DE";
};
#themes = {
# inherit wordpress-theme;
#};
plugins = with pkgs.wordpressPackages.plugins; [
#anti-spam-bee
code-syntax-block
cookie-notice
#lightbox-with-photoswipe
wp-gdpr-compliance
];
};
}