diff --git a/files/etc/nginx/hedgedocs-nginx.conf.j2 b/files/etc/nginx/hedgedocs-nginx.conf.j2
index 05ae9945d9fc693175e26f6d8a38d63825f1aa11..e0556b7061c915a0baa30bb0d4890063124166f5 100644
--- a/files/etc/nginx/hedgedocs-nginx.conf.j2
+++ b/files/etc/nginx/hedgedocs-nginx.conf.j2
@@ -3,7 +3,7 @@ map $http_upgrade $connection_upgrade {
         ''      close;
 }
 server {
-        server_name {{ service_hedgedocs_domain }};
+        server_name {{ service_hedgedocs_domain.split("https://")[0] | lower  }};
 
         location / {
                 proxy_pass http://127.0.0.1:3000;
@@ -29,8 +29,6 @@ server {
     ssl_certificate /etc/letsencrypt/live/{{ service_hedgedocs_domain }}/fullchain.pem;
     ssl_certificate_key /etc/letsencrypt/live/{{ service_hedgedocs_domain }}/fullchain.pem;
 
-    include options-ssl-nginx.conf;
-
   	# Improve HTTPS performance with session resumption
   	ssl_session_cache shared:SSL:10m;
   	ssl_session_timeout 10m;
diff --git a/tasks/configuration.yml b/tasks/configuration.yml
index 76f5d2b165bb10a26704f1c2aad8845de9c8413e..ccf9f4d6532e0d9be931da0fb2d6090677432058 100644
--- a/tasks/configuration.yml
+++ b/tasks/configuration.yml
@@ -5,7 +5,7 @@
 - name: Configuration du service HedgeDocs
   template:
     src: files/config.json.j2
-    dest: /home/hedgedocs/hedgedoc/onfig.json
+    dest: /home/hedgedocs/hedgedoc/config.json
     owner: hedgedocs
     group: www-data
     mode: 0644