Alternative domain for nextcloud

This commit is contained in:
Paul-Henri Froidmont 2025-11-23 23:06:16 +01:00
parent 73030033d0
commit b3b6ec1cbb
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
2 changed files with 14 additions and 4 deletions

View file

@ -31,6 +31,7 @@ in
services.nginx.virtualHosts."${config.services.nextcloud.hostName}" = { services.nginx.virtualHosts."${config.services.nextcloud.hostName}" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
serverAliases = [ "cloud.froidmont.solutions" ];
}; };
# Can't change home dir for now, use bind mount as workaround # Can't change home dir for now, use bind mount as workaround
@ -64,6 +65,7 @@ in
overwriteProtocol = "https"; overwriteProtocol = "https";
default_phone_region = "BE"; default_phone_region = "BE";
maintenance_window_start = 1; maintenance_window_start = 1;
trusted_domains = [ "cloud.froidmont.solutions" ];
}; };
phpOptions = { phpOptions = {

View file

@ -4,14 +4,22 @@ locals {
hel1_ipv6 = "2a01:4f9:3100:1202::2" hel1_ipv6 = "2a01:4f9:3100:1202::2"
} }
data "hetznerdns_zone" "banditlair_zone" {
name = "banditlair.com"
}
data "hetznerdns_zone" "froidmont_solutions_zone" { data "hetznerdns_zone" "froidmont_solutions_zone" {
name = "froidmont.solutions" name = "froidmont.solutions"
} }
resource "hetznerdns_record" "nextcloud_froidmont_solutions_a" {
zone_id = data.hetznerdns_zone.froidmont_solutions_zone.id
name = "cloud"
value = local.hel1_ip
type = "A"
ttl = 600
}
data "hetznerdns_zone" "banditlair_zone" {
name = "banditlair.com"
}
resource "hetznerdns_record" "banditlair_hcloud_a" { resource "hetznerdns_record" "banditlair_hcloud_a" {
zone_id = data.hetznerdns_zone.banditlair_zone.id zone_id = data.hetznerdns_zone.banditlair_zone.id
name = "@" name = "@"