Fix some firewall rules
This commit is contained in:
parent
7e40fd4fb3
commit
d3a7fe8158
6 changed files with 26 additions and 17 deletions
|
@ -1,20 +1,25 @@
|
|||
{ config, ... }:
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
imports = [ ./nginx ];
|
||||
|
||||
services.go-autoconfig = {
|
||||
enable = config.services.mailserver.enable;
|
||||
settings = {
|
||||
service_addr = ":1323";
|
||||
domain = "autoconfig.nixfox.ca";
|
||||
imap = {
|
||||
server = "mx.nixfox.ca";
|
||||
port = 143;
|
||||
};
|
||||
smtp = {
|
||||
server = "mx.nixfox.ca";
|
||||
port = 587;
|
||||
config = lib.mkIf config.services.mailserver.enable {
|
||||
services = {
|
||||
go-autoconfig = {
|
||||
enable = true;
|
||||
settings = {
|
||||
service_addr = ":1323";
|
||||
domain = "autoconfig.nixfox.ca";
|
||||
imap = {
|
||||
server = "mx.nixfox.ca";
|
||||
port = 143;
|
||||
};
|
||||
smtp = {
|
||||
server = "mx.nixfox.ca";
|
||||
port = 587;
|
||||
};
|
||||
};
|
||||
};
|
||||
cloudflare-dyndns.domains = [ config.services.go-autoconfig.settings.domain ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue