Skip to content

Commit

Permalink
Fix: private_key_path option from sample config missing
Browse files Browse the repository at this point in the history
  • Loading branch information
ivard committed Dec 4, 2023
1 parent 138017e commit 85ffcdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class EmailConfiguration extends BaseConfiguration<EmailConfiguration> {
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 = "";
Expand Down Expand Up @@ -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; }
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/config.sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 85ffcdb

Please sign in to comment.