1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flohmarkt_ynh.git synced 2024-09-03 18:36:30 +02:00
integration of flohmarkt - a federated decentral classified ad software using activitypub - into yunohost
Find a file
2024-04-15 08:12:40 +02:00
conf issue #10 2024-04-15 08:12:40 +02:00
scripts 2024-04-12 08:20:16 +02:00
static manifest, README 2024-04-14 10:56:04 +02:00
manifest.toml issue #10 2024-04-15 08:12:40 +02:00
README.md manifest, README 2024-04-14 10:56:04 +02:00

status

These are my notes about questions and ideas regarding packaging flohmarkt for yunohost.

installs, but only installs

I've only been working on the install script, yet. 'Remove' fails or only partly removes what had been installed.

Warning: This will probably break any existing installation of couchdb (there's an couchdb app to install just couchdb and expose its port via nginx reverse-proxy).

To remove the stuff installed by the install script in my testing environment I use systemctl stop flohmarkt.service; systemctl stop couchdb; yunohost app remove flohmarkt; rm -rf /var/lib/couchdb/; rm -rf /home/yunohost.app/flohmarkt; rm -rf /opt/flohmarkt.

Another warning: When installing flohmarkt on a a domain/path and letting it talk to other ActivityPub instances it will propagate a key associated to your domain. If you remove your flohmarkt from that domain and loose that key other instances might not want to talk to you anymore after you installed flohmarkt again on the same domain/path generating a new key.

This is really strictly for testing only, yet

help welcome

You're welcome to take part by opening issues or sending pull requests. You can also reach me on Matrix in Yunohost Apps development as @chrichri:librem.one .

I also announced this work on the yunohost forum.

questions

It is recommended to use couchdb from https://apache.jfrog.io/artifactory/couchdb-deb/ which would need to be included as a repository. It seems that ynh_couchdb provides this.

  • Is it possible to make ynh_couchdb a dependency for my new ynh_flohmarkt?
    • Wrong question: I'll pull in couchdb as a dependency the same way ynh_couchdb does. There'll be a debian package that'll contain a dependency on the couchdb package for ynh_flohmarkt the same as for ynh_couchdb. The last app deinstalled will leave couchdb to apt autoremove to clean up.
  • It looks like ynh_couchdb should listen externally. I'd prefer to have it listen to 127.0.0.1 only. Is there a way to use the existing packet like this.
    • Whatever ynh_couchdb will configure additionally on the couchdb package should be compatible with whatever ynh_flohmarkt will configure on the couchdb package. Otherwise those two apps should not influence each other.

ideas

For the time being I'd not like to integrate into ldap. I'd like to let the admin choose whether registration is open to anybody, to yunohost user group (sso) or nobody. anybody and nobody is what flohmarkt already offers.

For 'yunohost user group' I'd like to have the registration urls rewritten by nginx to some you're not allowed to registered-page if no user with permission is logged in. Is there an example somewhere or is it even possible at all?

plan

  • use couchdb installation from ynh_couchdb

    • why shouldn't two apps install the same os dependency: no problem
    • stop the couchdb deb from being de-installed if one of the two apps is de-installed → pseudo deb with depency This is already achived by ynh_install_extra_app_dependencies in the install script
  • email

    • how to make flohmarkt send email per port 25 without login?
    • postfix virtual-user table: allow flohmarkt to send email with 'mail from: '
  • make first ynh_package

    • nginx just reverse proxy
    • no url filter
    • no userdb integration
  • try to get a filter that stops registration

    • in general
    • for users without permission (sso)
  • is it possible to have multiple flohmarkt instances in one couchdb

    • database name could contain domain name