diff --git a/smartgears/smartgears/defaults/main.yml b/smartgears/smartgears/defaults/main.yml
index a6a99e92..cfe8eced 100644
--- a/smartgears/smartgears/defaults/main.yml
+++ b/smartgears/smartgears/defaults/main.yml
@@ -21,6 +21,9 @@ smartgears_distribution_version: latest
smartgears_global_base_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}'
smartgears_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ smartgears_gcube_repository }}'
+# Change to 'True' when the stable version will be >= 2.2.0-4.13.1
+smartgears_set_protocol_in_conf: False
+
smartgears_name: smartgears-distribution
smartgears_group_id: org.gcube.distribution
smartgears_extension: tar.gz
diff --git a/smartgears/smartgears/templates/container.xml.j2 b/smartgears/smartgears/templates/container.xml.j2
index 69100e35..b27fa965 100644
--- a/smartgears/smartgears/templates/container.xml.j2
+++ b/smartgears/smartgears/templates/container.xml.j2
@@ -14,7 +14,9 @@
{{ item.http_port }}
{% endif %}
{% endif %}
-
+ {% if smartgears_set_protocol_in_conf %}
+ http
+ {% endif %}
{{ smartgears_country }}
{{ smartgears_location }}