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

Commit 04fa6a8

Browse files
committed
Add flag to pwgen example to only output one password.
1 parent cabf59b commit 04fa6a8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/lib/Global.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ public void onStart(Application app) {
9494
throw new IllegalStateException("No application.secret configured.");
9595
}
9696
if (appSecret.length() < 16) {
97-
log.error("Please configure application.secret in your conf/graylog2-web-interface.conf to be longer than 16 characters. Suggested is using pwgen -s 96 or similar");
98-
throw new IllegalStateException("application.secret is too short, use at least 16 characters! Suggested is to use pwgen -s 96 or similar");
97+
log.error("Please configure application.secret in your conf/graylog2-web-interface.conf to be longer than 16 characters. Suggested is using pwgen -N 1 -s 96 or similar");
98+
throw new IllegalStateException("application.secret is too short, use at least 16 characters! Suggested is to use pwgen -N 1 -s 96 or similar");
9999
}
100100

101101
final String graylog2ServerUris = app.configuration().getString("graylog2-server.uris", "");

misc/graylog2-web-interface.conf.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ graylog2-server.uris=""
88
# ~~~~~
99
# The secret key is used to secure cryptographics functions. Set this to a long and randomly generated string.
1010
# If you deploy your application to several instances be sure to use the same key!
11-
# Generate for example with: pwgen -s 96
11+
# Generate for example with: pwgen -N 1 -s 96
1212
application.secret=""
1313

1414
# Web interface timezone

0 commit comments

Comments
 (0)