Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
CTF
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grzegorz
CTF
Commits
e9e50275
Commit
e9e50275
authored
Apr 01, 2016
by
Grzegorz Pietrusza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add not nulls to configruation
parent
c4d4a730
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
configuration.yml
service/configuration.yml
+2
-0
ApplicationConfiguration.java
...honers/krakyournet/ctf/core/ApplicationConfiguration.java
+16
-0
No files found.
service/configuration.yml
View file @
e9e50275
...
@@ -9,6 +9,8 @@ dbHost: 92f653f4-cf83-4801-8475-cd748954c3b6.node.dockerapp.io
...
@@ -9,6 +9,8 @@ dbHost: 92f653f4-cf83-4801-8475-cd748954c3b6.node.dockerapp.io
dbPort
:
27017
dbPort
:
27017
dbName
:
db
dbName
:
db
digestMethod
:
"
MD5"
admins
:
admins
:
-
name
:
"
gpietrus_admin"
-
name
:
"
gpietrus_admin"
password
:
"
41b450e73c974fca46911eba84e114f2"
#gpietrus md5
password
:
"
41b450e73c974fca46911eba84e114f2"
#gpietrus md5
...
...
service/src/main/java/com/telephoners/krakyournet/ctf/core/ApplicationConfiguration.java
View file @
e9e50275
...
@@ -6,17 +6,33 @@ import com.telephoners.krakyournet.ctf.beans.tasks.TextTask;
...
@@ -6,17 +6,33 @@ import com.telephoners.krakyournet.ctf.beans.tasks.TextTask;
import
com.telephoners.krakyournet.ctf.beans.tasks.WebTask
;
import
com.telephoners.krakyournet.ctf.beans.tasks.WebTask
;
import
io.dropwizard.Configuration
;
import
io.dropwizard.Configuration
;
import
javax.validation.constraints.NotNull
;
import
java.util.List
;
import
java.util.List
;
public
class
ApplicationConfiguration
extends
Configuration
public
class
ApplicationConfiguration
extends
Configuration
{
{
@NotNull
private
String
dbHost
;
private
String
dbHost
;
@NotNull
private
int
dbPort
;
private
int
dbPort
;
@NotNull
private
String
dbName
;
private
String
dbName
;
@NotNull
private
String
digestMethod
;
private
String
digestMethod
;
@NotNull
private
List
<
Team
>
teams
;
private
List
<
Team
>
teams
;
@NotNull
private
List
<
TextTask
>
textTasks
;
private
List
<
TextTask
>
textTasks
;
@NotNull
private
List
<
WebTask
>
webTasks
;
private
List
<
WebTask
>
webTasks
;
@NotNull
private
List
<
User
>
admins
;
private
List
<
User
>
admins
;
public
List
<
User
>
getAdmins
()
public
List
<
User
>
getAdmins
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment