Skip to content

Commit

Permalink
Fix headers in "Without Shared Filesystem" doc page
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Apr 19, 2024
1 parent 2cc8499 commit 53533ab
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/deployment/cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ On system without shared file system, all what is needed is to distribute access
This file contains address and port where server is running and secret keys.
By default, client and worker search for `access.json` in `$HOME/.hq-server`.

# Generate access file in advance
## Generate access file in advance

In many cases you, we want to generate an access file in advance before any server is started;
moreover, we do not want to regenerate secret keys in every start of server,
Expand Down Expand Up @@ -34,7 +34,7 @@ $ mv myaccess.json /mydirectory/access.json
$ hq --server-dir=/mydirectory worker start
```

# Splitting access for client and workers
## Splitting access for client and workers

Access file contains two secret keys and two points to connect, for clients and for workers.
This information can be divided into two separate files,
Expand All @@ -52,11 +52,10 @@ For starting a worker you can use `worker.json` as `access.json` while it does n

For starting server (`hq server start --access-file=...`) you have to use `full.json` as it contains all necessary information.


# Setting different server hostname for workers and clients
## Setting different server hostname for workers and clients

You can use the following command to configure different hostnames under which the server is visible to workers and clients.

```commandline
hq server generate-access full.json --worker-host=<WORKER_HOST> --client-host=<CLIENT_HOST> ...
```
```

0 comments on commit 53533ab

Please sign in to comment.