Switching to .lan from .local to prevent mDNS issues
This commit is contained in:
Submodule bash-scripts updated: bc58d71ed5...c0a7449e31
@@ -54,7 +54,7 @@
|
||||
enable = true;
|
||||
virtualHosts = {
|
||||
# Jellyfin
|
||||
"mindforge.randomctf.local" = {
|
||||
"mindforge.randomctf.lan" = {
|
||||
extraConfig = ''
|
||||
access_log /var/log/nginx/access.mindforge.log;
|
||||
'';
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
settings.server = {
|
||||
http_addr = "127.0.0.1";
|
||||
http_port = 3000;
|
||||
domain = "grafana.randomctf.local";
|
||||
domain = "grafana.randomctf.lan";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -31,19 +31,19 @@
|
||||
enable = true;
|
||||
virtualHosts = {
|
||||
# Grafana
|
||||
"grafana.randomctf.local" = {
|
||||
"grafana.randomctf.lan" = {
|
||||
extraConfig = ''
|
||||
access_log /var/log/nginx/access.grafana.log;
|
||||
'';
|
||||
|
||||
locations."/".extraConfig = ''
|
||||
proxy_set_header Host grafana.randomctf.local;
|
||||
proxy_set_header Host grafana.randomctf.lan;
|
||||
proxy_pass http://localhost:3000/;
|
||||
'';
|
||||
};
|
||||
|
||||
# Prometheus
|
||||
"prometheus.randomctf.local" = {
|
||||
"prometheus.randomctf.lan" = {
|
||||
extraConfig = ''
|
||||
access_log /var/log/nginx/access.prometheus.log;
|
||||
'';
|
||||
|
||||
@@ -1,28 +1,30 @@
|
||||
{ ip_address, hostname, open_ports, lib }: let
|
||||
{ ip_address, hostname, open_ports, lib, }: let
|
||||
gateway_ip = "192.168.100.1";
|
||||
in {
|
||||
# Configure hostname.
|
||||
networking.hostName = hostname;
|
||||
|
||||
# Bug fix
|
||||
systemd.services.systemd-networkd-wait-online.enable = lib.mkForce false;
|
||||
|
||||
# DNS config
|
||||
networking.nameservers = [ gateway_ip ];
|
||||
|
||||
# Allowed Ports
|
||||
networking.firewall.allowedTCPPorts = open_ports;
|
||||
|
||||
# Conigure a static IP address.
|
||||
networking.useDHCP = false;
|
||||
networking.useNetworkd = true;
|
||||
networking.enableIPv6 = false;
|
||||
|
||||
# Bug fix
|
||||
systemd.services.systemd-networkd-wait-online.enable = lib.mkForce false;
|
||||
|
||||
networking.defaultGateway = {
|
||||
address = gateway_ip;
|
||||
interface = "enp6s18";
|
||||
};
|
||||
|
||||
networking.nameservers = [ gateway_ip ];
|
||||
networking.firewall.allowedTCPPorts = open_ports;
|
||||
networking.interfaces.enp6s18.ipv4.addresses = [
|
||||
{
|
||||
address = ip_address;
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
networking.defaultGateway = {
|
||||
address = gateway_ip;
|
||||
interface = "enp6s18";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
r330-media = "ssh media@192.168.100.40";
|
||||
r330-logging = "ssh logging@192.168.100.41";
|
||||
mnemosyne = "ssh mnemosyne@192.168.100.42";
|
||||
mindforge = "ssh mindforge@mindforge.randomctf.local";
|
||||
mindforge = "ssh mindforge@mindforge.randomctf.lan";
|
||||
|
||||
# Nix Specific aliases
|
||||
update-config = "sudo nixos-rebuild switch --flake ~/dotfiles";
|
||||
|
||||
Reference in New Issue
Block a user