0
0
Fork 0
mirror of https://git.verdigado.com/NB-Public/simple-wkd.git synced 2024-12-06 14:52:41 +01:00

Return to debian for docker

This commit is contained in:
Delta1925 2023-04-16 22:20:45 +02:00
parent da472a23ff
commit ca8bcfaa96
No known key found for this signature in database
GPG key ID: 1C21ACE44193CB25
5 changed files with 17 additions and 11 deletions

3
backend/.gitignore vendored
View file

@ -1,4 +1,3 @@
/target
/data
/logs
config.toml
/logs

View file

@ -1,16 +0,0 @@
variant = "Advanced"
max_age = 900
cleanup_interval = 21600
allowed_domains = ["example.org", "example.com"]
port = 8080
bind_host = "0.0.0.0"
external_url = "http://localhost:8080"
[mail_settings]
smtp_host = "mail.example.org"
smtp_username = "keyservice"
smtp_password = "verysecurepassword"
smtp_port = 465
smtp_tls = "Tls"
mail_from = "key-submission@example.org"
mail_subject = "Please confirm to %a your public key"

View file

@ -85,6 +85,7 @@ fn get_mailer() -> SmtpTransport {
.credentials(creds)
.port(SETTINGS.mail_settings.smtp_port)
.build();
debug!("Checking connection...");
if mailer.test_connection().is_err() {
warn!("Connection test to smtp host failed!");
}