# Path to where plugins are installed:
#
# path.plugins: /path/to/plugins
+#
+{%- if server.snapshot is defined %}
+path.repo:
+ {%- for repo_name, repo in server.snapshot.iteritems() %}
+ - {{ repo.path }}
+ {%- endfor %}
+{%- endif %}
#################################### Plugin ###################################
#
# http.max_content_length: 100mb
+# Enable or disable cross-origin resource sharing
+{%- if server.get('cors', {}).enabled is defined %}
+http.cors.enabled: {{ server.cors.enabled|lower }}
+{%- endif %}
+
+# Which origins to allow.
+{%- if server.get('cors', {}).allow_origin is defined %}
+http.cors.allow-origin: {{ server.cors.allow_origin }}
+{%- endif %}
+
# Disable HTTP completely:
#
# http.enabled: false
#monitor.jvm.gc.old.warn: 10s
#monitor.jvm.gc.old.info: 5s
#monitor.jvm.gc.old.debug: 2s
+
+{%- if server.script is mapping %}
+script: {{ server.script|yaml }}
+{%- endif %}