Commit d2ea6268 authored by Tristan Cavelier's avatar Tristan Cavelier

cloudooo: add timeout parameter

parent 8b5ff33f
...@@ -36,6 +36,10 @@ ...@@ -36,6 +36,10 @@
} }
} }
}, },
"timeout": {
"description": "Configure apache with this timeout",
"type": "integer"
},
"mimetype-entry-addition": { "mimetype-entry-addition": {
"description": "The list of entry to add to the cloudooo mimetype registry. Each entry should on one line which format is: \"<source_mimetype> <destination_mimetype> <handler>\"", "description": "The list of entry to add to the cloudooo mimetype registry. Each entry should on one line which format is: \"<source_mimetype> <destination_mimetype> <handler>\"",
"type": "string" "type": "string"
......
...@@ -17,6 +17,12 @@ ...@@ -17,6 +17,12 @@
{% endif -%} {% endif -%}
{% do assert(backend_count > 0) -%} {% do assert(backend_count > 0) -%}
{% set timeout = instance_parameter_dict['timeout'] | int -%}
{% if instance_parameter_dict.get('timeout-parameter-name') -%}
{% set timeout = slapparameter_dict.get(instance_parameter_dict['timeout-parameter-name'], timeout) | int -%}
{% endif -%}
{% do assert(timeout > 0) -%}
{% set ssl_parameter_dict = instance_parameter_dict.get('ssl', {}) %} {% set ssl_parameter_dict = instance_parameter_dict.get('ssl', {}) %}
{% if instance_parameter_dict.get('ssl-dict-parameter-name') -%} {% if instance_parameter_dict.get('ssl-dict-parameter-name') -%}
{% set ssl_parameter_dict = slapparameter_dict.get(instance_parameter_dict['ssl-dict-parameter-name'], ssl_parameter_dict) -%} {% set ssl_parameter_dict = slapparameter_dict.get(instance_parameter_dict['ssl-dict-parameter-name'], ssl_parameter_dict) -%}
...@@ -93,7 +99,7 @@ pid-file = ${directory:run}/apache.pid ...@@ -93,7 +99,7 @@ pid-file = ${directory:run}/apache.pid
error-log = ${directory:log}/apache-error.log error-log = ${directory:log}/apache-error.log
access-log = ${directory:log}/apache-access.log access-log = ${directory:log}/apache-access.log
# Apache 2.4's default value (60 seconds) can be a bit too short # Apache 2.4's default value (60 seconds) can be a bit too short
timeout = 300 timeout = {{ timeout }}
# Basic SSL server configuration # Basic SSL server configuration
cert = ${apache-ssl:cert} cert = ${apache-ssl:cert}
key = ${apache-ssl:key} key = ${apache-ssl:key}
......
...@@ -4,6 +4,9 @@ port-parameter-name = tcpv4-port ...@@ -4,6 +4,9 @@ port-parameter-name = tcpv4-port
port = 8000 port = 8000
backend-count-parameter-name = backend-count backend-count-parameter-name = backend-count
backend-count = 1 backend-count = 1
timeout-parameter-name = timeout
# timeout in seconds
timeout = 600
ssl-dict-parameter-name = ssl ssl-dict-parameter-name = ssl
#ssl-dict = #ssl-dict =
mimetype-entry-addition-parameter-name = mimetype-entry-addition mimetype-entry-addition-parameter-name = mimetype-entry-addition
...@@ -99,5 +102,5 @@ extra-context = ...@@ -99,5 +102,5 @@ extra-context =
[template-cloudooo] [template-cloudooo]
recipe = slapos.recipe.build:download recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-cloudoo.cfg.in url = ${:_profile_base_location_}/instance-cloudoo.cfg.in
md5sum = b23e68b3b76b7e7cba8df3a6c1dd5b4c md5sum = 7134b253ab5dfba520a31739fa611de6
mode = 640 mode = 640
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment