Skip to content

Commit

Permalink
update configuration for the security token (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
ciur authored Feb 10, 2024
1 parent 353598b commit 5708acc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/rest-api/token.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@ In order to get REST API token for user "john" run following command:

The long list of characters from above is the token for user with username "john".

By default generated REST API token is valid for 6 hours. If you want to
change expiration time for the token use
[PAPERMERGE__SECURITY__TOKEN_EXPIRE_MINUTES](/settings/security) configuration setting.

![](../img/rest-api/create_token.gif)
10 changes: 10 additions & 0 deletions docs/settings/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,13 @@ Example as environment variable:

PAPERMERGE__SECRET__SECRET_KEY=asjrijfpHHJH00huge00secret00QMNB344GHOOooaq


## SECURITY__TOKEN_EXPIRE_MINUTES


[REST API token](/rest-api/token) expiration in minutes. Default value is 360 (i.e. 6 hours).

Example, set token to expire in 7 days (10080 = 60x24x7):

PAPERMERGE__SECURITY__TOKEN_EXPIRE_MINUTES=10080

0 comments on commit 5708acc

Please sign in to comment.