Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
docs: add a wildcard domain mention to the user guide
Browse files Browse the repository at this point in the history
While testing multitenancy, it's more convenient to use a wildcard
domain rather than edit /etc/hosts manually.
  • Loading branch information
psarna committed Oct 13, 2023
1 parent ebb7ae9 commit 5dd00ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/USER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,9 @@ For example, if you have the following entries in your `/etc/hosts` file:

You can access `db1` with the `http://db1.local:8080`URL and `db2` with `http://db2.local:8080`.
The database files for the databases are stored in `<data dir>/dbs/db1` and `<data dir/dbs/db2`, respectively.

### Wildcard domain for development

If you don't feel like editing `/etc/hosts` each time you want to test a new namespace, you can use any domain
that returns `127.0.0.1` for all subdomains. One of such domains is `*.db.sarna.dev`, which you can use to access
your local `db1` and `db2` as `http://db1.db.sarna.dev` and `http://db2.db.sarna.dev` respectively.

0 comments on commit 5dd00ba

Please sign in to comment.