diff --git a/docs/server.md b/docs/server.md index f38c5a52d..8646e360a 100644 --- a/docs/server.md +++ b/docs/server.md @@ -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 ``` diff --git a/examples/server_client_typescript/main.ts b/examples/server_client_typescript/main.ts index 95d5d2aa9..7a51e56c4 100644 --- a/examples/server_client_typescript/main.ts +++ b/examples/server_client_typescript/main.ts @@ -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, {