Skip to content

Commit

Permalink
fix(chore): replace configs
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLantukh committed Jun 1, 2023
1 parent 906f2e9 commit 83cdd93
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ The easiest way to maintain configuration files is to use the 'Apps' section in
Which app config file the application uses is determined by the [ini file](initialization-file.md).

You can specify the default that the application starts with and also which config, if any, it will allow to be set using the [`app-config=<config source>` query param](#switching-between-app-configs).
The location is usually specified by the 8-character ID (i.e. `ehon8mco`) of the App Config from your JWP account, in which case the file will be loaded from the JW Player App Config delivery endpoint (i.e. `https://cdn.jwplayer.com/apps/configs/ehon8mco.json`).
The location is usually specified by the 8-character ID (i.e. `gnnuzabk`) of the App Config from your JWP account, in which case the file will be loaded from the JW Player App Config delivery endpoint (i.e. `https://cdn.jwplayer.com/apps/configs/gnnuzabk.json`).
You may also specify a relative or absolute URL.

### Switching between app configs

As mentioned above, if you have 1 or more additional allowed sources (see additionalAllowedConfigSources in [`initialization-file`](initialization-file.md)), you can switch between them by adding `app-config=<config source>` as a query parameter in the web app URL in your browser (i.e. `https://<your domain>/?app-config=ehon8mco`).
As mentioned above, if you have 1 or more additional allowed sources (see additionalAllowedConfigSources in [`initialization-file`](initialization-file.md)), you can switch between them by adding `app-config=<config source>` as a query parameter in the web app URL in your browser (i.e. `https://<your domain>/?app-config=gnnuzabk`).

The parameter is automatically evaluated, loaded, and stored in browser session storage and should remain part of the url as the user navigates around the site.

Expand Down
2 changes: 1 addition & 1 deletion ini/templates/.webapp.dev.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; This is a basic Blender demo
defaultConfigSource = ehon8mco
defaultConfigSource = gnnuzabk
; When developing, switching between configs is useful for test and debug
UNSAFE_allowAnyConfigSource = true
2 changes: 1 addition & 1 deletion ini/templates/.webapp.prod.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; This is the app config that your application will load at startup
defaultConfigSource = ; Enter your 8 digit config ID (i.e. ehon8mco) here (case sensitive)
defaultConfigSource = ; Enter your 8 digit config ID (i.e. gnnuzabk) here (case sensitive)

; This key ensures proper integration with the JW Platform.
; Please make sure to set it here unless you are setting it at build time with the APP_PLAYER_LICENSE_KEY env variable.
Expand Down
4 changes: 2 additions & 2 deletions ini/templates/.webapp.test.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defaultConfigSource = ehon8mco
defaultConfigSource = gnnuzabk
additionalAllowedConfigSources[] = kujzeu1b
additionalAllowedConfigSources[] = 7xlh4b33
additionalAllowedConfigSources[] = ata6ucb8
additionalAllowedConfigSources[] = nvqkufhy
additionalAllowedConfigSources[] = 7weyqrua
additionalAllowedConfigSources[] = ozylzc5m
Expand Down
4 changes: 2 additions & 2 deletions test/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ export const testConfigs = {
label: 'JWP Authvod (No WL)',
},
basicNoAuth: {
id: 'ehon8mco',
id: 'gnnuzabk',
label: 'Demo App (No Auth)',
},
noStyling: {
id: 'kujzeu1b',
label: 'No Styling (No Auth)',
},
inlinePlayer: {
id: '7xlh4b33',
id: 'ata6ucb8',
label: 'Inline Player',
},
cleengAuthvod: {
Expand Down

0 comments on commit 83cdd93

Please sign in to comment.