Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 696 Bytes

AnkiConnect_addon_configure_example.md

File metadata and controls

35 lines (29 loc) · 696 Bytes

To protect your Anki,

You need to set AnkiConnect apikey like this. Change 'THIS_IS_THE_APIKEY' to other words.

{
    "apiKey": "THIS_IS_THE_APIKEY",
    "apiLogPath": null,
    "ignoreOriginList": [],
    "webBindAddress": "0.0.0.0",
    "webBindPort": 8765,
    "webCorsOriginList": [
        "http://localhost"
    ]
}

In this case, to use --apikey of trrc,

trrc --apikey 'THIS_IS_THE_APIKEY' 'front card	back card	test'

To use the --apikey by default config,

trrc --apikey 'THIS_IS_THE_APIKEY' --toml-generate --toml-section 'default'

the result

[default]
apikey = "asdfasdfadc"

Copy and paste the result into the config file(e.g.: ~/.trrc).