Skip to content

Commit

Permalink
update examples and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelvlach committed Jun 7, 2024
1 parent b812e59 commit 72ef869
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docs/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ The server will create default configuration when run:

```yaml
# agdb_server.yaml
host: localhost # host address to listen on
port: 3000 # port to bind to
bind: ":::3000" # address to listen at (bind to)
address: "localhost:3000" # address the incoming connections will come from
basepath: "" # base path to append to the address in case the server is to be run behind a reverse proxy
admin: admin # the admin user that will be created automatically for the server, the password will be the same as name (admin by default, recommended to change after startup)
data_dir: agdb_server_data # directory to store user data
```
Expand Down
2 changes: 1 addition & 1 deletion examples/server_client_typescript/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ async function main() {
// from the root.

// Creates a client connecting to the remote server.
let client = await AgdbApi.client("http://localhost", 3000);
let client = await AgdbApi.client("http://localhost:3000");

// Creates a user using default admin credentials.
let admin_token = await client.user_login(null, {
Expand Down

0 comments on commit 72ef869

Please sign in to comment.