diff --git a/src/main/java/foundation/privacybydesign/email/EmailConfiguration.java b/src/main/java/foundation/privacybydesign/email/EmailConfiguration.java index 4b17703..a2c6ca9 100644 --- a/src/main/java/foundation/privacybydesign/email/EmailConfiguration.java +++ b/src/main/java/foundation/privacybydesign/email/EmailConfiguration.java @@ -31,6 +31,7 @@ public class EmailConfiguration extends BaseConfiguration { private String mail_from_address = ""; private boolean mail_starttls_required = true; private String secret_key = ""; + private String private_key_path = "sk.der"; private long token_validity = 0; private String server_name = ""; private String human_readable_name = ""; @@ -73,7 +74,7 @@ public String getVerifyEmailBody(String language) { } public PrivateKey getPrivateKey() throws KeyManagementException { - return BaseConfiguration.getPrivateKey("sk.der"); + return BaseConfiguration.getPrivateKey(private_key_path); } public String getMailHost() { return mail_host; } diff --git a/src/main/resources/config.sample.json b/src/main/resources/config.sample.json index a0a61ff..412c7be 100644 --- a/src/main/resources/config.sample.json +++ b/src/main/resources/config.sample.json @@ -4,8 +4,8 @@ "nl": "Voeg e-mailadres toe aan je Yivi-app" }, "server_url": { - "en": "http://localhost:8080", - "nl": "http://localhost:8080" + "en": "http://localhost:8080/en/", + "nl": "http://localhost:8080/nl/" }, "mail_host": "mailhog.localhost", "mail_port": 1025,