fix(auth): exception initial character after login + otel

This commit is contained in:
Timothy Schenk 2024-09-16 21:11:40 +02:00
parent 4e9e5f4730
commit 72026a8f99
Signed by: rainote
SSH key fingerprint: SHA256:pnkNSDwpAnaip00xaZlVFHKKsS7T8UtOomMzvs0yITE
2 changed files with 53 additions and 48 deletions

View file

@ -1,19 +1,24 @@
repos: repos:
- repo: local - repo: local
hooks: hooks:
#Use dotnet format already installed on your machine #Use dotnet format already installed on your machine
- id: dotnet-format - id: dotnet-format
name: dotnet-format name: dotnet-format
language: system language: system
entry: dotnet format --include entry: dotnet format --include
types_or: [c#, vb] types_or: [c#, vb]
- repo: https://github.com/Mateusz-Grzelinski/actionlint-py - repo: https://github.com/Mateusz-Grzelinski/actionlint-py
rev: v1.6.26.11 rev: v1.6.26.11
hooks: hooks:
- id: actionlint - id: actionlint
additional_dependencies: [pyflakes>=3.0.1, shellcheck-py>=0.9.0.5] additional_dependencies: [pyflakes>=3.0.1, shellcheck-py>=0.9.0.5]
- repo: https://github.com/hadolint/hadolint - repo: https://github.com/hadolint/hadolint
rev: v2.12.0 rev: v2.12.0
hooks: hooks:
- id: hadolint-docker - id: hadolint-docker
args: [--ignore, SC2086] args: [--ignore, SC2086]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.12.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']

View file

@ -4,31 +4,31 @@ services:
image: continuity-auth:latest image: continuity-auth:latest
restart: always restart: always
depends_on: depends_on:
- db - db
environment: environment:
- ENVIRONMENT=Development - ENVIRONMENT=Development
- Testing:CreateAccountOnLogin=true - Testing:CreateAccountOnLogin=true
- DB:Host=db - DB:Host=db
- DB:Port=5432 - DB:Port=5432
- DB:Username=continuity - DB:Username=continuity
- DB:Password=continuity - DB:Password=continuity
- Game:Data:Path=/app/data/ - Game:Data:Path=/app/data/
- Tracing:Enabled=true - Tracing:Enabled=true
- OTEL_EXPORTER_OTLP_ENDPOINT=http://aspire:18889 - OTEL_EXPORTER_OTLP_ENDPOINT=http://aspire:18889
- Logging:LogLevel:Default=Debug - Logging:LogLevel:Default=Debug
networks: networks:
- continuity - continuity
ports: ports:
- 10001:10001 - 10001:10001
volumes: volumes:
- type: bind - type: bind
source: wk-data source: wk-data
target: /app/data target: /app/data
read_only: true read_only: true
- type: bind - type: bind
source: config source: config
target: /app/config target: /app/config
read_only: true read_only: true
mem_limit: 1024m mem_limit: 1024m
db: db:
@ -36,15 +36,15 @@ services:
image: postgres:16.1-alpine image: postgres:16.1-alpine
restart: always restart: always
environment: environment:
- POSTGRES_USER=continuity - POSTGRES_USER=continuity
- POSTGRES_DB=continuity - POSTGRES_DB=continuity
- POSTGRES_PASSWORD=continuity - POSTGRES_PASSWORD=continuity
networks: networks:
- continuity - continuity
volumes: volumes:
- db-data:/var/lib/postgresql/data - db-data:/var/lib/postgresql/data
healthcheck: healthcheck:
test: [CMD-SHELL, "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] test: [CMD-SHELL, 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
interval: 10s interval: 10s
timeout: 3s timeout: 3s
retries: 3 retries: 3
@ -53,12 +53,12 @@ services:
aspire: aspire:
image: mcr.microsoft.com/dotnet/aspire-dashboard:8.0.0 image: mcr.microsoft.com/dotnet/aspire-dashboard:8.0.0
networks: networks:
- continuity - continuity
environment: environment:
- DOTNET_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS=true - DOTNET_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS=true
- Dashboard:Frontend:AuthMode=Unsecured - Dashboard:Frontend:AuthMode=Unsecured
ports: ports:
- 18888:18888 - 18888:18888
networks: networks:
continuity: continuity: