code domain
This commit is contained in:
parent
3240ba9bdf
commit
4aa418f562
|
@ -20,31 +20,40 @@
|
||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
|
|
||||||
virtualHosts =
|
virtualHosts =
|
||||||
#let
|
let
|
||||||
# servicesDomain = "services.zerforschen.plus";
|
servicesDomain = "services.zerforschen.plus";
|
||||||
# mkServiceConfig = host: port: {
|
mkServiceConfig =
|
||||||
# addSSL = true;
|
{ host, port }:
|
||||||
# enableACME = true;
|
|
||||||
# locations."/" = {
|
|
||||||
# proxyPass = "http://${host}:${toString port}/";
|
|
||||||
# extraConfig = ''
|
|
||||||
# # bind to tailscale ip
|
|
||||||
# proxy_bind 100.88.118.60;
|
|
||||||
# # pam auth
|
|
||||||
# limit_except OPTIONS {
|
|
||||||
# auth_pam "Password Required";
|
|
||||||
# auth_pam_service_name "nginx";
|
|
||||||
# }
|
|
||||||
# '';
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# pc2 = "vinzenz-pc2.donkey-pentatonic.ts.net";
|
|
||||||
#in
|
|
||||||
{
|
{
|
||||||
#"vscode.${servicesDomain}" = lib.mkMerge [
|
addSSL = true;
|
||||||
# (mkServiceConfig pc2 8542)
|
enableACME = true;
|
||||||
# { locations."/".proxyWebsockets = true; }
|
locations."/" = {
|
||||||
#];
|
proxyPass = "http://${host}:${toString port}/";
|
||||||
|
extraConfig = ''
|
||||||
|
# bind to tailscale ip
|
||||||
|
proxy_bind 100.88.118.60;
|
||||||
|
# pam auth
|
||||||
|
limit_except OPTIONS {
|
||||||
|
auth_pam "Password Required";
|
||||||
|
auth_pam_service_name "nginx";
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
pc2 = "vinzenz-pc2.donkey-pentatonic.ts.net";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
"code.${servicesDomain}" = lib.mkMerge [
|
||||||
|
(mkServiceConfig {
|
||||||
|
host = pc2;
|
||||||
|
port = 8542;
|
||||||
|
})
|
||||||
|
{ locations."/".proxyWebsockets = true; }
|
||||||
|
];
|
||||||
|
"view.${servicesDomain}" = mkServiceConfig {
|
||||||
|
host = pc2;
|
||||||
|
port = 1313;
|
||||||
|
};
|
||||||
|
|
||||||
"zerforschen.plus" = {
|
"zerforschen.plus" = {
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
# Configure keymap in X11
|
# Configure keymap in X11
|
||||||
services.xserver.xkb = {
|
services.xserver.xkb = {
|
||||||
layout = "de";
|
layout = "de";
|
||||||
|
|
|
@ -1,9 +1,17 @@
|
||||||
{lib, ...}: {
|
{ lib, ... }:
|
||||||
|
{
|
||||||
boot = {
|
boot = {
|
||||||
kernelModules = [ "kvm-intel" ];
|
kernelModules = [ "kvm-intel" ];
|
||||||
extraModulePackages = [ ];
|
extraModulePackages = [ ];
|
||||||
initrd = {
|
initrd = {
|
||||||
availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
|
availableKernelModules = [
|
||||||
|
"xhci_pci"
|
||||||
|
"ahci"
|
||||||
|
"nvme"
|
||||||
|
"usbhid"
|
||||||
|
"usb_storage"
|
||||||
|
"sd_mod"
|
||||||
|
];
|
||||||
kernelModules = [ ];
|
kernelModules = [ ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -18,7 +26,10 @@
|
||||||
"/boot" = {
|
"/boot" = {
|
||||||
device = "/dev/disk/by-uuid/85D4-43FC";
|
device = "/dev/disk/by-uuid/85D4-43FC";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = ["fmask=0077" "dmask=0077"];
|
options = [
|
||||||
|
"fmask=0077"
|
||||||
|
"dmask=0077"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
8543
|
8543
|
||||||
8544
|
8544
|
||||||
80
|
80
|
||||||
|
1313
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue