diff --git a/config/config.js b/config/config.js
index 497c356eaf0ddc63901ca92f594b36b024e7a26f..763c0be7e731e5fb8aca7ada73338e68e348f6c0 100644
--- a/config/config.js
+++ b/config/config.js
@@ -1,6 +1,7 @@
 module.exports = {
   development: {
     app: {
+      hostname: 'm4lab.hft-stuttgart.de',
       name: 'User Account Management',
       hostname: 'm4lab.hft-stuttgart.de/account',
       port: process.env.PORT || 9989
diff --git a/routes/routes.js b/routes/routes.js
index fd8a54530dce20c5c747c7fc8237dccfc1a54d66..c4755966ed472a52ec189f73c40524114f91ddf3 100644
--- a/routes/routes.js
+++ b/routes/routes.js
@@ -391,7 +391,7 @@ module.exports = function (app, config, passport) {
             emailSubject = "M4_LAB Password Reset";
             emailContent = "Hi User,\n\n"+
               "we've received a request to reset your password. If you didn't make the request, just ignore this email.\n\n"+
-              "Otherwise, you can reset your password using this link: http://" + req.headers.host + "/reset/" + token + "\n" +
+              "Otherwise, you can reset your password using this link: https://" + config.app.hostname + "/reset/" + token + "\n" +
               "This password reset is only valid for 1 hour.\n\n"+
               "Thanks,\nM4_LAB Team"