bikeability2
This commit is contained in:
parent
3f477a3fde
commit
31576bbfa0
2 changed files with 35 additions and 0 deletions
34
bikeability2.nix
Normal file
34
bikeability2.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
{ pkgs, config, lib, ... }:
|
||||||
|
let
|
||||||
|
wordpressPort = 5781;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkMerge [
|
||||||
|
(lib.mkIf (config.networking.hostName == "nixnas") {
|
||||||
|
services.wordpress.sites."bikeability.net" = {
|
||||||
|
virtualHost.listen = [{
|
||||||
|
port = wordpressPort;
|
||||||
|
ip = "127.0.0.1";
|
||||||
|
}];
|
||||||
|
settings = {
|
||||||
|
FORCE_SSL_ADMIN = true;
|
||||||
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
$_SERVER['HTTPS']='on';
|
||||||
|
'';
|
||||||
|
plugins = {
|
||||||
|
wpcode = pkgs.stdenv.mkDerivation rec {
|
||||||
|
name = "wpcode";
|
||||||
|
version = "2.3.3";
|
||||||
|
src = pkgs.fetchzip {
|
||||||
|
url = "https://downloads.wordpress.org/plugins/insert-headers-and-footers.${version}.zip";
|
||||||
|
hash = "sha256-BjQ62ZvWck/e0kcP6Ny1pOGAfsPVUDQLrvGnvkeq6FY=";
|
||||||
|
};
|
||||||
|
installPhase = "mkdir -p $out; cp -R * $out/";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services.cloudflared.tunnels.mine.ingress."bikeability.net" = "http://127.0.0.1:${builtins.toString wordpressPort}";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
1
cos.nix
1
cos.nix
|
|
@ -13,6 +13,7 @@
|
||||||
./mastodon.nix
|
./mastodon.nix
|
||||||
./cloudflared.nix
|
./cloudflared.nix
|
||||||
./umami.nix
|
./umami.nix
|
||||||
|
./bikeability2.nix
|
||||||
"${inputs.home-manager}/nixos"
|
"${inputs.home-manager}/nixos"
|
||||||
inputs.nix-minecraft.nixosModules.minecraft-servers
|
inputs.nix-minecraft.nixosModules.minecraft-servers
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue