basic config

This commit is contained in:
2025-07-25 05:42:59 +03:00
parent 23057702ae
commit 59743cf9cc
4 changed files with 13 additions and 16 deletions

2
back

Submodule back updated: 61f3a532eb...1dc7c4fd87

View File

@ -4,11 +4,16 @@ serve:
urls: urls:
self: self:
issuer: http://127.0.0.1:4444 issuer: http://oauth2.logidex.ru
public: http://oauth2.logidex.ru
admin: http://oauth2.logidex.ru
consent: http://id.logidex.ru/consent consent: http://id.logidex.ru/consent
login: http://id.logidex.ru/login login: http://id.logidex.ru/
logout: http://id.logidex.ru/logout logout: http://id.logidex.ru/logout
strategies:
access_token: jwt
secrets: secrets:
system: system:
- youReallyNeedToChangeThis - youReallyNeedToChangeThis

View File

@ -22,6 +22,9 @@ server {
if ($arg_secret = "CHANGE-ME-INSECURE-PASSWORD") { if ($arg_secret = "CHANGE-ME-INSECURE-PASSWORD") {
set $allow 1; set $allow 1;
} }
if ($http_x_secret = "CHANGE-ME-INSECURE-PASSWORD") {
set $allow 1;
}
if ($allow = 0) { if ($allow = 0) {
return 403; return 403;
} }

View File

@ -4,7 +4,6 @@ services:
command: serve -c /etc/config/hydra/hydra.yml all --dev command: serve -c /etc/config/hydra/hydra.yml all --dev
depends_on: depends_on:
- hydra-migrate - hydra-migrate
- postgres
volumes: volumes:
- type: bind - type: bind
source: ./config/hydra source: ./config/hydra
@ -12,7 +11,7 @@ services:
networks: networks:
- appnet - appnet
environment: environment:
- DSN=postgres://hydra:secret@postgres:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4 - DSN=postgres://postgres:GjitkeYf%5Beq@172.17.0.1:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4
hydra-migrate: hydra-migrate:
image: oryd/hydra:v2.3.0 image: oryd/hydra:v2.3.0
command: migrate -c /etc/config/hydra/hydra.yml sql up -e --yes command: migrate -c /etc/config/hydra/hydra.yml sql up -e --yes
@ -23,9 +22,7 @@ services:
networks: networks:
- appnet - appnet
environment: environment:
- DSN=postgres://hydra:secret@postgres:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4 - DSN=postgres://postgres:GjitkeYf%5Beq@172.17.0.1:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4
depends_on:
- postgres
nginx: nginx:
image: nginx:latest image: nginx:latest
volumes: volumes:
@ -41,14 +38,6 @@ services:
- front - front
networks: networks:
- appnet - appnet
postgres:
image: postgres:17
environment:
- POSTGRES_USER=hydra
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=hydra
networks:
- appnet
front: front:
image: git.logidex.ru/aserbin/logidex-id-frontend:latest image: git.logidex.ru/aserbin/logidex-id-frontend:latest
environment: environment: