Install and configure Scriptorium

This commit is contained in:
2026-09-09 14:36:55 +00:00
parent 2cd69a4b2e
commit 90d7f45eaa
11 changed files with 381 additions and 2 deletions

38
templates/config.yml.j2 Normal file
View File

@@ -0,0 +1,38 @@
{% if scriptorium_prompt_dir is none and scriptorium_profile_dir is none and scriptorium_schema_dir is none and scriptorium_server_addr is none and scriptorium_server_artifact_root is none and scriptorium_server_max_request_bytes is none and scriptorium_server_max_artifact_bytes is none and scriptorium_server_max_response_bytes is none and scriptorium_defaults_render_format is none and scriptorium_backends is none %}
{}
{% else %}
{% if scriptorium_prompt_dir is not none %}
prompt_dir: {{ scriptorium_prompt_dir | to_json }}
{% endif %}
{% if scriptorium_profile_dir is not none %}
profile_dir: {{ scriptorium_profile_dir | to_json }}
{% endif %}
{% if scriptorium_schema_dir is not none %}
schema_dir: {{ scriptorium_schema_dir | to_json }}
{% endif %}
{% if scriptorium_server_addr is not none or scriptorium_server_artifact_root is not none or scriptorium_server_max_request_bytes is not none or scriptorium_server_max_artifact_bytes is not none or scriptorium_server_max_response_bytes is not none %}
server:
{% if scriptorium_server_addr is not none %}
addr: {{ scriptorium_server_addr | to_json }}
{% endif %}
{% if scriptorium_server_artifact_root is not none %}
artifact_root: {{ scriptorium_server_artifact_root | to_json }}
{% endif %}
{% if scriptorium_server_max_request_bytes is not none %}
max_request_bytes: {{ scriptorium_server_max_request_bytes | to_json }}
{% endif %}
{% if scriptorium_server_max_artifact_bytes is not none %}
max_artifact_bytes: {{ scriptorium_server_max_artifact_bytes | to_json }}
{% endif %}
{% if scriptorium_server_max_response_bytes is not none %}
max_response_bytes: {{ scriptorium_server_max_response_bytes | to_json }}
{% endif %}
{% endif %}
{% if scriptorium_defaults_render_format is not none %}
defaults:
render_format: {{ scriptorium_defaults_render_format | to_json }}
{% endif %}
{% if scriptorium_backends is not none %}
backends: {{ scriptorium_backends | to_json }}
{% endif %}
{% endif %}