initial commit

This commit is contained in:
nihonium 2023-01-15 13:53:21 +03:00
commit 3b3c9a9417
Signed by: nihonium
GPG key ID: 0251623741027CFC
258 changed files with 20086 additions and 0 deletions

View file

@ -0,0 +1,35 @@
# JPA setup
spring.datasource.url=jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/${MYSQL_DATABASE:editor}
spring.datasource.username=${MYSQL_USER:editor}
spring.datasource.password=${MYSQL_PASSWORD:password}
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
spring.jpa.hibernate.ddl-auto=update
spring.jpa.generate-ddl=true
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
# Spring misc setup
logging.level.org.springframework.web=DEBUG
# General App properties
server.port=${SERVER_PORT:8080}
app.debug=false
# App's defaults
app.defaults.admin.username=admin
app.defaults.admin.password=@dM1ni$theb3sT
# Security
app.security.password.length.min=8
app.security.password.length.max=42
app.security.auth_token.name=AuthToken
app.security.auth_token.secret=VolgaCTF2022
app.security.auth_token.validity.period=360
app.security.user.expiration.period=360
app.security.user.expiration.schedule=* 15 * * * *
# Static contents settings
app.storage.image.fs.root=/app/.data
app.storage.image.types=jpeg,png
app.storage.image.count.limit=10

View file

@ -0,0 +1,34 @@
# JPA setup
spring.datasource.url=jdbc:h2:mem:testdb
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=password
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.jpa.generate-ddl=true
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
# Spring misc setup
logging.level.org.springframework.web=DEBUG
# General App properties
server.port=${SERVER_PORT:8080}
app.debug=true
# App's defaults
app.defaults.admin.username=admin
app.defaults.admin.password=@dM1ni$theb3sT
# Security
app.security.password.length.min=8
app.security.password.length.max=42
app.security.auth_token.name=AuthToken
app.security.auth_token.secret=VolgaCTF2022
app.security.auth_token.validity.period=360
app.security.user.expiration.period=360
app.security.user.expiration.schedule=* 15 * * * *
# Static contents settings
app.storage.image.fs.root=./target/static
app.storage.image.types=jpeg,png
app.storage.image.count.limit=10

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 KiB

File diff suppressed because it is too large Load diff