GithubHelp home page GithubHelp logo

Comments (5)

BackedUpBooty avatar BackedUpBooty commented on May 18, 2024 1

Hey thanks for the quick reply.

I only have the one server which both the proxy and scale8 services are running on.

Proxy is a pre-existing SWAG docker container (essentially nginx + LE certificate host) which is pointing at the router container (which I guess is an nginx container itself at the end of the day).

Yes everything is being run via docker-compose locally.

from scale8-tag-manager-and-analytics.

cwbeck avatar cwbeck commented on May 18, 2024 1

Awesome, thank you for the extra info. We'll replicate your setup and get this sorted for you.

from scale8-tag-manager-and-analytics.

BackedUpBooty avatar BackedUpBooty commented on May 18, 2024 1

Hey thanks very much, that did it! I'll close the ticket now, thanks for such a speedy fix. Looking forward to playing around with this now.

from scale8-tag-manager-and-analytics.

cwbeck avatar cwbeck commented on May 18, 2024

@BackedUpBooty thank you for the bug report.

Just to clarify that you are using a load balancer to terminate SSL and then proxy that on? Are you doing it all via docker-compose locally?

We'll investigate using the steps you have provided and update this thread with configuration steps or push a fix.

from scale8-tag-manager-and-analytics.

cwbeck avatar cwbeck commented on May 18, 2024

@BackedUpBooty - I have updated docker-compose.yml to reflect the router setting requirement.

#111

api:
        image: scale8/api:latest
        container_name: api
        depends_on:
            - mongodb
        expose:
            - "8082"
        environment:
            # To connect to a local version of MongoDB, use mongodb://host.docker.internal .
            MONGO_CONNECT_STRING: "mongodb://mongodb"
            # When booting, we want the server to run the setup job (this will race if multiple API servers are booted at the same time)
            SETUP_MODE: "true"
            # The UI server...
            S8_UI_SERVER: "http://127.0.0.1:8080"

If you change S8_UI_SERVER to https://mysub.domain.com that will make sure the generated tag is correct.

edge:
        image: scale8/edge:latest
        container_name: edge
        depends_on:
            - mongodb
        expose:
            - "6080"
        environment:
            # Run in production
            S8_ENV: "production"
            # To connect to a local version of MongoDB, use mongodb://host.docker.internal .
            MONGO_CONNECT_STRING: "mongodb://mongodb"
            # The API server - required for generating live previews. Here we refer to the 'api' server as defined below.
            S8_API_SERVER: "http://api:8082"
            # The root server refers to the entry point of the network. In this example, we are using the 'route' defined below.
            S8_EDGE_SERVER: "http://127.0.0.1:8080"
            # Proxy a platform's live build in. PROXY_FOR can be either be 'core' or the platform id associated with the platform.
            # PROXY_FOR: "core"
            # PROXY_LOCATION: "http://host.docker.internal:3124/main.js"

Then in the edge config, change S8_EDGE_SERVER to https://mysub.domain.com.

PROXY_LOCATION is purely for debugging and creating platforms. You don't need to change it.

Please let me know if you have any other issues.

from scale8-tag-manager-and-analytics.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.