Giter Site home page Giter Site logo

gnusocial_ynh's Introduction

gnusocial_ynh

Integration level

This app brings GNU social with Qvitter plugin.

Before install this app you must have:

  • A subdomain as social.example.com or gs.example.com. Qvitter plugin won't work with paths such as example.com/gs
  • Created certificates from Let's encrypt or any non self-signed certificates

There are several profiles for a GNU Social node:

  • Public: Registration for everybody is enabled.
  • Community: Ideal for a smalls groups. No open registration available.
  • Private: Nobody outside could see the node.

Be patient. So far this installation doesn't do the following:

  • Single Sign On

gnusocial_ynh's People

Contributors

gustavomrfz avatar shnoulle avatar guyou avatar maniackcrudelis avatar frju365 avatar

Stargazers

MyNameIsTroll avatar Mauricio Uribe avatar Scith avatar Camille Couturier avatar  avatar  avatar

Watchers

Neustradamus avatar  avatar Adrien Beudin avatar James Cloos avatar kload avatar  avatar ljf (zamentur) avatar  avatar  avatar  avatar

gnusocial_ynh's Issues

Log in admin GUI

gnusocial can log as syslog or as file.

With a file : can create a var/log/gnusocial (and a logrotate), but maybe syslog is better.

The question is how to add a log in admin GUI ?

[Maintenance ping] Is this app still maintained ?

Hello !

This is a friendly automatic notice from the Yunohost Apps team : our tool noticed that this app is listed in the community/official app lists - but this app appears to be inactive.

Hence, this issue was created automatically to check if this app is still actively maintained.

You are the current maintainer ? ๐Ÿ‘ทโ€โ™‚๏ธ ๐Ÿ‘ทโ€โ™€๏ธ

You still actively maintain this app ? ๐ŸŽ‰

Please close this issue to signify that you still actively maintain this app. Nothing else, and thank you for your work โค๏ธ !

You don't intend to maintain this app anymore ? ๐Ÿ˜ข

Either don't do anything, or add a comment to explicitly state that you do not intend / have time / ... to maintain this app (but thanks for your work so far ! ๐Ÿ˜˜). After 15 days, if this issue is still opened, the app will be considered unmaintained.

You wish to become the new maintainer of this app ? ๐Ÿ˜„

You are welcome and free to comment in this thread that you wish to become the new maintainer, and/or to create the corresponding pull request to fix this issue ! (If you do not already have commit rights on this repo, we can then arrange things with the rest of the app team. ๐Ÿ˜‰) Once this issue is closed, the app will then be flagged again as maintained !

Create a service for daemon

Currently daemon is started after install, but there are no services. It's not important because : no valid daemon is really started.

Without daemon enabled all mainteance task is done when loading HTML, with daemon : maintenance is done by daemon (sending old status to whle fediverse for example). Then activate the daemon is great.

To activate the daemon

$config['queue']['enabled'] = true;
$config['queue']['daemon'] = true;
$config['daemon']['piddir'] = '/a pid dir/';
$config['daemon']['user'] = 'user';
$config['daemon']['group'] = 'user';

Then need an accessible pid dir :). And a user.

Then i work on this solution

  • Create a gnusocial user
  • Create a directory for pid ( /var/run/gnusocial/)
  • Create a service : systemd or init.d : better systemd currently ?
  • Activate the service at end

Did you see another things ? Some advice ?

LDAP integration

This LDAP configuration isn't at config.php beacuse it doesn't work yet, however is the best LDAP configuration that I tried so far:

 addPlugin('ldapAuthentication', array(
        'provider_name'=>'localhost',
        'authoritative'=>true,
        'autoregistration'=>true,
        'email_changeable'=>false,
        'password_changeable'=>false,
        'password_encoding'=>'ssha',
        'host'=>array( 'localhost' ),
        'binddn'=>'cn=admin,dc=yunohost,dc=org',
        'bindpw'=>'supersecret',
        'basedn'=>'dc=yunohost,dc=org',
        'attributes'=>array(
                'username'=>'uid',
                'nickname'=>'uid',
                'email'=>'mail',
                'fullname'=>'displayName',
                'password'=>'unicodePwd'
                )
));

addPlugin('ldapAuthorization', array(
        'provider_name'=>'localhost',
        'authoritative'=>true,
        'login_group'=>'ou=users,dc=yunohost,dc=org',
        'roles_to_groups'=>array(
                'moderator'=>'cn=admin,dc=yunohost,dc=org'
                'administrator'=>'cn=admin,dc=yunohost,dc=org'
        ),
        'basedn'=>'dc=yunohost,dc=org',
        'host'=>array( 'localhost' ),
        'binddn'=>'cn=admin,dc=yunohost,dc=org',
        'bindpw'=>'supersecret',
        'attributes'=>array(
                'username'=>'uid'
                )
));

Since uniqueMember attribute is not set at Yunohost's LDAP but GNU Social tries to get it, I skip that check doing the following dirty hack:

  • Function is_dn_member_of_group at plugins/LdapCommon/LdapCommon.php always return true
  • Line throw new Exception(_m('uniqueMember_attribute must be set.')); at plugins/LdapAuthorization/LdapAuthorization.php becomes a commented line

However, GNU social cannot validate users' credentials anyway.

$ cat /var/log/syslog

yunohost statusnet: [gs.example.com:7111.339ef2c2 POST /api/qvitter/checklogin.json] action.php - User error '401' on 'apiqvitterchecklogin': Incorrect credentials.

Any help or comments will be appreciated.

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.