Files
wisemapping-open-source/wise-api/src/main/resources/application.yml

96 lines
2.7 KiB
YAML
Raw Normal View History

2024-02-03 19:42:15 -08:00
# SpringBoot Configuration ...
2024-02-18 16:14:56 -08:00
server:
tomcat:
2024-02-18 16:20:22 -08:00
remote-ip-header: x-forwarded-for
protocol-header: x-forwarded-proto
2024-02-03 19:42:15 -08:00
spring:
2024-02-06 23:04:25 -08:00
mail:
host: smtp.example.com
port: 25
username: setusername
password: setpassword
properties:
mail:
smtp:
connectiontimeout: 5000
timeout: 3000
writetimeout: 5000
2024-02-03 20:25:15 -08:00
output:
ansi:
enabled=always:
application:
name: wisemapping-api
title: wisemapping-api
2024-02-03 19:42:15 -08:00
datasource:
2024-02-04 19:45:14 -08:00
url: jdbc:hsqldb:mem:wisemapping
2024-02-03 19:42:15 -08:00
driver-class-name: org.hsqldb.jdbc.JDBCDriver
password: ''
username: sa
jpa:
hibernate:
ddl-auto: none
open-in-view: true
properties:
hibernate:
current_session_context_class: thread
default_batch_fetch_size: 200
dialect: org.hibernate.dialect.HSQLDialect
format_sql: true
main:
allow-circular-references: true
sql:
init:
mode: always
platform: hsqldb
2024-02-04 20:53:24 -08:00
# Login ...
logging:
level:
org:
apache:
tomcat: INFO
2024-02-16 22:17:38 -08:00
root: INFO
2024-02-04 20:53:24 -08:00
2024-02-03 19:42:15 -08:00
# Application Configuration.
2024-02-04 18:28:23 -08:00
app:
2024-02-18 18:35:51 -08:00
site:
baseurl: https://localhost:8080
2024-02-10 13:53:44 -08:00
api:
http-basic-enabled: false
2024-02-04 18:28:23 -08:00
jwt:
secret: dlqxKAg685SaKhsQXIMeM=JWCw3bkl3Ei3Tb7LMlnd19oMd66burPNlJ0Po1qguyjgpakQTk2CN3
2024-02-04 20:53:24 -08:00
expirationMin: 10080 # One week
2024-02-04 18:28:23 -08:00
admin:
user: admin@wisemapping.org
2024-02-06 23:04:25 -08:00
mail:
serverSendEmail: root@localhost
supportEmail: root@localhost
2024-02-17 11:18:43 -08:00
enabled: false
2024-02-11 12:21:38 -08:00
#######################################################################################
# Google OAuth Authentication
#######################################################################################
# OAuth Client id
#security.oauth2.google.clientId=<config settings>
# OAuth Client secret
#security.oauth2.google.clientSecret=<oauth client>
# Redirect to this url, this url must be configured in the google app {baseurl}/c/registration-google
#security.oauth2.google.callbackUrl=<oauth callback url>
security:
2024-02-18 16:14:56 -08:00
# corsAllowedOrigins: https://dev.wisemapping.com
2024-02-11 12:21:38 -08:00
oauth2:
google:
confirmUrl: https://oauth2.googleapis.com/token
userinfoUrl: https://www:googleapis.com/oauth2/v3/userinfo
url: https://accounts.google.com/o/oauth2/v2/auth?redirect_uri=${app.security.oauth2.google.callbackUrl}&prompt=consent&response_type=code&client_id=${app.security.oauth2.google.clientId}&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&access_type=offline&state=wisemapping&include_granted_scopes=true
2024-02-07 00:04:06 -08:00
# accounts:
# exclusion:
# domain:
2024-02-06 23:04:25 -08:00
2024-02-03 19:42:15 -08:00
google:
recaptcha2:
enabled: true
secretKey: 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
siteKey: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI