Configuring the Booking service
Booking is a component of seatmap.pro
.
It is an application built with Spring Boot.
In the application.yaml file, you can configure the parameters described below.
Server settings
Port at which to start the application.
Parameter | Description | Default value |
---|---|---|
server.port | Server port | 9090 |
Java Spring framework properties
Parameter | Description | Default value |
---|---|---|
spring.datasource.url | Database location | jdbc:postgresql://localhost:15432/seatmap |
spring.datasource.username | Username for connecting to the database | seatmap |
spring.datasource.password | Password for connecting to the database | postgres |
spring.datasource.hikari.connection-timeout | Connection timeout | 60000 (sixty seconds) |
spring.datasource.hikari.maximum-pool-size | Maximum pool size | 20 |
spring.datasource.driver-class-name | JDBC driver for communicating with the database | org.postgresql.Driver |
spring.data.redis.host | Redis server host | localhost |
spring.data.redis.port | Redis server port | 16379 |
spring.security.oauth2.authorizationserver.issuer | Authorization server location | http://localhost:9090 |
spring.security.oauth2.resourceserver.jwt.issuer-uri | Resource server location | http://localhost:9090 |
Delimiter settings
Composite key delimiter (sector;;row;;seat).
Parameter | Description | Default value |
---|---|---|
export.delimiter | Delimiter | ;; |
Services
Parameter | Description | Default value |
---|---|---|
seatmap.path.metrics | Where to send metrics | https://stat.seatmap.pro/booking-metrics |
seatmap.path.editor | Where the editor service is running | http://localhost:8080 |
Springdoc settings
Automatic document generation settings.
Parameter | Description | Default value |
---|---|---|
springdoc.pathsToMatch | List of paths to match | /api/private/** |
springdoc.writer-with-order-by-keys | Whether to enable a deterministic/alphabetical ordering | true |