modularizing of vps ips

This commit is contained in:
2025-09-16 14:56:42 -06:00
parent cfca87a703
commit 17b2d98b6c
8 changed files with 29 additions and 16 deletions

View File

@@ -196,7 +196,7 @@
icon = "${cfg.name}.png";
href = cfg.url;
widget = {
url = "http://10.77.0.2:8081";
url = "http://${config.my.wgServerIp}:8081";
type = cfg.name;
username = "{{HOMEPAGE_VAR_NEXTCLOUD_USERNAME}}";
password = "{{HOMEPAGE_VAR_NEXTCLOUD_PASSWORD}}";

View File

@@ -126,14 +126,14 @@ in
trusted_proxies = [
config.my.localhost
config.my.localhost6
config.my.routerip
"10.77.0.1" # vps
config.my.routerIp
config.my.wgVpsIp
];
trusted_domains = [
cfg.host
config.my.ips.${config.networking.hostName}
"localhost"
"cloud.rotehaare.art"
"cloud.servidos.lat"
];
overwriteprotocol = "https";
"overwrite.cli.url" = "${cfg.url}";
@@ -180,11 +180,11 @@ in
#vps
listen = [
{
addr = "10.77.0.2";
addr = config.my.wgServerIp;
port = 8081;
}
{
addr = "127.0.0.1";
addr = config.my.localhost;
port = 8081;
}
];
@@ -257,7 +257,7 @@ in
environment = {
TZ = config.my.timeZone;
domain = cfg.host;
aliasgroup1 = "cloud.servidos.lat:443";
aliasgroup1 = "${cfg.host}:443";
aliasgroup2 = "cloud.rotehaare.art:443";
dictionaries = "en_CA en_US es_MX es_ES fr_FR it pt_BR ru";
extra_params = ''

View File

@@ -16,7 +16,10 @@ in
log_level = "warn";
data_directory = "/var/lib/readeck";
};
server.port = cfg.port;
server = {
port = cfg.port;
host = cfg.ip;
};
};
};
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (setup.proxyReverse cfg);

View File

@@ -59,7 +59,7 @@ in
bind_addresses = [
config.my.localhost
config.my.localhost6
"10.77.0.2"
config.my.wgServerIp
];
type = "http";
tls = false;