diff --git a/config/config.js b/config/config.js
index 7ab4184fa76c46d595bd4cccc6bb1a6242780055..8bdb6939cde8a3e0bc435bf8cc2b48578cedbeff 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',
       port: process.env.PORT || 9989
     },
diff --git a/routes/routes.js b/routes/routes.js
index 8461d3a8ab2fa2c8159295c60975d6f329bd35b0..ca2d854ef14d5671a589c675b6d26ab94a6e4ea8 100644
--- a/routes/routes.js
+++ b/routes/routes.js
@@ -314,7 +314,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"