mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Assign floating ip to backend1
This commit is contained in:
parent
fa9752c4ba
commit
2e7e4e7ec3
4 changed files with 11 additions and 0 deletions
8
dns.tf
8
dns.tf
|
|
@ -23,6 +23,14 @@ resource "hetznerdns_record" "banditlair_dedicated_a" {
|
|||
ttl = 600
|
||||
}
|
||||
|
||||
resource "hetznerdns_record" "nextcloud_a" {
|
||||
zone_id = data.hetznerdns_zone.banditlair_zone.id
|
||||
name = "cloud"
|
||||
value = data.hcloud_floating_ip.main_ip.ip_address
|
||||
type = "A"
|
||||
ttl = 600
|
||||
}
|
||||
|
||||
# Matrix
|
||||
resource "hetznerdns_record" "matrix_a" {
|
||||
zone_id = data.hetznerdns_zone.banditlair_zone.id
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@
|
|||
({
|
||||
networking.hostName = "backend1";
|
||||
networking.domain = "banditlair.com";
|
||||
networking.localCommands = "ip addr add 95.216.177.3/32 dev enp1s0";
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 64738 ];
|
||||
networking.firewall.allowedUDPPorts = [ 64738 ];
|
||||
services.custom-backup-job = {
|
||||
|
|
|
|||
|
|
@ -3,5 +3,6 @@
|
|||
services.openssh.enable = true;
|
||||
users.users.root.openssh.authorizedKeys.keyFiles = [
|
||||
../ssh_keys/phfroidmont-desktop.pub
|
||||
../ssh_keys/froidmpa-laptop.pub
|
||||
];
|
||||
}
|
||||
|
|
|
|||
1
ssh_keys/froidmpa-laptop.pub
Normal file
1
ssh_keys/froidmpa-laptop.pub
Normal file
|
|
@ -0,0 +1 @@
|
|||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILu2vaezsTNaTY8X4o2mFOmQguPnSAMOoPZRlW2ACAku froidmpa@froidmpa-laptop-2021-06-30
|
||||
Loading…
Add table
Add a link
Reference in a new issue