mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Alternative domain for nextcloud
This commit is contained in:
parent
73030033d0
commit
b3b6ec1cbb
2 changed files with 14 additions and 4 deletions
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -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 = "@"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue