Giter Site home page Giter Site logo

pandoraisolateconversation's Introduction

项目简介

为了方便大家使用 PandoraNext 进行合租完成了这个小轮子。

Warning

根据始皇提示,当前 UI 下不显示其他人会话会有滚动bug,若要使用请酌情考虑~

image

部署方式

  1. docker-compose.yml
version: '3'

services:
  backend-to-api:
    image: wizerd/pandora-isolate-middleware:latest
    restart: always
    environment:
      - PANDORA_BACKEND_URL=http://172.17.0.1:8181 # PandoraNext地址
      - FILTER_KEYWORD=* # zPandoraNext中设置的会话隔离关键字,默认为*
    ports:
      - "50012:33333"
    

然后执行docker-compose up -d.

  1. 在PandoraNext反代的nginx中添加如下配置
location /backend-api/conversations {
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-Scheme $scheme;
    proxy_set_header X-Forwarded-Proto  $scheme;
    proxy_set_header X-Forwarded-For    $remote_addr;
    proxy_set_header X-Real-IP		$remote_addr;
    proxy_pass       http://172.17.0.1:50012;
}

PS. 将其中的http://172.17.0.1:50012替换为你的docker-compose.yml中的端口和nginx可访问到容器的url。

  1. 执行nginx -s reload重载nginx配置即可。

pandoraisolateconversation's People

Stargazers

Mark li avatar Payne-Wang avatar Sebastian avatar

Watchers

Wizerd avatar

Forkers

opptimus

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.