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

Cannot get config.json #644

Open
paulbdavis opened this issue Dec 2, 2024 · 0 comments
Open

Cannot get config.json #644

paulbdavis opened this issue Dec 2, 2024 · 0 comments

Comments

@paulbdavis
Copy link

paulbdavis commented Dec 2, 2024

I have synapse admin set up on a subpath of my matrix server domain

docker-compose.yaml:

  synapse-admin:
    container_name: synapse-admin
    hostname: synapse-admin
    environment:
      REACT_APP_SERVER: http://synapse:8008
    ports:
      - 8450:80
    build:
      context: https://github.com/Awesome-Technologies/synapse-admin.git
      args:
        - BUILDKIT_CONTEXT_KEEP_GIT_DIR=1
        - BASE_PATH=/synadm
    restart: unless-stopped

nginx config:

    location /synadm {
        # Set proxy headers
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;

        # These are important to support WebSockets
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_pass http://XXX.XXX.XXX.XXX:8450/;
        rewrite ^/synadm(/.*)$ $1 break;
    }

It properly gets the index-*.js file just fine, but then chokes trying to get the config.json file, it seems to not be using the supplied base url.

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