forked from Fediversity/Fediversity
Remove SSL in Garage VM
This commit is contained in:
parent
14de9dec55
commit
f160bc3f4c
|
@ -159,10 +159,9 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."garagePortProxy" = {
|
services.nginx.virtualHosts.${fedicfg.web.rootDomain} = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
serverName = fedicfg.web.rootDomain;
|
|
||||||
serverAliases = lib.mapAttrsToList (bucket: _: fedicfg.web.domainForBucket bucket) cfg.ensureBuckets; ## TODO: use wildcard certificates?
|
serverAliases = lib.mapAttrsToList (bucket: _: fedicfg.web.domainForBucket bucket) cfg.ensureBuckets; ## TODO: use wildcard certificates?
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:3902";
|
proxyPass = "http://localhost:3902";
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{ config, modulesPath, ... }:
|
{ lib, config, modulesPath, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
inherit (lib) mkVMOverride;
|
||||||
|
|
||||||
fedicfg = config.fediversity.internal.garage;
|
fedicfg = config.fediversity.internal.garage;
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
@ -9,6 +11,11 @@ in {
|
||||||
(modulesPath + "/virtualisation/qemu-vm.nix")
|
(modulesPath + "/virtualisation/qemu-vm.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.nginx.virtualHosts.${fedicfg.web.rootDomain} = {
|
||||||
|
forceSSL = mkVMOverride false;
|
||||||
|
enableACME = mkVMOverride false;
|
||||||
|
};
|
||||||
|
|
||||||
virtualisation.diskSize = 2048;
|
virtualisation.diskSize = 2048;
|
||||||
virtualisation.forwardPorts = [
|
virtualisation.forwardPorts = [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue