added posts on feed and posts on map

This commit is contained in:
SlimusMinus
2026-09-29 01:03:54 +03:00
parent a44ca00222
commit 870739f45f
22 changed files with 639 additions and 44 deletions

View File

@@ -23,8 +23,14 @@ spring:
data:
redis:
host: localhost
host: ${REDIS_HOST:localhost}
port: 6379
password: ${REDIS_PASSWORD}
timeout: 500ms
connect-timeout: 500ms
web:
pageable:
max-page-size: 50
liquibase:
change-log: classpath:db/changelog/db.changelog-master.yaml
@@ -52,4 +58,4 @@ jwt:
app:
cors:
allowed-origins: http://localhost:5173,http://localhost:3000,http://192.168.1.75:3000
allowed-origins: http://localhost:5173,http://localhost:3000,http://192.168.1.76:3000

View File

@@ -0,0 +1,11 @@
databaseChangeLog:
- changeSet:
id: 2026-09-28-01-create-post-lat-lng-index
author: a.krylov
changes:
- sql:
sql: >
CREATE INDEX idx_post_lat_lng
ON posts (latitude, longitude)
WHERE latitude IS NOT NULL
AND longitude IS NOT NULL;

View File

@@ -24,4 +24,5 @@ databaseChangeLog:
- include: { file: db/changelog/add/016-add-sessionid-click.yaml }
- include: { file: db/changelog/alter/012-advertising-media_key.yaml }
- include: { file: db/changelog/alter/013-del-ad_id-click-impression.yaml }
- include: { file: db/changelog/create/011-create-fullscreen-ads.yaml }
- include: { file: db/changelog/create/011-create-fullscreen-ads.yaml }
- include: { file: db/changelog/constraint/010-idx-post-lat-lng-index.yaml }