increase default max-token-duration (#6467)

This commit is contained in:
Kira Pilot
2023-03-07 06:35:48 -08:00
committed by GitHub
parent 87ed7a7dba
commit ef2e86f309
5 changed files with 53 additions and 9 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ The maximum lifetime duration users can specify when creating an API token.
| | |
| --- | --- |
| Consumes | <code>$CODER_MAX_TOKEN_LIFETIME</code> |
| Default | <code>720h0m0s</code> |
| Default | <code>2540400h0m0s</code> |
### --oauth2-github-allow-everyone
+3 -1
View File
@@ -8,6 +8,8 @@ curl -L https://coder.com/install.sh | sh
# curl -L https://coder.com/install.sh | sh -s -- --version=0.x
# To create API tokens, use `coder tokens create`.
# If no `--lifetime` flag is passed during creation, the default token lifetime
# will be 30 days.
# These variables are consumed by Coder
export CODER_URL=https://coder.example.com
export CODER_SESSION_TOKEN=*****
@@ -26,4 +28,4 @@ coder templates push --yes $CODER_TEMPLATE_NAME \
> Looking for an example? See how we push our development image
> and template [via GitHub actions](https://github.com/coder/coder/blob/main/.github/workflows/dogfood.yaml).
> To create tokens with over a 30 day lifetime, [configure Coder server to set a longer max token lifetime](../cli/coder_server#--max-token-lifetime)
> To cap token lifetime on creation, [configure Coder server to set a shorter max token lifetime](../cli/coder_server#--max-token-lifetime)