21 lines
727 B
JSON
21 lines
727 B
JSON
{
|
|
"write_tokens": [
|
|
"REPLACE_WITH_BCRYPT_HASH_1",
|
|
"REPLACE_WITH_BCRYPT_HASH_2",
|
|
"REPLACE_WITH_BCRYPT_HASH_3"
|
|
],
|
|
"_comment": "Tokens should be bcrypt hashes. Generate with: ./output/hash_token YOUR_SECRET_TOKEN",
|
|
"_example_hash": "$2b$12$7d5c2e5f4a3b1e9f8c7b6a5d4e3f2a1b9c8d7e6f5a4b3c2d1e9f8a7b6c5d4e3f",
|
|
"rate_limiting": {
|
|
"auth_rate_limit": 5,
|
|
"auth_window_seconds": 300
|
|
},
|
|
"port": 7703,
|
|
"host": "127.0.0.1",
|
|
"cors": {
|
|
"allowed_origins": ["https://yourdomain.com"],
|
|
"allowed_methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
|
|
"allowed_headers": ["Content-Type", "Authorization"],
|
|
"allow_credentials": false
|
|
}
|
|
} |