Skip to content

Commit 89b37b6

Browse files
committed
Add new database URI from file to changelog and readme
1 parent 42273f9 commit 89b37b6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## 0.9.0.0
44

5+
- Add @filename semantics to PGWS_DB_URI configiration variable to allow secret management to use a file instead of an environment variable.
56
- Add PGWS_RETRIES to limit the amount of times the server tries to open a database connection upon startup (defaults to 5). This breaks backward compatibility if you rely on the behaviour of the server to try infitite times.
67

78
## 0.8.0.1

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ source sample-env && ~/.local/bin/postgres-websockets
5252
```
5353
After running the above command, open your browser on http://localhost:3000 to see an example of usage.
5454

55-
The sample config file provided in the [sample.conf](https://github.com/diogob/postgres-websockets/tree/master/sample.conf) file comes with a jwt secret just for testing and is used in the sample client.
55+
The sample config file provided in the [sample-env](https://github.com/diogob/postgres-websockets/tree/master/sample-env) file comes with a jwt secret just for testing and is used in the sample client.
56+
Note that the `sample-env` points to `./database-uri.txt` to load the URI from an external file. This is determined by the use of `@` as a prefix to the value of the variable `PGWS_DB_URI`.
57+
This is entirely optional and the URI could be exported directly as `PGWS_DB_URI` without using the prefix `@`.
5658
You will find the complete sources for the example under the folder [client-example](https://github.com/diogob/postgres-websockets/tree/master/client-example).
5759
To run the server without giving access to any static files one can unser the variable `PGWS_ROOT_PATH`.
5860

0 commit comments

Comments
 (0)