Skip to content

Commit 88f6df8

Browse files
committed
More envs. Use same prop everywhere.
1 parent aac76a6 commit 88f6df8

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/typescript-generate.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ env:
2323
META_PASSWORD: ""
2424
META_RESOURCE: ""
2525
META_SERVER: ""
26-
META_PORT: ""
26+
META_PORT: 5432
2727
META_SCHEMA: ""
28-
META_MAX_CONNECTIONS: ""
28+
META_MAX_CONNECTIONS: 1
2929
jobs:
3030
generate_typescript:
3131
name: Generate typescript types

article-api/src/main/scala/no/ndla/articleapi/ArticleApiProperties.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ class ArticleApiProperties extends BaseProps with DatabaseProps {
7171
).getOrElse(Environment, "https://h5p.ndla.no")
7272
)
7373

74-
private def BrightcoveAccountId: String = prop("NDLA_BRIGHTCOVE_ACCOUNT_ID")
75-
private def BrightcovePlayerId: String = prop("NDLA_BRIGHTCOVE_PLAYER_ID")
74+
private def BrightcoveAccountId: String = prop("BRIGHTCOVE_ACCOUNT_ID")
75+
private def BrightcovePlayerId: String = prop("BRIGHTCOVE_PLAYER_ID")
7676

7777
def BrightcoveVideoScriptUrl: String =
7878
s"//players.brightcove.net/$BrightcoveAccountId/${BrightcovePlayerId}_default/index.min.js"

draft-api/src/main/scala/no/ndla/draftapi/DraftApiProperties.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ class DraftApiProperties extends BaseProps with DatabaseProps with StrictLogging
5050
def InlineHtmlTags: Set[String] = Set("code", "em", "span", "sub", "sup")
5151
def IntroductionHtmlTags: Set[String] = InlineHtmlTags ++ Set("br", "p", "strong")
5252

53-
private def BrightcoveAccountId: String = prop("NDLA_BRIGHTCOVE_ACCOUNT_ID")
54-
private def BrightcovePlayerId: String = prop("NDLA_BRIGHTCOVE_PLAYER_ID")
53+
private def BrightcoveAccountId: String = prop("BRIGHTCOVE_ACCOUNT_ID")
54+
private def BrightcovePlayerId: String = prop("BRIGHTCOVE_PLAYER_ID")
5555

5656
def BrightcoveVideoScriptUrl: String =
5757
s"//players.brightcove.net/$BrightcoveAccountId/${BrightcovePlayerId}_default/index.min.js"

frontpage-api/src/main/scala/no/ndla/frontpageapi/FrontpageApiProperties.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class FrontpageApiProperties extends BaseProps with DatabaseProps {
2929
val Domain: String = propOrElse("BACKEND_API_DOMAIN", Domains.get(Environment))
3030
val RawImageApiUrl: String = s"$Domain/image-api/raw"
3131

32-
val BrightcoveAccountId: String = prop("BRIGHTCOVE_ACCOUNT")
33-
val BrightcovePlayer: String = prop("BRIGHTCOVE_PLAYER")
32+
val BrightcoveAccountId: String = prop("BRIGHTCOVE_ACCOUNT_ID")
33+
val BrightcovePlayer: String = prop("BRIGHTCOVE_PLAYER_ID")
3434

3535
override def MetaMigrationLocation: String = "no/ndla/frontpageapi/db/migration"
3636
}

0 commit comments

Comments
 (0)