This repository has been archived by the owner on Dec 20, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
anet.yml
142 lines (131 loc) · 4.81 KB
/
anet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
##############################################################
#### ANET Server Configuration
####
#### This is the configuration file for the ANET server.
####
#### For Production use, replace all areas with ${NAME} with
#### the correct values for your installation.
####
#### For Development use, create a file called `localSettings.gradle`
#### And set each environment variable there
#### ie: `run.environment('ANET_SMTP_SERVER', 'my-mail-server.example.com`)
#### Do not make any changes to this file unless they apply to all
#### developers!
####
##############################################################
# Flag to run the server in development mode
# - Will use Basic authentication (rather than Windows Domain Auth)
# - Will reload the GraphQL Graph on every request.
developmentMode: true
# Flag to tell the server to redirect all HTTP traffic to HTTPS
# You will need to add an HTTP/80 adapter
redirectToHttps: false
# Settings for the SMTP server to send email
smtp:
hostname: ${ANET_SMTP_SERVER}
port: 25
username: ${ANET_SMTP_USERNAME}
password: ${ANET_SMTP_PASSWORD}
startTls: true
# The email address that all automated emails should come from.
# ex: "ANET <[email protected]>"
emailFromAddr: "Anet Testing <[email protected]>"
# The URL that should be used for links in emails
# ex: "http://anet.yourdomain"
# Should not include an ending slash!
serverUrl: "http://localhost:3000"
# Configuration for Waffle. This is the system that ANET uses to perform windows authentication
# See https://github.com/Waffle/waffle
waffleConfig:
principalFormat: fqn
roleFormat: both
allowGuestLogin: false
impersonate: false
securityFilterProviders: waffle.servlet.spi.BasicSecurityFilterProvider
#securityFilterProviders: "waffle.servlet.spi.BasicSecurityFilterProvider waffle.servlet.spi.NegotiateSecurityFilterProvider"
#"waffle.servlet.spi.NegotiateSecurityFilterProvider/protocols": NTLM
"waffle.servlet.spi.BasicSecurityFilterProvider/realm": ANET
########################################################
### The below is the default Dropwizard Configuration
### See http://www.dropwizard.io/1.0.6/docs/manual/configuration.html#man-configuration
### For all of the possible configuration options.
#########################################################
# Configuration for the database Server
# See http://www.dropwizard.io/1.0.6/docs/manual/jdbi.html#configuration
database:
driverClass: ${ANET_DB_DRIVER}
user: ${ANET_DB_USERNAME}
password: ${ANET_DB_PASSWORD}
url: ${ANET_DB_URL}
properties:
date_string_format: ${ANET_DB_DATE_STRING_FORMAT}
date_class: ${ANET_DB_DATE_CLASS}
# Configuration for the web servers HTTP connectors.
# See http://www.dropwizard.io/1.0.6/docs/manual/core.html#configuration
server:
applicationConnectors:
- type: http
port: 8080
# - type: https
# port: 8443
# keyStorePath: example.keystore
# keyStorePassword: example
# validateCerts: false
# The AdminConnector is used for administrative functions of Dropwizard and should not be exposed to users.
adminConnectors:
- type: http
port: 8081
requestLog:
appenders:
- type: file
currentLogFilename: ./logs/access.log
archivedLogFilenamePattern: ./logs/access-%d.log.zip
archivedFileCount: 5
- type: console
target: stdout
# Configuration for the Freemarker templating library
views:
.ftl:
number_format: computer
logging:
level: INFO
loggers:
"io.dropwizard.jersey.jackson.JsonProcessingExceptionMapper" : TRACE
"org.skife.jdbi.v2.DBI" :
level: TRACE
appenders:
- type: file
# additive: false
currentLogFilename: ./logs/dbLog.log
archivedLogFilenamePattern: ./logs/dbLog-%d.log.zip
archivedFileCount: 2
"org.sqlite.JDBC" : INFO
"io.dropwizard.assets.AssetsBundle" : TRACE
"io.dropwizard.assets.*" : TRACE
"waffle.servlet.NegotiateSecurityFilter" : TRACE
"mil.dds.anet.auth.AnetAuthenticationFilter" : TRACE
"mil.dds.anet.threads.AnetEmailWorker" : DEBUG
"mil.dds.anet.threads.FutureEngagementWorker" : DEBUG
"mil.dds.anet.resources.TestingResource" :
level: INFO
appenders:
- type: file
currentLogFilename: ./logs/testingLogger.log
archivedLogFilenamePattern: ./logs/testingLogger-%d.log.zip
archivedFileCount: 2
"mil.dds.anet.utils.AnetAuditLogger" :
level: INFO
appenders:
- type: file
currentLogFilename: ./logs/auditLogger.log
archivedLogFilenamePattern: ./logs/auditLogger-%d.log.zip
archivedFileCount: 2
appenders:
- type: console
threshold: TRACE
target: stdout
- type: file
threshold: INFO
currentLogFilename: ./logs/anet.log
archivedLogFilenamePattern: ./logs/anet-%d.log.zip
archivedFileCount: 2