Giter Site home page Giter Site logo

Comments (3)

codeautopilot avatar codeautopilot commented on May 25, 2024

Your organization has reached the subscribed usage limit. You can upgrade your plan at https://github.com/marketplace/code-autopilot-ai-coder

Disclaimer: This comment was entirely generated using AI. Be aware that the information provided may be incorrect.

Current plan usage: 159.51%

Have feedback or need help?
Discord
Documentation
[email protected]

from soketi.

chrispage1 avatar chrispage1 commented on May 25, 2024

I've got a similar setup and it works no problem.

Here's my nginx config:

server {
    listen 443 ssl http2;

    server_name ws.alltrac.test;
    server_tokens off;

    ssl_certificate /certs/dev.pem;
    ssl_certificate_key /certs/dev.key;
    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
    ssl_prefer_server_ciphers on;

    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-XSS-Protection "1; mode=block";
    add_header X-Content-Type-Options "nosniff";

    charset utf-8;

    location / {
        proxy_pass             http://soketi:6001;
        proxy_read_timeout     60;
        proxy_connect_timeout  60;
        proxy_redirect         off;

        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }

    access_log off;
    error_log off;
}

config.json

{
    "debug": true,
    "port": 6001,
    "appManager.array.apps": [
        {
            "id": "testing",
            "key": "testing",
            "secret": "appSecret",
        }
    ]
}

And my docker-compose.yml:

version: "3.5"

services:

  nginx:
    volumes:
      - ./docker/nginx/nginx.conf:/etc/nginx/sites-available/default:delegated
      - ./docker/certificates:/certs:delegated # map our local project keys
      - ~/.mkcert-keys:/root/.local/share/mkcert:delegated # map our global mkcert key
    ports:
      - "80:80"
      - "443:443"

  soketi:
    depends_on:
      - nginx
    image: quay.io/soketi/soketi:1.5-16-debian
    command: soketi start --config=/config/config.json
    volumes:
      - .:/var/www:delegated
      - ./docker/soketi:/config
      - ~/.mkcert-keys:/mkcert:delegated # map our global mkcert key
    environment:
      - SOKETI_SSL_CA=/mkcert/rootCA-key.pem
    ports:
      - "6001:6001"
      - "9601:9601"

This is a local setup but works fine. Your issue appears to be more of an nginx misconfiguration.

from soketi.

chrispage1 avatar chrispage1 commented on May 25, 2024

I've got a similar setup and it works no problem.

Here's my nginx config:

server {
    listen 443 ssl http2;

    server_name ws.alltrac.test;
    server_tokens off;

    ssl_certificate /certs/dev.pem;
    ssl_certificate_key /certs/dev.key;
    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
    ssl_prefer_server_ciphers on;

    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-XSS-Protection "1; mode=block";
    add_header X-Content-Type-Options "nosniff";

    charset utf-8;

    location / {
        proxy_pass             http://soketi:6001;
        proxy_read_timeout     60;
        proxy_connect_timeout  60;
        proxy_redirect         off;

        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }

    access_log off;
    error_log off;
}

config.json

{
    "debug": true,
    "port": 6001,
    "appManager.array.apps": [
        {
            "id": "testing",
            "key": "testing",
            "secret": "appSecret",
        }
    ]
}

And my docker-compose.yml:

version: "3.5"

services:

  nginx:
    volumes:
      - ./docker/nginx/nginx.conf:/etc/nginx/sites-available/default:delegated
      - ./docker/certificates:/certs:delegated # map our local project keys
      - ~/.mkcert-keys:/root/.local/share/mkcert:delegated # map our global mkcert key
    ports:
      - "80:80"
      - "443:443"

  soketi:
    depends_on:
      - nginx
    image: quay.io/soketi/soketi:1.5-16-debian
    command: soketi start --config=/config/config.json
    volumes:
      - .:/var/www:delegated
      - ./docker/soketi:/config
      - ~/.mkcert-keys:/mkcert:delegated # map our global mkcert key
    environment:
      - SOKETI_SSL_CA=/mkcert/rootCA-key.pem
    ports:
      - "6001:6001"
      - "9601:9601"

This is a local setup but works fine. Your issue appears to be more of an nginx misconfiguration.

from soketi.

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.