Skip to content

Commit

Permalink
switch to application yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling committed Aug 15, 2018
1 parent d929cdd commit 63c2e2a
Show file tree
Hide file tree
Showing 4 changed files with 248 additions and 235 deletions.
120 changes: 0 additions & 120 deletions src/main/resources/application.properties

This file was deleted.

126 changes: 126 additions & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
server:
port: 9001
contextPath:

---
logging:
level:
edu.tamu: INFO
org.springframework: INFO
file: logs/project-management-service.log

---
security.basic.enabled: false

---
spring:
profiles.active: production

datasource:
platform: h2
driverClassName: org.h2.Driver
url: jdbc:h2:mem:AZ;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
# platform: postgres
# driverClassName: org.postgresql.Driver
# url: jdbc:postgresql://localhost:5432/project_management_service

username: spring
password: spring

max-active: 100
max-idle: 8
min-idle: 8
initial-size: 10
test-on-borrow: true
test-on-return: false
test-while-idle: true
defaultAutoCommit: false
validation-query: select version();

jpa:
database-platform: org.hibernate.dialect.H2Dialect
# database-platform: org.hibernate.dialect.PostgreSQLDialect

show-sql: false
hibernate.ddl-auto: create-drop

---
app:
cache:
default:
# default delay before first cache update, 5 seconds in milliseconds
delay: 5000
# default interval between cache updates, 1 minute in milliseconds
interval: 60000
active-sprints:
# 2 seconds in milliseconds
delay: 2000
# 15 minutes in milliseconds
interval: 900000
remote-projects:
# 2 seconds in milliseconds
delay: 2000
# 1 hour in milliseconds
interval: 3600000
projects-stats:
# 2 minutes in milliseconds
# the projects stats cache is create from the remote projects cache
# this delay should be greater than the remote projects delay
# and an estimate on how long the remote projects cache takes to populate
delay: 120000
# 1 hour in milliseconds
interval: 3600000

sugar.email: helpdesk@library.tamu.edu

whitelist: 127.0.0.1

############################
# Framework app properties #
############################
# edu.tamu.weaver.auth.service.UserCredentialsService
authority.admins: 402001311,613001223,102001721,222004429,709005486,523008230,724001395,123456789
security:
# edu.tamu.weaver.auth.service.CryptoService
secret: verysecretsecret
# edu.tamu.weaver.filter.CorsFilter
allow-access: http://localhost,http://localhost:8080,http://machuff.tamu.edu,http://janus.evans.tamu.edu,http://savell.evans.tamu.edu,http://jmicah.tamu.edu
# edu.tamu.weaver.email.config.WeaverEmailConfig
email:
host: relay.tamu.edu
from: noreply@library.tamu.edu
replyTo: helpdesk@library.tamu.edu
# edu.tamu.weaver.reporting.controller.ReportingController
reporting.address: helpdesk@library.tamu.edu
# edu.tamu.weaver.validation.controller.ValidationsController
model.packages: edu.tamu.app.model
# edu.tamu.weaver.utility.HttpUtility
http.timeout: 10000

---
#############################
# Framework auth properties #
#############################
# edu.tamu.weaver.token.service.TokenService
auth:
security:
jwt:
secret: verysecretsecret
issuer: localhost
duration: 1
# edu.tamu.weaver.token.provider.controller.TokenController
path: /auth

---
#############################
# Framework shib properties #
#############################
# edu.tamu.weaver.token.provider.controller.TokenController
shib:
keys: netid,uin,lastName,firstName,email
subject: email
netid: edupersonprincipalnameunscoped
uin: tamuuin
lastName: tdl-sn
firstName: tdl-givenname
email: tdl-mail
115 changes: 0 additions & 115 deletions src/test/resources/application.properties

This file was deleted.

0 comments on commit 63c2e2a

Please sign in to comment.