move nextcloud to cloud.rpqt.fr
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
let
|
let
|
||||||
domain = "home.rpqt.fr";
|
fqdn = "cloud.rpqt.fr";
|
||||||
fqdn = "cloud.${domain}";
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@@ -52,7 +51,14 @@ in
|
|||||||
|
|
||||||
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
|
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = domain;
|
enableACME = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Redirect internal domain to the public one
|
||||||
|
services.nginx.virtualHosts."cloud.home.rpqt.fr" = {
|
||||||
|
forceSSL = true;
|
||||||
|
useACMEHost = "home.rpqt.fr";
|
||||||
|
locations."/".return = "301 http://${fqdn}$request_uri";
|
||||||
};
|
};
|
||||||
|
|
||||||
clan.core.vars.generators.nextcloud = {
|
clan.core.vars.generators.nextcloud = {
|
||||||
|
|||||||
Reference in New Issue
Block a user