Compare commits
No commits in common. "7956a8a961ab3e5a5b82491425531411e25cc8db" and "e67c9a77cecaf402579486d112da12c068a70044" have entirely different histories.
7956a8a961
...
e67c9a77ce
2 changed files with 4 additions and 22 deletions
|
|
@ -40,22 +40,6 @@ services:
|
||||||
retries: 5
|
retries: 5
|
||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
|
||||||
redis:
|
|
||||||
image: redis:8.4.0-alpine
|
|
||||||
container_name: redis
|
|
||||||
ports:
|
|
||||||
- "6379:6379"
|
|
||||||
restart: always
|
|
||||||
command: ["redis-server", "--appendonly", "yes"]
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "redis-cli", "ping"]
|
|
||||||
interval: 10s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 5
|
|
||||||
start_period: 5s
|
|
||||||
volumes:
|
|
||||||
- redis_data:/data
|
|
||||||
|
|
||||||
nyanimedb-backend:
|
nyanimedb-backend:
|
||||||
image: meowgit.nekoea.red/nihonium/nyanimedb-backend:latest
|
image: meowgit.nekoea.red/nihonium/nyanimedb-backend:latest
|
||||||
container_name: nyanimedb-backend
|
container_name: nyanimedb-backend
|
||||||
|
|
@ -67,8 +51,8 @@ services:
|
||||||
RABBITMQ_URL: ${RABBITMQ_URL}
|
RABBITMQ_URL: ${RABBITMQ_URL}
|
||||||
JWT_PRIVATE_KEY: ${JWT_PRIVATE_KEY}
|
JWT_PRIVATE_KEY: ${JWT_PRIVATE_KEY}
|
||||||
AUTH_ENABLED: ${AUTH_ENABLED}
|
AUTH_ENABLED: ${AUTH_ENABLED}
|
||||||
# ports:
|
ports:
|
||||||
# - "8080:8080"
|
- "8080:8080"
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
- rabbitmq
|
- rabbitmq
|
||||||
|
|
@ -84,8 +68,8 @@ services:
|
||||||
DATABASE_URL: ${DATABASE_URL}
|
DATABASE_URL: ${DATABASE_URL}
|
||||||
SERVICE_ADDRESS: ${SERVICE_ADDRESS}
|
SERVICE_ADDRESS: ${SERVICE_ADDRESS}
|
||||||
JWT_PRIVATE_KEY: ${JWT_PRIVATE_KEY}
|
JWT_PRIVATE_KEY: ${JWT_PRIVATE_KEY}
|
||||||
# ports:
|
ports:
|
||||||
# - "8082:8082"
|
- "8082:8082"
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
networks:
|
networks:
|
||||||
|
|
@ -105,7 +89,6 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
rabbitmq_data:
|
rabbitmq_data:
|
||||||
redis_data:
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
nyanimedb-network:
|
nyanimedb-network:
|
||||||
|
|
|
||||||
|
|
@ -199,7 +199,6 @@ func (s Server) GetImpersonationToken(ctx context.Context, req auth.GetImpersona
|
||||||
}
|
}
|
||||||
|
|
||||||
if req.Body.UserId != nil {
|
if req.Body.UserId != nil {
|
||||||
// TODO: check user existence
|
|
||||||
if user_id != "" && user_id != fmt.Sprintf("%d", *req.Body.UserId) {
|
if user_id != "" && user_id != fmt.Sprintf("%d", *req.Body.UserId) {
|
||||||
log.Error("user_id and external_d are incorrect")
|
log.Error("user_id and external_d are incorrect")
|
||||||
// TODO: 405
|
// TODO: 405
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue