Compare commits
2 Commits
898e678e8e
...
8d7b73e717
Author | SHA1 | Date |
---|---|---|
Adrian Gunnar Lauterer | 8d7b73e717 | |
Adrian Gunnar Lauterer | 59127d9452 |
|
@ -1,6 +1,15 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
services.nginx = {
|
||||
virtualHosts."lauterer.it" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = config.networking.domain;
|
||||
locations."/" = {
|
||||
proxyWebsockets = true;
|
||||
proxyPass = "http://100.84.215.84";
|
||||
};
|
||||
};
|
||||
|
||||
virtualHosts."managment.lauterer.it" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = config.networking.domain;
|
||||
|
@ -61,5 +70,21 @@
|
|||
#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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -19,10 +19,12 @@
|
|||
../../profiles/mediaserver.nix
|
||||
|
||||
../../services/smb.nix
|
||||
../../services/wordpress.nix
|
||||
../../services/torrent.nix
|
||||
../../services/mc.nix
|
||||
#../../services/stableDiffusion.nix
|
||||
../../services/rss.nix
|
||||
../../services/shiori.nix
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
|
||||
services.shiori.enable = true;
|
||||
services.shiori.port = 8082;
|
||||
|
||||
}
|
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue