modularizing of vps ips
This commit is contained in:
@@ -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}}";
|
||||
|
||||
@@ -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 = ''
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -59,7 +59,7 @@ in
|
||||
bind_addresses = [
|
||||
config.my.localhost
|
||||
config.my.localhost6
|
||||
"10.77.0.2"
|
||||
config.my.wgServerIp
|
||||
];
|
||||
type = "http";
|
||||
tls = false;
|
||||
|
||||
Reference in New Issue
Block a user