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

105 lines
3.0 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:
2024-02-19 00:28:05 -08:00
enabled: always
2024-02-03 20:25:15 -08:00
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:
2024-04-06 02:47:01 -07:00
ui-base-url: http://localhost
api-base-url: http://localhost
2024-02-10 13:53:44 -08:00
api:
http-basic-enabled: false
2024-02-19 00:28:05 -08:00
# analytics:
# account:
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:
2024-02-19 00:28:05 -08:00
sender-email: root@localhost
support-email: root@localhost
2024-02-17 11:18:43 -08:00
enabled: false
2024-02-19 00:28:05 -08:00
accounts:
max-inactive: 20
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>
2024-02-19 00:28:05 -08:00
# Redirect to this url, this url must be configured in the google app {ui-base-url}/c/registration-google
2024-02-11 12:21:38 -08:00
#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:
2024-03-21 22:00:18 -07:00
clientSecret: <google-oath>
2024-02-11 12:21:38 -08:00
confirmUrl: https://oauth2.googleapis.com/token
userinfoUrl: https://www:googleapis.com/oauth2/v3/userinfo
2024-02-19 00:28:05 -08:00
callbackUrl: https://app.wisemapping.com/c/registration-google
clientId: 625682766634-cocbbbbb403iuvps1evecdk6d7phvbkf.apps.googleusercontent.com
2024-02-11 12:21:38 -08:00
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-19 00:28:05 -08:00
# accounts:
# exclusion:
# domain:
2024-02-18 22:55:19 -08:00
registration:
2024-02-19 00:28:05 -08:00
enabled: true
2024-02-18 22:55:19 -08:00
captcha:
enabled: false
2024-02-19 00:28:05 -08:00
siteKey: some-key
secretKey: some-secret
2024-02-03 19:42:15 -08:00