mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-23 01:49:08 +01:00
Compare commits
No commits in common. "cfa3792d934a77158b240352ccdaeab78d601365" and "3f7b4a894dbefadc8234cae74198749f3de937bf" have entirely different histories.
cfa3792d93
...
3f7b4a894d
2 changed files with 3 additions and 37 deletions
|
|
@ -41,7 +41,9 @@
|
||||||
caddy.virtualHosts."dav.${sproutedDomain}" = {
|
caddy.virtualHosts."dav.${sproutedDomain}" = {
|
||||||
inherit (config.custom.web-services.radicale) port;
|
inherit (config.custom.web-services.radicale) port;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
respond /.web/ "Access denied" 403 { close }
|
respond /.web/ "Access denied" 403 {
|
||||||
|
close
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -80,11 +82,6 @@
|
||||||
branding.name = "SproutedBin";
|
branding.name = "SproutedBin";
|
||||||
};
|
};
|
||||||
|
|
||||||
screego = {
|
|
||||||
enable = true;
|
|
||||||
domain = "mirror.${sproutedDomain}";
|
|
||||||
};
|
|
||||||
|
|
||||||
radicale = {
|
radicale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "dav.${privateDomain}";
|
domain = "dav.${privateDomain}";
|
||||||
|
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.custom.web-services.screego;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.custom.web-services.screego = {
|
|
||||||
enable = lib.mkEnableOption "";
|
|
||||||
domain = lib.mkOption {
|
|
||||||
type = lib.types.nonEmptyStr;
|
|
||||||
default = "";
|
|
||||||
};
|
|
||||||
port = lib.mkOption {
|
|
||||||
type = lib.types.port;
|
|
||||||
default = 5050;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
services.screego = {
|
|
||||||
enable = true;
|
|
||||||
openFirewall = true;
|
|
||||||
settings = {
|
|
||||||
SCREEGO_EXTERNAL_IP = config.custom.networking.underlay.address;
|
|
||||||
SCREEGO_SERVER_ADDRESS = "127.0.0.1:${toString cfg.port}";
|
|
||||||
SCREEGO_TURN_ADDRESS = "${config.custom.networking.underlay.address}:3478";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
custom.services.caddy.virtualHosts.${cfg.domain}.port = cfg.port;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue