feat: add open search support

This commit is contained in:
Tim
2025-09-26 15:34:06 +08:00
parent 4fc7c861ee
commit 4821b77c17
16 changed files with 1008 additions and 1 deletions

View File

@@ -45,6 +45,17 @@ app.user.replies-limit=${USER_REPLIES_LIMIT:50}
# Length of extracted snippets for posts and search (-1 to disable truncation)
app.snippet-length=${SNIPPET_LENGTH:200}
# OpenSearch integration
opensearch.enabled=${OPENSEARCH_ENABLED:false}
opensearch.hosts=${OPENSEARCH_HOSTS:}
opensearch.username=${OPENSEARCH_USERNAME:}
opensearch.password=${OPENSEARCH_PASSWORD:}
opensearch.insecure=${OPENSEARCH_INSECURE:false}
opensearch.connect-timeout=${OPENSEARCH_CONNECT_TIMEOUT:10s}
opensearch.socket-timeout=${OPENSEARCH_SOCKET_TIMEOUT:30s}
opensearch.max-results=${OPENSEARCH_MAX_RESULTS:50}
opensearch.highlight-fallback-length=${OPENSEARCH_HIGHLIGHT_FALLBACK_LENGTH:${SNIPPET_LENGTH:200}}
# Captcha configuration
app.captcha.enabled=${CAPTCHA_ENABLED:false}
recaptcha.secret-key=${RECAPTCHA_SECRET_KEY:}