Remove unnecessary nginx in mailserver
This commit is contained in:
parent
03b6fbc7db
commit
44ab3f90a5
2 changed files with 1 additions and 15 deletions
|
@ -1,9 +1,6 @@
|
||||||
{ config, lib, pkgs, mailserver, ... }:
|
{ config, lib, pkgs, mailserver, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [ mailserver.nixosModule ];
|
||||||
./nginx
|
|
||||||
mailserver.nixosModule
|
|
||||||
];
|
|
||||||
|
|
||||||
config = lib.mkIf config.services.mailserver.enable {
|
config = lib.mkIf config.services.mailserver.enable {
|
||||||
mailserver = {
|
mailserver = {
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
{
|
|
||||||
services.nginx.virtualHosts."mx.nixfox.ca" = lib.mkIf config.mailserver.enable {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://127.0.0.1:1390";
|
|
||||||
proxyWebsockets = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue