# Trang 2: Cấu hình hệ thống

Hệ thống hỗ trợ cấu hình linh hoạt thông qua file `application.yml` hoặc các biến môi trường (Environment Variables).

### 2.1 Các tham số cấu hình chính

<div class="my-4 rounded-lg overflow-x-auto overflow-y-hidden border border-gray-500/20 [&_thead_tr:first-child_th:first-child]:border-t-0 [&_thead_tr:first-child_th:first-child]:border-l-0 [&_thead_tr:first-child_th:last-child]:border-t-0 [&_thead_tr:first-child_th:last-child]:border-r-0 [&_tbody_tr:last-child_td:first-child]:border-b-0 [&_tbody_tr:last-child_td:first-child]:border-l-0 [&_tbody_tr:last-child_td:last-child]:border-b-0 [&_tbody_tr:last-child_td:last-child]:border-r-0 [&_thead_tr:first-child_th]:border-t-0 [&_tbody_tr:last-child_td]:border-b-0 [&_th:first-child]:border-l-0 [&_td:first-child]:border-l-0 [&_th:last-child]:border-r-0 [&_td:last-child]:border-r-0" id="bkmrk-tham-s%E1%BB%91-bi%E1%BA%BFn-m%C3%B4i-tr%C6%B0"><table class="min-w-full border-separate border-spacing-0"><thead><tr><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Tham số</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Biến môi trường (Env)</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Giá trị mặc định</th><th class="bg-gray-500/20 px-3 py-2 text-left font-medium leading-snug border border-gray-500/20">Mô tả</th></tr></thead><tbody><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`server.port`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">`SERVER_PORT`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">`8080`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">Port lắng nghe của Proxy</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`external.api.base-url`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">`EXTERNAL_API_BASE_URL`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">`https://administrator.lifetex.vn:356`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">URL dịch vụ CRM/BPMN</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`signing-service.api.base-url`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">`SIGNING_SERVICE_BASE_URL`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">`http://192.168.0.51:6868`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">URL dịch vụ ký số (Engine)</td></tr><tr><td class="px-3 py-2 leading-snug border border-gray-500/20">`callback.server.base-url`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">`CALLBACK_SERVER_BASE_URL`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">`http://192.168.0.185:8386`</td><td class="px-3 py-2 leading-snug border border-gray-500/20">URL nhận callback</td></tr></tbody></table>

</div>### 2.2 Cấu hình Timeout (Quan trọng cho ký số)

Các yêu cầu ký file PDF lớn có thể mất nhiều thời gian, do đó cần chú ý cấu hình:

- `connect-timeout-ms`: 60000 (60 giây).
- `read-timeout-ms`: 60000 (60 giây).