|
1 | | -# TONlib parameters |
2 | | -tonlib_config_path: /run/secrets/ton-global-config # TON global config path |
3 | | -tonlib_keystore_path: /tmp/keystore/ # TONlib keystore path |
4 | | -tonlib_boc_endpoints: [] # Endpoints to duplicate incoming BOCs |
5 | | -tonlib_threads: 4 # number of threads for TONlib multiclient |
6 | | - |
7 | | -server_port: 8081 # API port in container, |
8 | | - # to change exposed port set THACPP_PORT env variable |
9 | | -monitor_port: 8082 # Monitoring port in container, |
10 | | - # to change exposed port set THACPP_MONITOR_PORT env variable |
11 | | - |
12 | | -main_worker_threads: 4 # number of threads to serve HTTP requests |
13 | | -fs_worker_threads: 1 # number of threads for I/O operations, f.e. logging |
14 | | -http_worker_threads: 2 # number of threads for http client |
15 | | - # to duplicate BOCs on external service |
16 | | - |
17 | | -log_level: warning # api v2 log level |
18 | | -log_path: "@stdout" # log destination, available options: |
19 | | - # @stdout |
20 | | - # @stderr |
21 | | - # @null - don't log |
22 | | - # /path/to/file - log to file |
23 | | - # Note: if you log into file, |
24 | | - # logs will be deleted after deploying new container |
25 | | -system_log_level: warning # userver system logs |
| 1 | +##### TONlib parameters ##### |
| 2 | +# TON global config path |
| 3 | +# THACPP_TONLIB_CONFIG_PATH |
| 4 | +tonlib_config_path: /run/secrets/ton-global-config |
| 5 | +# TONlib keystore path |
| 6 | +# THACPP_TONLIB_KEYSTORE_PATH |
| 7 | +tonlib_keystore_path: /tmp/keystore/ |
| 8 | +# Endpoints to duplicate incoming BOCs |
| 9 | +# should be a list of comma-separated, quoted strings in format `http://host:port` |
| 10 | +# example: ["http://127.0.0.1:8080", "https://endpoint.com/postBoc"] |
| 11 | +# service is expected to accept POST requests with BOC in body and return 200 in case of success |
| 12 | +# request body will have the following format: `{"boc":"base64 encoded boc"}` |
| 13 | +# THACPP_TONLIB_BOC_ENDPOINTS |
| 14 | +tonlib_boc_endpoints: [] |
| 15 | +# number of threads for TONlib multiclient |
| 16 | +# THACPP_TONLIB_THREADS |
| 17 | +tonlib_threads: 4 |
| 18 | + |
| 19 | +##### Userver parameters ##### |
| 20 | +# API port in container |
| 21 | +# THACPP_PORT |
| 22 | +server_port: 8081 |
| 23 | +# Monitoring port in container |
| 24 | +# THACPP_MONITOR_PORT |
| 25 | +monitor_port: 8082 |
| 26 | + |
| 27 | +# number of threads to serve HTTP requests |
| 28 | +# THACPP_MAIN_WORKER_THREADS |
| 29 | +main_worker_threads: 4 |
| 30 | +# number of threads for I/O operations, f.e. logging |
| 31 | +# THACPP_FS_WORKER_THREADS |
| 32 | +fs_worker_threads: 1 |
| 33 | +# number of threads for http client |
| 34 | +# to duplicate BOCs on external service |
| 35 | +# THACPP_HTTP_WORKER_THREADS |
| 36 | +http_worker_threads: 2 |
| 37 | + |
| 38 | +##### Logging parameters ##### |
| 39 | +# for log_path destination use one available options: |
| 40 | +# @stdout |
| 41 | +# @stderr |
| 42 | +# @null - don't log |
| 43 | +# /path/to/file - log to file |
| 44 | +# Note: if you log into file, |
| 45 | +# logs will be deleted after deploying new container |
| 46 | + |
| 47 | +# api v2 log level |
| 48 | +# THACPP_LOG_LEVEL |
| 49 | +log_level: warning |
| 50 | +# THACPP_LOG_PATH |
| 51 | +log_path: "@stdout" |
| 52 | + |
| 53 | +# userver system logs |
| 54 | +# THACPP_SYSTEM_LOG_LEVEL |
| 55 | +system_log_level: warning |
| 56 | +# THACPP_SYSTEM_LOG_PATH |
26 | 57 | system_log_path: "@stdout" |
27 | 58 |
|
28 | | -jsonrpc_log_level: warning # jsonrpc endpoint logs |
29 | | - # note that requests to jsonRPC endpoint will appear in both of api-v2 and jsonrpc loggers |
| 59 | +# jsonrpc endpoint logs |
| 60 | +# note that requests to jsonRPC endpoint will appear in both of api-v2 and jsonrpc loggers |
| 61 | +# THACPP_JSONRPC_LOG_LEVEL |
| 62 | +jsonrpc_log_level: warning |
| 63 | +# THACPP_JSONRPC_LOG_PATH |
30 | 64 | jsonrpc_log_path: "@stdout" |
31 | 65 |
|
32 | | -log_format: json # logs format, one of `tskv`, `ltsv`, `json` |
| 66 | +# logs format, one of `tskv`, `ltsv`, `json` |
| 67 | +# THACPP_LOG_FORMAT |
| 68 | +log_format: json |
| 69 | + |
| 70 | +# http user agent to set in request to boc endpoint |
| 71 | +# this may be required for external services with anti-ddos and anti-bot protection |
| 72 | +# THACPP_HTTP_WORKER_USER_AGENT |
| 73 | +http_worker_user_agent: empty |
33 | 74 |
|
34 | | -http_worker_user_agent: empty # http user agent to set in request to boc endpoint |
| 75 | +# directory for static content |
| 76 | +# static content will be served from this directory |
| 77 | +# THACPP_STATIC_CONTENT_DIR |
| 78 | +static_content_dir: /static/ |
35 | 79 |
|
36 | | -static_content_dir: "/static/" # directory for static content |
37 | | -max_stack_entry_depth: 100 # max stack entry depth for runGetMethod |
| 80 | +# max stack entry depth for runGetMethod |
| 81 | +# increasing this value may increase memory consumption in runGetMethods |
| 82 | +# THACPP_MAX_STACK_ENTRY_DEPTH |
| 83 | +max_stack_entry_depth: 256 |
0 commit comments