mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 08:45:02 +01:00
updates
This commit is contained in:
parent
ddd851ae6e
commit
d925b4783e
11 changed files with 23 additions and 60 deletions
|
|
@ -34,16 +34,6 @@
|
|||
zramSwap.enable = true;
|
||||
|
||||
services.openssh.enable = true;
|
||||
|
||||
# By default, Colmena will replace unknown remote profile
|
||||
# (unknown means the profile isn't in the nix store on the
|
||||
# host running Colmena) during apply (with the default goal,
|
||||
# boot, and switch).
|
||||
# If you share a hive with others, or use multiple machines,
|
||||
# and are not careful to always commit/push/pull changes
|
||||
# you can accidentaly overwrite a remote profile so in those
|
||||
# scenarios you might want to change this default to false.
|
||||
# deployment.replaceUnknownProfiles = true;
|
||||
};
|
||||
|
||||
dns1 = { name, nodes, modulesPath, ... }: {
|
||||
|
|
@ -112,32 +102,4 @@
|
|||
ATTR{address}=="96:00:03:91:16:47", NAME="eth0"
|
||||
'';
|
||||
};
|
||||
|
||||
/*host-b = {
|
||||
# Like NixOps and Morph, Colmena will attempt to connect to
|
||||
# the remote host using the attribute name by default. You
|
||||
# can override it like:
|
||||
deployment.targetHost = "dns2.infra.noratrieb.dev";
|
||||
|
||||
# It's also possible to override the target SSH port.
|
||||
# For further customization, use the SSH_CONFIG_FILE
|
||||
# environment variable to specify a ssh_config file.
|
||||
deployment.targetPort = 1234;
|
||||
|
||||
# Override the default for this target host
|
||||
deployment.replaceUnknownProfiles = false;
|
||||
|
||||
# You can filter hosts by tags with --on @tag-a,@tag-b.
|
||||
# In this example, you can deploy to hosts with the "web" tag using:
|
||||
# colmena apply --on @web
|
||||
# You can use globs in tag matching as well:
|
||||
# colmena apply --on '@infra-*'
|
||||
deployment.tags = [ "dns" "eu" ];
|
||||
|
||||
boot.loader.grub.device = "/dev/sda";
|
||||
fileSystems."/" = {
|
||||
device = "/dev/sda1";
|
||||
fsType = "ext4";
|
||||
};
|
||||
};*/
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ let
|
|||
dns1 = host "154.38.163.74" null;
|
||||
dns2 = host "128.140.3.7" "2a01:4f8:c2c:d616::";
|
||||
|
||||
vps1 = host "184.174.32.252" null;
|
||||
vps2 = host "161.97.165.1" null;
|
||||
vps1 = host "161.97.165.1" null;
|
||||
vps2 = host "184.174.32.252" null;
|
||||
in
|
||||
{
|
||||
SOA = {
|
||||
|
|
@ -47,20 +47,20 @@ let
|
|||
];
|
||||
|
||||
subdomains = {
|
||||
www = vps1;
|
||||
www = vps2;
|
||||
blog.CNAME = [ (cname "nilstrieb.github.io") ];
|
||||
|
||||
# apps
|
||||
bisect-rustc = vps1;
|
||||
cors-school = vps1 // {
|
||||
subdomains.api = vps1;
|
||||
bisect-rustc = vps2;
|
||||
cors-school = vps2 // {
|
||||
subdomains.api = vps2;
|
||||
};
|
||||
docker = vps1;
|
||||
hugo-chat = vps1 // {
|
||||
subdomains.api = vps1;
|
||||
docker = vps2;
|
||||
hugo-chat = vps2 // {
|
||||
subdomains.api = vps2;
|
||||
};
|
||||
olat = vps1;
|
||||
uptime = vps1;
|
||||
olat = vps2;
|
||||
uptime = vps2;
|
||||
|
||||
localhost.A = [ (a "127.0.0.1") ];
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ let
|
|||
"ns2.noratrieb.dev"
|
||||
];
|
||||
|
||||
A = [ (a "161.97.165.1") ];
|
||||
A = [ (a "184.174.32.252") ];
|
||||
AAAA = [ ];
|
||||
|
||||
subdomains = {
|
||||
|
|
|
|||
1
newinfra/nix/modules/ingress/default.nix
Normal file
1
newinfra/nix/modules/ingress/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ ... }: { }
|
||||
|
|
@ -3,11 +3,6 @@
|
|||
hosts: vps1
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Copy over some fun files
|
||||
ansible.builtin.copy:
|
||||
dest: /var/www/html/nora/
|
||||
src: "../vps1/nora/"
|
||||
mode: "u=rw,g=r,o=r"
|
||||
#####
|
||||
# END: docker compose up!
|
||||
#####
|
||||
|
|
|
|||
|
|
@ -14,6 +14,11 @@
|
|||
minute: "5"
|
||||
hour: "7"
|
||||
job: "/apps/backup.sh"
|
||||
- name: Copy over some fun files
|
||||
ansible.builtin.copy:
|
||||
dest: /var/www/html/nora/
|
||||
src: "../vps2/nora/"
|
||||
mode: "u=rw,g=r,o=r"
|
||||
#####
|
||||
# APP: prometheus, /apps/prometheus
|
||||
- name: Create /apps/prometheus
|
||||
|
|
|
|||
|
|
@ -32,8 +32,3 @@ vps1.nilstrieb.dev {
|
|||
root * /var/www/html/debug
|
||||
file_server
|
||||
}
|
||||
|
||||
noratrieb.dev {
|
||||
root * /var/www/html/nora
|
||||
file_server
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,3 +78,8 @@ olat.nilstrieb.dev:8088 {
|
|||
uptime.nilstrieb.dev {
|
||||
reverse_proxy * localhost:5010
|
||||
}
|
||||
|
||||
noratrieb.dev {
|
||||
root * /var/www/html/nora
|
||||
file_server
|
||||
}
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
Loading…
Add table
Add a link
Reference in a new issue