1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flohmarkt_ynh.git synced 2024-09-03 18:36:30 +02:00
This commit is contained in:
Chris Vogel 2024-04-15 20:28:01 +02:00
parent 2e49040abd
commit dfd554c9b1

View file

@ -14,44 +14,45 @@ To remove the stuff installed by the install script in my testing environment I
**This is really strictly for testing only, yet**
### help welcome
## 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](https://matrix.to/#/%23yunohost-apps:matrix.org) as @chrichri:librem.one .
I also announced this work on the [yunohost forum](https://forum.yunohost.org/t/ynh-flohmarkt-flohmarkt-as-an-app-for-yunohost/28455?u=chrichri).
## questions
## roadmap
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
* ~~use couchdb installation from ynh_couchdb~~: no
* ~~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: <flohmarkt-email>'
* https://github.com/YunoHost/yunohost/blob/8120ac2b3ff2c32a6a812647712663552cc396a6/src/utils/resources.py#L683
* define a custom setting `mail_user` and `mail_domain` using ynh_app_setting_set (or .toml?) if necessary
* ~~how to make flohmarkt send email per port 25 without login?~~ not: install generates an smpt account for flohmarkt to login with and puts it into flohmarkt.conf
* ~~postfix virtual-user table: allow flohmarkt to send email with 'mail from: <flohmarkt-email>'~~ works
* ~~define a custom setting `mail_user` and `mail_domain` using ynh_app_setting_set (or .toml?) if necessary~~ done
* make first ynh_package
* nginx just reverse proxy
* no url filter
* no userdb integration
* ~~nginx just reverse proxy~~ done
* disable http (without s)
* remove script
* backup script (export flohmarkt data from couchdb)
### → 0.1 alpha
* disable path selection and mark it that it needs its own domain.
* tag 0.1 alpha
* write limitations in README.md
### → 0.2 beta
* restore script
* upgrade script
### later
* couchdb
* check if already installed
* if installed by flohmarkt: create couchdb user
* check if install results in the same configuration as with couchdb_ynh
* try to get a filter that stops registration
* in general
@ -59,3 +60,11 @@ For 'yunohost user group' I'd like to have the registration urls rewritten by ng
* is it possible to have multiple flohmarkt instances in one couchdb
* database name could contain domain name
## 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?