Skip to content

Commit

Permalink
Merge pull request #8827 from Thevakumar-Luheerathan/fix-ballerina-de…
Browse files Browse the repository at this point in the history
…v-website-8759

Update central token related content
  • Loading branch information
keizer619 committed Apr 29, 2024
2 parents cfc792b + 2a7a648 commit b40bfb3
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -66,7 +66,14 @@ You can publish a Ballerina archive to the <a href="https://central.ballerina.io

2. Navigate to the <a href="https://central.ballerina.io/dashboard?tab=token" target="_blank">Dashboard</a> and acquire an access token.

3. Download and place the `Settings.toml` file in your home repository (`<USER_HOME>/.ballerina/`). If you already have a `Settings.toml` file configured in your home repository, follow the other option and copy the access token into the `Settings.toml`.
3. Download and place the `Settings.toml` file in your home repository (`<USER_HOME>/.ballerina/`). If you already have a `Settings.toml` file configured in your home repository, follow the other option and copy the access token into the `Settings.toml` as follows.

```Toml
[central]
accesstoken="<token>"
```

> **Note:** The tokens remain valid for one year from the generation date. Upon expiration, you must generate a new token and update the `Settings.toml` file to avoid the unauthorized access error.
### Configure proxy settings (optional)
If you are connected to the internet via an HTTP proxy, configure the proxy settings in the `Settings.toml` file to access the Ballerina Central to publish packages. For more information on proxy settings, see [Configure a network proxy](/learn/configure-a-network-proxy).
Expand Down

0 comments on commit b40bfb3

Please sign in to comment.