init wordpress
This commit is contained in:
parent
59127d9452
commit
92c6e605b4
|
@ -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;
|
||||||
|
@ -75,5 +84,7 @@
|
||||||
#basicAuthFile = config.sops.secrets."nginx/defaultpass".path;
|
#basicAuthFile = config.sops.secrets."nginx/defaultpass".path;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
../../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
|
||||||
|
|
|
@ -0,0 +1,38 @@
|
||||||
|
{ 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";
|
||||||
|
#FORCE_SSL_ADMIN = true;
|
||||||
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
$_SERVER['HTTPS']='on';
|
||||||
|
'';
|
||||||
|
#themes = {
|
||||||
|
# inherit wordpress-theme;
|
||||||
|
#};
|
||||||
|
plugins = with pkgs.wordpressPackages.plugins; [
|
||||||
|
#anti-spam-bee
|
||||||
|
code-syntax-block
|
||||||
|
cookie-notice
|
||||||
|
wp-gdpr-compliance
|
||||||
|
];
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue