Giter Club home page Giter Club logo

Comments (4)

djpiper28 avatar djpiper28 commented on August 18, 2024

Hi there, not the main dev. I think this may be related to CORS. The python library that accepts connections has an environment argument for a Cors regex. What is your config?

from bracket.

evroon avatar evroon commented on August 18, 2024

Yes CORS is becoming a common problem, I think I'll disable the entire middleware by default. Now it's enabled by default

from bracket.

mcm2007 avatar mcm2007 commented on August 18, 2024

So i decided to re-start and will be going on a fresh debain installation;
Done sudo apt-get install docker-compose;
Pulled the repo with git clone https://github.com/evroon/bracket.git
Now in the docker-compose.yml:
version: '3.1'

services:
bracket-frontend:
image: ghcr.io/evroon/bracket-frontend
container_name: bracket-frontend
ports:
- "3000:3000"
environment:
NEXT_PUBLIC_API_BASE_URL: "http://tornuments.byteb.shop:8400"
NEXT_PUBLIC_HCAPTCHA_SITE_KEY: "my hcathpa key" # Public test key
restart: unless-stopped

bracket-backend:
    image: ghcr.io/evroon/bracket-backend
    container_name: bracket-backend
    ports:
        - "8400:8400"
    environment:
        ENVIRONMENT: "DEVELOPMENT"
        PG_DSN: "postgresql://bracket_dev:bracket_dev@postgres:5432/bracket_dev"
    volumes:
        - ./backend/static:/app/static
    restart: unless-stopped
    depends_on:
      - postgres

postgres:
    image: postgres
    restart: always
    environment:
      POSTGRES_DB: bracket_dev
      POSTGRES_USER: bracket_dev
      POSTGRES_PASSWORD: bracket_dev

Then done sudo docker-compose up -d
Opened ports 3000 and 8400 (just in case) TCP on AWS.
You can try and access it on http://tornuments.byteb.shop:3000
But cant login somehow...

from bracket.

mcm2007 avatar mcm2007 commented on August 18, 2024

Update: Somehow, idk what on god happend but it worked.
Issue: An warning appears when any user wants to create an account; and it is suppost to be visible to everyone the join tornument part... How can i do that?
Also https, and email, do i need to create an .env? How is it managed?
Thanks for the help so far!

from bracket.

Related Issues (20)

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.