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

Production version of deep doen't open ports from port handlers #200

Open
suenot opened this issue Aug 18, 2023 · 0 comments · May be fixed by #248
Open

Production version of deep doen't open ports from port handlers #200

suenot opened this issue Aug 18, 2023 · 0 comments · May be fixed by #248
Assignees
Labels
bug Something isn't working

Comments

@suenot
Copy link
Member

suenot commented Aug 18, 2023

Describe the bug

I think that exist because port doesn't open in deeplinks docker container.

Expected Behavior

No response

Current Behavior

No response

Steps to reproduce

Use code from instruction https://github.com/deep-foundation/dev/blob/main/readme.md . I modify code for my domains:

apt update
apt install -y git curl docker.io docker-compose
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install v18.16.1 && nvm use v18.16.1
npm i -g npm@latest

git clone https://github.com/deep-foundation/dev
(cd dev && node configure-nginx.js --deepcase-domain deepcase.unrealos.com --deeplinks-domain deeplinks.unrealos.com --certbot-email [email protected])

npm rm --unsafe-perm -g @deep-foundation/deeplinks
npm install --unsafe-perm -g @deep-foundation/deeplinks@latest
export HASURA_ADMIN_SECRET=$(node -e "console.log(require('crypto').randomBytes(24).toString('hex'));") && export POSTGRES_PASSWORD=$(node -e "console.log(require('crypto').randomBytes(24).toString('hex'));") && export MINIO_ACCESS_KEY=$(node -e "console.log(require('crypto').randomBytes(24).toString('hex'));") && export MINIO_SECRET_KEY=$(node -e "console.log(require('crypto').randomBytes(24).toString('hex'));"); tee call-options.json << JSON
{
  "operation": "run",
  "envs": {
    "DEEPLINKS_PUBLIC_URL": "https://deeplinks.unrealos.com",
    "NEXT_PUBLIC_DEEPLINKS_URL": "https://deeplinks.unrealos.com",
    "NEXT_PUBLIC_GQL_PATH": "deeplinks.unrealos.com/gql",
    "NEXT_PUBLIC_GQL_SSL": "1",
    "NEXT_PUBLIC_DEEPLINKS_SERVER": "https://deepcase.unrealos.com",
    "JWT_SECRET": "'{\"type\":\"HS256\",\"key\":\"$(node -e "console.log(require('crypto').randomBytes(50).toString('base64'));")\"}'",
    "DEEPLINKS_HASURA_STORAGE_URL": "http://host.docker.internal:8000/",
    "HASURA_GRAPHQL_ADMIN_SECRET": "$HASURA_ADMIN_SECRET",
    "MIGRATIONS_HASURA_SECRET": "$HASURA_ADMIN_SECRET",
    "DEEPLINKS_HASURA_SECRET": "$HASURA_ADMIN_SECRET",
    "POSTGRES_PASSWORD": "$POSTGRES_PASSWORD",
    "HASURA_GRAPHQL_DATABASE_URL": "postgres://postgres:$POSTGRES_PASSWORD@postgres:5432/postgres",
    "POSTGRES_MIGRATIONS_SOURCE": "postgres://postgres:[email protected]:5432/postgres?sslmode=disable",
    "RESTORE_VOLUME_FROM_SNAPSHOT": "0",
    "MANUAL_MIGRATIONS": "1",
    "MINIO_ROOT_USER": "$MINIO_ACCESS_KEY",
    "MINIO_ROOT_PASSWORD": "$MINIO_SECRET_KEY",
    "S3_ACCESS_KEY": "$MINIO_ACCESS_KEY",
    "S3_SECRET_KEY": "$MINIO_SECRET_KEY"
  }
}
JSON
export DEEPLINKS_CALL_OPTIONS=$(cat call-options.json) export DEBUG="deeplinks:engine:*,deeplinks:migrations:*"; deeplinks
  1. Install @l4legenda/passport-discord package in deepcase. In this package 4001 opened for auth callbacks.

  2. http://149.102.136.233:4001/ not works (ip of my server)

Environment

deepcase: 0.1.0-beta.8 (0.0.57)
Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-25-generic x86_64)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

2 participants