Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Commit

Permalink
configuration changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lennart Koopmann committed Oct 1, 2013
1 parent 41239f2 commit 575ea23
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dist
/.settings /.settings
.ecltarget .ecltarget


conf/development.conf conf/graylog2-web-interface.conf


.target .target
.DS_Store .DS_Store
7 changes: 7 additions & 0 deletions app/Global.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ public <A> A getControllerInstance(Class<A> controllerClass) throws Exception {


@Override @Override
public Configuration onLoadConfig(Configuration configuration, File file, ClassLoader classLoader) { public Configuration onLoadConfig(Configuration configuration, File file, ClassLoader classLoader) {
/*
*
* This is merging the standard bundled application.conf with our graylog2-web-interface.conf.
* The application.conf must always be empty when packaged so there is nothing hidden from the user.
* We are merging, because the Configuration object alreay contains some information the web-interface needs.
*
*/
return new Configuration( return new Configuration(
ConfigFactory.parseFileAnySyntax(new File("conf/graylog2-web-interface.conf")) ConfigFactory.parseFileAnySyntax(new File("conf/graylog2-web-interface.conf"))
.withFallback(configuration.getWrappedConfiguration().underlying()) .withFallback(configuration.getWrappedConfiguration().underlying())
Expand Down
3 changes: 2 additions & 1 deletion app/lib/security/PlayAuthenticationListener.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public void onSuccess(AuthenticationToken token, AuthenticationInfo info) {


@Override @Override
public void onFailure(AuthenticationToken token, AuthenticationException ae) { public void onFailure(AuthenticationToken token, AuthenticationException ae) {
// TODO keep metric of failed logins. maybe log to some graylog instance final Http.Session session = Http.Context.current().session();
session.remove("sessionid");
} }


@Override @Override
Expand Down
Original file line number Original file line Diff line number Diff line change
@@ -1,8 +1,9 @@
# graylog2-server REST URIs (one or more, comma separated) # graylog2-server REST URIs (one or more, comma separated) For example: "http://127.0.0.1:12900/,http://127.0.0.1:12910/"
graylog2-server.uris="http://127.0.0.1:12900/,http://127.0.0.1:12910/" graylog2-server.uris=""


# Secret key # Secret key
# ~~~~~ # ~~~~~
# The secret key is used to secure cryptographics functions. Set this to a long and randomly generated string. # The secret key is used to secure cryptographics functions. Set this to a long and randomly generated string.
# If you deploy your application to several instances be sure to use the same key! # If you deploy your application to several instances be sure to use the same key!
application.secret="" # Generate for example with: pwgen -s 96
application.secret=""

0 comments on commit 575ea23

Please sign in to comment.