Skip to content

Commit 8c680c5

Browse files
committed
Merge branch 'release/1.3.5'
2 parents 1dfee7c + dada551 commit 8c680c5

File tree

4 files changed

+38
-4
lines changed

4 files changed

+38
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
## [1.3.5] - 2023-09-14
8+
9+
- [#115](https://github.com/os2display/display-client/pull/115)
10+
Removed trailing slash from URLs in `/public/example_config.json` given that our fetch code expects no trailing slash
11+
712
## [1.3.4] - 2023-07-13
813

914
- [#114](https://github.com/os2display/display-client/pull/114)

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,35 @@
33
This is the client that will display slides from OS2Display.
44
See [https://github.com/os2display/display-docs/blob/main/client.md](https://github.com/os2display/display-docs/blob/main/client.md) for more info about the client.
55

6+
## Config
7+
The client can be configured by creating `public/config.json` with relevant values.
8+
See `public/example_config.json` for values.
9+
10+
```json
11+
{
12+
"apiEndpoint": "",
13+
"authenticationEndpoint": "/v1/authentication/screen",
14+
"authenticationRefreshTokenEndpoint": "/v1/authentication/token/refresh",
15+
"dataStrategy": {
16+
"type": "pull",
17+
"config": {
18+
"interval": 30000,
19+
"endpoint": ""
20+
}
21+
},
22+
"colorScheme": {
23+
"type": "library",
24+
"lat": 56.0,
25+
"lng": 10.0
26+
},
27+
"schedulingInterval": 60000,
28+
"debug": false
29+
}
30+
```
31+
All endpoint should be configured with out a trailing slash. The endpoints `apiEndpoint` and `dataStrategy.config.endpoint` can be
32+
left empty if the api is hosted from the root of the same domain as the client. E.g. if the api is at https://example.org and the client is at
33+
https://example.org/client
34+
635
## Docker development setup
736

837
Start docker setup

infrastructure/itkdev/etc/confd/templates/config.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"apiEndpoint": "{{ getenv "APP_API_ENDPOINT" "/" }}",
2+
"apiEndpoint": "{{ getenv "APP_API_ENDPOINT" "" }}",
33
"authenticationEndpoint": "{{ getenv "APP_API_AUTHENTICATION_ENDPOINT" "/v1/authentication/token" }}",
44
"authenticationRefreshTokenEndpoint": "{{ getenv "APP_API_AUTHENTICATION_REFRESH_ENDPOINT" "/v1/authentication/token/refresh" }}",
55
"dataStrategy": {
66
"type": "pull",
77
"config": {
88
"interval": {{ getenv "APP_DATA_PULL_INTERVAL" "30000" }},
9-
"endpoint": "{{ getenv "APP_API_PATH" "/" }}"
9+
"endpoint": "{{ getenv "APP_API_PATH" "" }}"
1010
}
1111
},
1212
"colorScheme": {

public/example_config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"apiEndpoint": "/",
2+
"apiEndpoint": "",
33
"authenticationEndpoint": "/v1/authentication/screen",
44
"authenticationRefreshTokenEndpoint": "/v1/authentication/token/refresh",
55
"dataStrategy": {
66
"type": "pull",
77
"config": {
88
"interval": 30000,
9-
"endpoint": "/"
9+
"endpoint": ""
1010
}
1111
},
1212
"colorScheme": {

0 commit comments

Comments
 (0)