Setup matrix-spring-boot

This commit is contained in:
2021-03-25 19:49:20 +01:00
parent 63a2bca566
commit a03da9dc74
4 changed files with 60 additions and 7 deletions

View File

@@ -1,7 +0,0 @@
spring.security.oauth2.resourceserver.jwt.issuer-uri=http://localhost:8080/auth/realms/okupamicoche
#spring.security.oauth2.resourceserver.jwt.issuer-uri=https://auth.fosil.eu/auth/realms/test
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:h2:file:./okupamicoche;DB_CLOSE_ON_EXIT=FALSE;AUTO_RECONNECT=TRUE
spring.datasource.driver-class-name=org.h2.Driver
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
server.port=8081

View File

@@ -0,0 +1,55 @@
server:
port: 8081
spring:
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:file:./okupamicoche;DB_CLOSE_ON_EXIT=FALSE;AUTO_RECONNECT=TRUE
jpa:
database-platform: org.hibernate.dialect.H2Dialect
hibernate:
ddl-auto: update
security:
oauth2:
resourceserver:
jwt:
issuer-uri: http://localhost:8080/auth/realms/okupamicoche
matrix:
bot:
# The domain-part of matrix-ids. E. g. example.org when your userIds look like @unicorn:example.org
serverName: synapse
# The localpart (username) of the user associated with the application service
# or just the username of your bot.
username: test
# (optional) Display name for the bot user.
displayname: Okupa mi coche
# (optional) The mode you want to use to create a bot. Default is CLIENT. The other is APPSERVICE.
mode: CLIENT
# (optional) Configure how users managed by your bot do automatically join rooms.
# ENABLED allows automatic joins to every invited room.
# DISABLED disables this feature.
# Default is RESTRICTED, which means, that only automatic joins to serverName are allowed.
autoJoin: DISABLED
# (optional) Configure if ALL membership changes should be tracked/saved with help of MatrixAppserviceRoomService
# or only membership changes of users, which are MANAGED by the bridge. Default is ALL (no tracking/saving).
trackMembership: ALL
# Connection settings to the database (only r2dbc drivers are supported)
migration:
url: jdbc:h2:file:./matrix
username: sa
password:
# Connection setting to the database for migration purpose only (only jdbc drivers ar supported)
database:
url: r2dbc:h2:file:///./matrix
username: sa
password:
client:
homeServer:
# The hostname of your Homeserver.
hostname: synapse
# (optional) The port of your Homeserver. Default is 443.
port: 8008
# (optional) Use http or https. Default is true (so uses https).
secure: false
# The token to authenticate against the Homeserver.
token: MDAxNWxvY2F0aW9uIHN5bmFwc2UKMDAxM2lkZW50aWZpZXIga2V5CjAwMTBjaWQgZ2VuID0gMQowMDIwY2lkIHVzZXJfaWQgPSBAdGVzdDpzeW5hcHNlCjAwMTZjaWQgdHlwZSA9IGFjY2VzcwowMDIxY2lkIG5vbmNlID0gLktxS1E0elVTSi10LDJQTwowMDJmc2lnbmF0dXJlIJ3TmHyJSZw9H0AsCgn3mK4MUhIfRljU-rwxHm5e1N46Cg