Skip to content

Commit

Permalink
feat(Config): Add discourse news category to application.properties (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreykwan authored Mar 7, 2023
1 parent 08ba857 commit b7be4b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ protected HashMap<String, Object> getConfig(HttpServletRequest request) {
config.put("wiseHostname", appProperties.getProperty("wise.hostname"));
config.put("wise4Hostname", appProperties.getProperty("wise4.hostname"));
config.put("discourseURL", appProperties.getProperty("discourse_url"));
config.put("discourseNewsCategory", appProperties.getProperty("discourse_news_category"));
return config;
}

Expand Down
5 changes: 3 additions & 2 deletions src/main/resources/application-dockerdev-sample.properties
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,9 @@ google.jwkUrl=https://www.googleapis.com/oauth2/v2/certs
google.tokens.dir=

### Discourse Single Sign-On ###
# discourse_url: URL to your Discourse.
# discourse_sso_secret_key: agreed-upon secret key between your Discourse and WISE instance
# discourse_url=URL to your Discourse
# discourse_sso_secret_key=agreed-upon secret key between your Discourse and WISE instance
# discourse_news_category=relative path to news category

# backwards compatibility purpose only.
system-wide-salt=secret
Expand Down
7 changes: 3 additions & 4 deletions src/main/resources/application_sample.properties
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,9 @@ google.jwkUrl=https://www.googleapis.com/oauth2/v2/certs
google.tokens.dir=

### Discourse Single Sign-On ###
# discourse_url: URL to your Discourse.
# discourse_sso_secret_key: agreed-upon secret key between your Discourse and WISE instance
#discourse_url=http://localhost:4000
#discourse_sso_secret_key=do_the_right_thing
# discourse_url=URL to your Discourse
# discourse_sso_secret_key=agreed-upon secret key between your Discourse and WISE instance
# discourse_news_category=relative path to news category

# backwards compatibility purpose only.
system-wide-salt=secret
Expand Down

0 comments on commit b7be4b1

Please sign in to comment.