GithubHelp home page GithubHelp logo

didliedo / chatserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from retroshare/chatserver

0.0 0.0 0.0 185 KB

retroshare-chatserver c++ backend

License: GNU General Public License v3.0

C++ 88.15% QMake 11.85%

chatserver's Introduction

retroshare-chatserver

This is a chat intro server for RetroShare, which (hopefully) deals with the issues the current one from retroshare-nogui has.

How the chatserver works:

  • adds all certificates in a given, hardcoded directory, after adding it deletes them
  • all added PGP ids are stored in a list, which is saved on disk (chatserver_temporary_friends.txt)
  • if a hardcoded number of friends is reached, the oldest gpgIDs are denied as friends
  • after some startup time, the chatserver looks for visible chatlobbies and joins them, if he can still see e.g. the lobby "Chatserver DE"
  • if the lobbys can't be joined, it creates new ones

How to setup:

  • download the git repo
    mkdir ~/retroshare-chatserver
    cd ~/retroshare-chatserver 
    git clone https://github.com/RetroShare/ChatServer.git trunk
    cd trunk
    git submodule update --init
  • change hardcoded constants in chatserver.h to what you want to, compile with
    qmake CONFIG+=rs_chatserver && make
  • setup an account with retroshare-gui as usual, perhaps add some friends which always will be allowed to connect (leeching lobbys and distributing the chatserver lobbys even more far)
  • copy config folder to server
  • create the folder certificateFolder and the file chatserver_temporary_friends.txt (hardcoded in chatserver.h!)
  • start with ./retroshare-chatserver -c configfolder
  • setup w2c as webinterface, see https://github.com/cavebeat/rs-w2c
  • make sure everything is correct with your permissions!

Paths:

  • created Folders in ~/.retroshare
  • ~/.retroshare/chatserver This is where the files of chatserver are stored
  • ~/.retroshare/chatserver/NEWCERTS This is where www-data is storing entered pgp certificates
  • ~/.retroshare/chatserver/STORAGE This is where the serverkey, lobbys and a hyperlink are stored

Files:

  • the file serverkey.txt is stored in ~/.retroshare/chatserver/STORAGE and holds the RetroShare public certificate which is displayed in php frontend
  • friendfifo.txt is stored in ~/.retroshare/chatserver/ and holds the FIFO Slots. chatserver reads them and deletes oldes entry from friendlist if there are more than 100 lines.
  • PHP Frontend https://github.com/cavebeat/rs-w2c/ stores all new certificates in ~/.retroshare/chatserver/NEWCERTS/ chatserver reads all new pgp certificates from this directory and adds them to friendlist. And adds a line to ~/.retroshare/chatserver/friendfifo.txt

chatserver's People

Contributors

cavebeat avatar keisentraut avatar sehraf avatar myfingerhurt avatar marado avatar phenomretroshare avatar csoler avatar

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.