This commit is contained in:
Danilo Reyes
2026-02-05 10:41:29 -06:00
parent 3517e394c6
commit cb1776d670

View File

@@ -38,7 +38,7 @@ let
in in
{ {
options.my.servers = { options.my.servers = {
nextcloud = setup.mkOptions "nextcloud" "cloud" 80; nextcloud = setup.mkOptions "nextcloud" "cloud" 8081;
collabora = setup.mkOptions "collabora" "collabora" 9980; collabora = setup.mkOptions "collabora" "collabora" 9980;
go-vod.enable = lib.mkEnableOption "Go-VOD video transcoding service"; go-vod.enable = lib.mkEnableOption "Go-VOD video transcoding service";
}; };
@@ -68,8 +68,7 @@ in
; ;
}; };
}; };
services = { services.nextcloud = {
nextcloud = {
enable = true; enable = true;
https = false; # vps https = false; # vps
package = pkgs.nextcloud32; package = pkgs.nextcloud32;
@@ -162,22 +161,7 @@ in
all.pdlib all.pdlib
all.bz2 all.bz2
]; ];
};
nginx.virtualHosts.${cfg.host} = {
forceSSL = false;
enableACME = false;
http2 = false;
listen = [
{
addr = config.my.ips.wg-server;
port = 8081;
}
{
addr = config.my.localhost;
port = 8081;
}
];
};
}; };
virtualisation.oci-containers.containers = { virtualisation.oci-containers.containers = {
go-vod = lib.mkIf config.my.servers.go-vod.enable { go-vod = lib.mkIf config.my.servers.go-vod.enable {
@@ -254,10 +238,10 @@ in
my.servers.nextcloud.useDefaultProxy = false; my.servers.nextcloud.useDefaultProxy = false;
services.nginx.virtualHosts = { services.nginx.virtualHosts = {
"${cfg.host}" = { "${cfg.host}" = {
forceSSL = true; forceSSL = false;
enableACME = true; enableACME = false;
http2 = true; http2 = false;
default = true; default = false;
serverAliases = [ "cloud.rotehaare.art" ]; serverAliases = [ "cloud.rotehaare.art" ];
extraConfig = '' extraConfig = ''
add_header X-XSS-Protection "1; mode=block" always; add_header X-XSS-Protection "1; mode=block" always;
@@ -272,11 +256,6 @@ in
"~ ^/nextcloud/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|oc[ms]-provider/.+|.+/richdocumentscode/proxy).php(?:$|/)" = "~ ^/nextcloud/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|oc[ms]-provider/.+|.+/richdocumentscode/proxy).php(?:$|/)" =
{ }; { };
}; };
}
// lib.optionalAttrs cfg.enable {
forceSSL = false;
enableACME = false;
http2 = false;
listen = [ listen = [
{ {
addr = config.my.ips.wg-server; addr = config.my.ips.wg-server;