Files
no-copy/src/main/resources/application.yaml
T
vladp 503463e1d0
Test Workflow / test (push) Successful in 3s
NC_YA
2026-02-06 04:19:43 +07:00

121 lines
3.0 KiB
YAML

spring:
profiles:
active: ${SPRING_PROFILES_ACTIVE:local}
mail:
host: smtp.gmail.com
port: 587
username: vlad.popovtsev@gmail.com
password: gocjwvrqrzlaatsr
properties:
mail:
smtp:
auth: true
starttls:
enable: true
flyway:
enabled: true
baseline-on-migrate: true
datasource:
# Настройки по умолчанию для local разработки
url: jdbc:postgresql://${POSTGRES_HOST:localhost}:${POSTGRES_PORT:54320}/${POSTGRES_DB:no_copy_}
username: ${POSTGRES_USER:postgres}
password: ${POSTGRES_PASSWORD:postgres}
driver-class-name: org.postgresql.Driver
jpa:
hibernate:
ddl-auto: update
show-sql: true
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
format_sql: true
servlet:
multipart:
max-file-size: 10MB
max-request-size: 100MB
enabled: true
resolve-lazily: false
file:
storage:
base-path: ${FILE_STORAGE_PATH:/data/uploads}
chunk-size: ${FILE_CHUNK_SIZE:1000000} # 1MB
max-file-size: ${MAX_FILE_SIZE:10737418240} # 10GB
max-retry-attempts: ${MAX_RETRY_ATTEMPTS:3}
chunk-timeout-ms: ${CHUNK_TIMEOUT_MS:300000} # 5 минут
temp-ttl-hours: ${TEMP_TTL_HOURS:72} # 3 дня
auth-token-life-hours: ${AUTH_TOKEN_LIFE:1} # 1 час
session-expiry-hours: ${SESSION_EXPIRY_HOURS:24}
security:
cors:
allowed-origins: "*"
allowed-methods: GET,POST,PUT,DELETE,OPTIONS
allowed-headers: "*"
allow-credentials: true
server:
port: ${SERVER_PORT:8080}
baseurl: "http://92.242.61.23"
logging:
level:
com.example.fileupload: DEBUG
org.springframework.web: DEBUG
org.hibernate.SQL: DEBUG
file:
name: logs/application.log
pattern:
console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"
yandex:
api-key: ${YANDEX_API_KEY:AQVNyaVaUmgUb1GMCtf5zSEqFxy0woXrcMOOB43q}
folder-id: ${YANDEX_FOLDER_ID:b1gokpdbm6qfpsou8pcd}
search-url: ${YANDEX_SEARCH_URL:https://searchapi.api.cloud.yandex.net/v2/image/search_by_image}
searchapi:
api-key: ${SEARCHAPI_API_KEY:2xBChafVmojL7G1ZXzzUuA6o}
reverse-image-url: "https://searchapi.io/api/v1/search"
app:
email:
verification:
standart-subject: NO COPY - Подтверждение email адреса
standart-address-from: vlad.popovtsev@gmail.com
user: Пользователь
tarif:
demo-price: 0
demo-tokens: 10
demo-max-files-count: 10
demo-disk-size: 100
demo-user-count: 1
start-tokens: 20
start-price: 100
start-max-files-count: 20
start-disk-size: 200
start-user-count: 10
basic-tokens: 30
basic-price: 200
basic-max-files-count: 30
basic-disk-size: 300
basic-user-count: 30
pro-tokens: 40
pro-price: 300
pro-max-files-count: 40
pro-disk-size: 400
pro-user-count: 50
enterprice-tokens: 50
enterprice-price: 400
enterprice-max-files-count: 50
enterprice-disk-size: 500
enterprice-user-count: 80