File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -39,15 +39,17 @@ Open an issue if you wish to contribute, or buy me a coffee if you find my work
39
39
40
40
## Configuration
41
41
Edit the .env file, or specify these parameters as environment variables:
42
+ ```
43
+ # Name of the database file to write into.
44
+ SQLITE_FILE_PATH="databases/database.db"
42
45
43
- ```
44
- # Name of the database file to write.
45
- SQLITE_FILE_NAME="database.db"
46
+ # A list of secret keys. The server won't accept events that do not contain one of these keys in the request body.
47
+ API_KEYS=[ "I-am-an-unsecure-dev-key-REPLACE_ME"]
46
48
47
- # A list of secret keys. The server won't accept events
48
- # that do not contain one of these keys in the request body.
49
- API_KEYS=["I-am-an-unsecure-dev-key-REPLACE_ME"]
50
- ```
49
+ # Requests from the same IP above this rate will be rejected.
50
+ # See https://limits.readthedocs.io/en/stable/quickstart.html#rate-limit-string-notation
51
+ RATE_LIMIT="60/minute"
52
+ ```
51
53
52
54
## API
53
55
The server will listen to POST requests at `http://ip:port/v1.0/event`, and will expect a request body in the following format:
You can’t perform that action at this time.
0 commit comments