forked from M-Labs/it-infra
update email settings
This commit is contained in:
parent
13bfee7be2
commit
dc08412ba2
|
@ -529,7 +529,7 @@ in
|
||||||
|
|
||||||
mailer = {
|
mailer = {
|
||||||
ENABLED = true;
|
ENABLED = true;
|
||||||
HOST = "ssl.serverraum.org:587";
|
HOST = "mail.m-labs.hk:587";
|
||||||
FROM = "sysop@m-labs.hk";
|
FROM = "sysop@m-labs.hk";
|
||||||
USER = "sysop@m-labs.hk";
|
USER = "sysop@m-labs.hk";
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,13 +7,13 @@ in {
|
||||||
pythonPackages = self: [ pkg ];
|
pythonPackages = self: [ pkg ];
|
||||||
module = "rfq:app";
|
module = "rfq:app";
|
||||||
env = [
|
env = [
|
||||||
"FLASK_MAIL_SERVER=ssl.serverraum.org"
|
"FLASK_MAIL_SERVER=mail.m-labs.hk"
|
||||||
"FLASK_MAIL_PORT=465"
|
"FLASK_MAIL_PORT=465"
|
||||||
"FLASK_MAIL_USE_SSL=True"
|
"FLASK_MAIL_USE_SSL=True"
|
||||||
"FLASK_MAIL_USERNAME=sales@m-labs.hk"
|
"FLASK_MAIL_USERNAME=sysop@m-labs.hk"
|
||||||
"FLASK_MAIL_PASSWORD=${import /etc/nixos/secret/sales_password.nix}"
|
"FLASK_MAIL_PASSWORD=${import /etc/nixos/secret/sysop_password.nix}"
|
||||||
"FLASK_MAIL_RECIPIENT=sales@m-labs.hk"
|
"FLASK_MAIL_RECIPIENT=sales@m-labs.hk"
|
||||||
"FLASK_MAIL_SENDER=sales@m-labs.hk"
|
"FLASK_MAIL_SENDER=sysop@m-labs.hk"
|
||||||
];
|
];
|
||||||
socket = "${config.services.uwsgi.runDir}/uwsgi-rfq.sock";
|
socket = "${config.services.uwsgi.runDir}/uwsgi-rfq.sock";
|
||||||
# allow access from nginx
|
# allow access from nginx
|
||||||
|
|
Loading…
Reference in New Issue