Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker: appsettings.json settings are not overwritten #963

Open
martinhoess opened this issue Jan 6, 2025 · 0 comments
Open

Docker: appsettings.json settings are not overwritten #963

martinhoess opened this issue Jan 6, 2025 · 0 comments

Comments

@martinhoess
Copy link

Describe the bug

According to this comment, the RedirectHost setting is overridden in the appsettings.json ... but that doesn’t seem to be correct.

I had the issue where the redirect ended up in a loop, and it kept trying multiple times but couldn’t log in.

ResponseBody: {"error":"invalid_client","error_description":"AADSTS500112: The reply address 'https://localhost:5001/signin-oidc' does not match the reply address 'https://presencelight.local:4433/signin-oidc' provided when requesting Authorization code. Trace ID: XXXX Correlation ID: XXXX Timestamp: 2025-01-06 16:50:28Z","error_codes":[500112],"timestamp":"2025-01-06 16:50:28Z","trace_id":"XXX","correlation_id":"XXX"}

I then manually altered the appsettings.json to match the settings in the docker compose, and after the restart, the login/redirect worked.

"RedirectHost": "https://presencelight.local:4433",

To Reproduce
Steps to reproduce the behavior:

services:
  presencelight:
    image: isaaclevin/presencelight:latest
    container_name: presencelight
    restart: unless-stopped
    ports:
      - 8008:80
      - 4433:443
    volumes:
      - /volume1/docker/presencelight/https:/https:ro
      - /volume1/docker/presencelight/config:/app/config
      - /volume1/docker/presencelight/aspnet:/root/.aspnet
    networks:
      - presencelight_default
    hostname: presencelight
    environment:
      ASPNETCORE_HTTPS_PORT: "4433"
      ASPNETCORE_URLS: "https://+:443;http://+:80"
      ASPNETCORE_Kestrel__Certificates__Default__Password: "test"
      ASPNETCORE_Kestrel__Certificates__Default__Path: "/https/presencelight.pfx"
      AzureAd__RedirectHost: "https://presencelight.local:4433/signin-oidc"
      ASPNETCORE_ENVIRONMENT: "Development"
      Serilog__MinimumLevel: "Error"

networks: 
    presencelight_default:
        external: true

Expected behavior
Login without needing to adjust the appconfig.

Screenshots
image
image

Further details

  • Synology docker environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant