You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+80-77Lines changed: 80 additions & 77 deletions
Original file line number
Diff line number
Diff line change
@@ -531,6 +531,7 @@ Basic Configuration:
531
531
*`HTTP_PORT`: HTTP service listening port.
532
532
*`GRPC_PORT`: gRPC service listening port.
533
533
*`API_KEYS`: API keys for authentication or authorization.
534
+
*`LOG_LEVEL`: Log level.
534
535
535
536
Cache Configuration:
536
537
*`CACHE_TYPE`: Cache type (e.g., `redis`, `memcached`, `memory`, `etcd`).
@@ -883,7 +884,7 @@ The service uses two configuration files: `config.json` for service runtime para
883
884
884
885
- `config_version` (integer): Configuration file version for distributed dynamic configuration management, default `1`.
885
886
886
-
##### resources Field
887
+
> resources
887
888
888
889
- `version` (string): Resource configuration version to control CAPTCHA instance recreation, default `0.0.1`.
889
890
- `char.languages.chinese` (string array): Chinese character setfor click CAPTCHA text, default empty (uses built-in resources).
@@ -914,50 +915,50 @@ The service uses two configuration files: `config.json` for service runtime para
914
915
915
916
<br/>
916
917
917
-
##### builder Field
918
+
> builder
918
919
919
920
Defines CAPTCHA generation styles, including configurations for click, shape click, slide, drag, and rotate CAPTCHAs.
920
921
921
-
###### click_config_maps
922
+
#### click_config_maps
922
923
923
924
Defines text click CAPTCHA configurations, supporting Chinese and English with light and dark themes. The key is the ID passed in the CAPTCHA API request, e.g., `api/v1/public/get-data?id=click-default-ch`.
924
925
925
926
- `click-default-ch` (object): Default Chinese theme configuration.
926
-
- `version` (string): Configuration version to control CAPTCHA instance recreation, default `0.0.1`.
927
-
$
928
-
- `language` (string): Language, matches defined `char.languages`, e.g., `chinese`for Chinese.
929
-
- `master` (object): Main CAPTCHA image configuration.
930
-
- `image_size.width` (integer): Main image width, default `300`.
931
-
- `image_size.height` (integer): Main image height, default `200`.
932
-
- `range_length.min` (integer): Minimum number of CAPTCHA points, default `6`.
933
-
- `range_length.max` (integer): Maximum number of CAPTCHA points, default `7`.
934
-
- `range_angles` (object array): Text rotation angle ranges (degrees).
935
-
- Example: `{"min": 20, "max": 35}`for 20°-35°.
936
-
- `range_size.min` (integer): Minimum text size (pixels), default `26`.
937
-
- `range_size.max` (integer): Maximum text size, default `32`.
938
-
- `range_colors` (string array): Text color list (hexadecimal).
939
-
- Example: `"#fde98e"`.
940
-
- `display_shadow` (boolean): Display text shadow, default `true`.
- `background_circles_num` (integer): Number of background circle interference points, default `24`.
961
+
- `background_slim_line_num` (integer): Number of background slim line interferences, default `2`.
961
962
962
963
- `click-dark-ch` (object): Chinese dark theme configuration, similar to `click-default-ch`, but `thumb.range_text_colors` uses brighter colors for dark backgrounds.
963
964
@@ -967,69 +968,69 @@ Defines text click CAPTCHA configurations, supporting Chinese and English with l
967
968
968
969
<br/>
969
970
970
-
###### click_shape_config_maps
971
+
#### click_shape_config_maps
971
972
972
973
Defines shape click CAPTCHA configurations.
973
974
974
975
- `click-shape-default` (object): Default shape click configuration, similar to `click_config_maps``master` and `thumb` but for shape images instead of text.
975
976
976
977
<br/>
977
978
978
-
###### slide_config_maps
979
+
#### slide_config_maps
979
980
980
981
Defines slide CAPTCHA configurations.
981
982
982
983
- `slide-default` (object):
983
-
- `version` (string): Configuration version to control CAPTCHA instance recreation, default `0.0.1`.
984
-
- `master` (object): Main CAPTCHA image configuration.
985
-
- `image_size.width` (integer): Main image width, default `300`.
986
-
- `image_size.height` (integer): Main image height, default `200`.
0 commit comments