Merge pull request 'configuration for imap.deuxfleurs.fr & smtp.deuxfleurs.fr as part of email service for d53 + convert tabs into spaces (couldn't help myself)' (#8) from feat/d53-email into main

Reviewed-on: Deuxfleurs/nixcfg#8
This commit is contained in:
adrien 2023-03-17 08:53:27 +00:00
commit fd4f601ee0

View file

@ -63,6 +63,7 @@ job "email" {
port = "imap_port" port = "imap_port"
tags = [ tags = [
"dovecot" "dovecot"
"d53-a imap.deuxfleurs.fr",
] ]
check { check {
type = "tcp" type = "tcp"
@ -281,9 +282,10 @@ job "email" {
tags = [ tags = [
"postfix", "postfix",
"(diplonat (tcp_port 25 465 587))", "(diplonat (tcp_port 25 465 587))",
"d53-a email-in.deuxfleurs.fr", "d53-a email-in.deuxfleurs.fr",
# ipv6 is commented for now as port is not open in firewall (TODO) "d53-a smtp.deuxfleurs.fr",
# "d53-aaaa email-in.deuxfleurs.fr" # ipv6 is commented for now as port is not open in firewall (TODO)
# "d53-aaaa email-in.deuxfleurs.fr"
] ]
check { check {
type = "tcp" type = "tcp"
@ -409,12 +411,12 @@ job "email" {
readonly_rootfs = true readonly_rootfs = true
ports = [ "alps_web_port" ] ports = [ "alps_web_port" ]
args = [ args = [
"-skiptlsverification", "-skiptlsverification",
"-theme", "-theme",
"alps", "alps",
"imaps://imap.deuxfleurs.fr:993", "imaps://imap.deuxfleurs.fr:993",
"smtps://smtp.deuxfleurs.fr:465" "smtps://smtp.deuxfleurs.fr:465"
] ]
} }
resources { resources {
@ -463,7 +465,7 @@ job "email" {
readonly_rootfs = false readonly_rootfs = false
ports = [ "sogo_web_port" ] ports = [ "sogo_web_port" ]
volumes = [ volumes = [
"secrets/sogo.conf:/etc/sogo/sogo.conf", "secrets/sogo.conf:/etc/sogo/sogo.conf",
] ]
} }