1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/duniter_ynh.git synced 2024-09-03 18:26:35 +02:00
Commit graph

234 commits

Author SHA1 Message Date
Moul
efdcf8786f Bump to v1.8.2~ynh2 2022-05-06 09:04:49 +02:00
Moul
f9c9c5c5fd [enh] Add BMA endpoint definition with /bma path
I thought there were an issue to apply because of the already
existing and auto-generated BMAS endpoint
In reality, it wasn’t applied because of the issue from previous commit:
conf not applied in the right config directory

Remove autogenerated endpoint
2022-05-06 09:04:49 +02:00
Moul
5d83c9c7f7 [fix] Fix home directory specification when applying config
I thought specifying 'duniter'’s $HOME to
/home/yunohost.app/duniter to be enough
The config actually went into:
/home/yunohost.app/duniter/.config/duniter_default/

Specify '--home $datadir', so the configuration goes into
/home/yunohost.app/duniter/duniter_default/

Update documentation accordingly with \$HOME to make
the already a long and relative complex command shorter
2022-05-06 09:04:49 +02:00
Moul
229636f7fc [mod] Move Duniter configuration in _common.sh
In order to maintain these lines once
to avoir repetitive code
Improve progress message/comments
2022-05-06 09:04:49 +02:00
yunohost-bot
656e78028d Auto-update README 2022-05-02 20:01:52 +02:00
Moul
d379f499a3 Bump package to 1.8.2~ynh1 2022-05-02 20:01:52 +02:00
Moul
3f02aba73f [doc] Update doc about new paths for BMA and webadmin 2022-05-02 20:01:52 +02:00
Moul
92b935d547 [doc] Disclaimer: How to run Duniter commands with 'duniter' user
Remove oudated Cesium module installation method.
2022-05-02 20:01:52 +02:00
Moul
e862b9e7ed [ref] Protect webadmin, mv BMA and webadmin paths to make the CI happy
\# Protect webadmin

Modify 'main' permission group to protect the webadmin to the admin

Create 'apis' permission publicly accessible to make BMA and WS2P APIs
accessible to whole Internet and set --auth_header=false

\# Nginx misconfiguration

BMA is exposed on port 10901
The webadmin on port 9220
this explains why BMA was not accessible
because it was redirected to the webadmin
Was probably done to solve following problem with the CI

\# Move BMA to /bma and webadmin to root path '/'

Move the WebAdmin from '/webadmin' to '/' root path
Move BMA from '/' to '/bma/' path

In order to have passing access test on the root path with the CI
BMA returns a 502 HTTP error since no synchronization have been performed
therefore there is nothing to be displayed

Cesium and Silkaj support connection to BMA endpoint with a path in

\## TODOs in Duniter v1
There is no synchronization possible to duniter_ynh BMA api,
since Duniter doesn’t support specifying a path to 'sync' command

Can’t define a custom BMAS endpoint with /bma path in
The endpoint doesn’t stay, it seems its overwritten by the fact that when
specifying port 443, BMAS endpoint get created and overwrites this one
ynh_exec_as duniter duniter config --addep "BMAS $domain 443 /bma"
This is not as important as having a correct WS2P endpoint defined
for inter-node connection
Nice to have for BMA endpoint discovery

\# Clean Nginx config
Define once by moving WS, and SSOwat panel support to the common part
Remove /modules path, not really used anymore
Replace 127.0.0.1 by localhost
2022-05-02 20:01:52 +02:00
Moul
ac91efc755 [fix] Create 'duniter' user with --home-dir as \$datadir
as well with shell in order to be able to run duniter with systemd

So, the configuration get saved in (/home/yunohost.app/duniter) $datadir
with which the service will run with

The consequence of this was at least a broken BMA access due to the
absense of configuration

Run Duniter with 'duniter' user to apply the configuration
to get the config file with correct permissions, using
"ynh_exec_as duniter", an equivalent of su - duniter -c "$cmd"
2022-05-02 20:01:52 +02:00
Moul
ac485a5388 [fix] Add upgrade support datadir move
Upgrade from the state before the refactoring
from 1.8.1~ynh0 to 1.8.2~ynh1

Move Duniter home directory to the YunoHost App path

Check if the destination exists, meaning it’s not running < 1.8.1~ynh1
then run the datadir move

Package_check: Add upgrade check from commit before the refactoring
2022-05-02 20:01:52 +02:00
Moul
71f08a3535 [mod] Remove functions.sh now useless
Remove execution permission on scripts
2022-05-02 20:01:52 +02:00
Moul
36f4c3a5c8 [mod] Update French description 2022-05-02 20:01:52 +02:00
Moul
004def4246 [mod] Precise progression message
Change '...' to '…'
2022-05-02 20:01:52 +02:00
yunohost-bot
cd0e59c368 Auto-update README 2022-04-10 18:17:37 +02:00
Moul
391e43fdae Bump package to v1.8.2~ynh0 2022-04-10 18:17:37 +02:00
Moul
e6f5e31467 Bump Duniter v1.8.2 2022-04-10 18:17:37 +02:00
yalh76
5efa7349a0
Merge pull request #97 from YunoHost-Apps/testing
#96: Add back ARM support
2022-04-06 08:24:05 +02:00
yunohost-bot
e0c5d94236 Auto-update README 2022-04-06 06:23:24 +00:00
yalh76
b1c4d78724 Update manifest.json 2022-04-06 08:23:19 +02:00
Moul
3d858c73ae [fix] #96: Add back ARM support 2022-04-05 18:43:35 +02:00
yalh76
c8c8dcf048
Merge pull request #94 from YunoHost-Apps/testing
Testing
2022-03-15 03:23:02 +01:00
yalh76
5c3fa20c36
Merge pull request #95 from YunoHost-Apps/example
Apply last example_ynh
2022-03-14 20:30:57 +01:00
yalh76
6e2306c3ab Fix missing variables 2022-03-13 22:46:09 +01:00
yunohost-bot
69149509ab Auto-update README 2022-03-12 15:56:04 +00:00
yalh76
de9175e1f9 Apply last example_ynh 2022-03-12 16:55:59 +01:00
Yunohost-Bot
e63e326156 Auto-update README 2021-12-13 16:41:11 +00:00
ericgaspar
24edaa012e Update manifest.json 2021-12-13 17:41:05 +01:00
Yunohost-Bot
6bff719501 Auto-update README 2021-11-25 18:38:32 +00:00
ericgaspar
439659d1c8
update 2021-11-25 19:38:26 +01:00
Éric Gaspar
4781cfed11
Merge pull request #82 from vincentux/patch-3
Create Dedicated User
2021-11-25 19:06:20 +01:00
Éric Gaspar
de4d5e5d00
Merge pull request #83 from vincentux/patch-4
Create Dedicated User (if not existing)
2021-11-25 19:05:47 +01:00
Éric Gaspar
040231e1eb
Merge branch 'testing' into patch-4 2021-11-25 19:05:39 +01:00
Éric Gaspar
fe734e0ff4
Merge pull request #86 from vincentux/patch-7
Update remove
2021-11-25 19:04:24 +01:00
Éric Gaspar
cf6f44ea27
Merge pull request #84 from vincentux/patch-5
Update upgrade
2021-11-25 19:04:06 +01:00
Éric Gaspar
f4f138928c
Merge pull request #85 from vincentux/patch-6
Update install
2021-11-25 19:03:34 +01:00
farvardin
b50d8bc6c1 [doc] README: Warn that the network correction fix is breaking BMA
configuration set for this package with Nginx reverse proxy
2021-11-22 18:39:07 +01:00
Moul
5ee8d5322d [enh] Add --ws2p-remote-path "/ws2p" as configured in Nginx vhost 2021-04-20 20:34:28 +02:00
Moul
a44ee9d4c8 [mod] Rework permission: Add BMA and WS2P accesses to visitors
Fix: Remove admin permission deletion which prevent initial installation
Check if the admin and apis permissions do not exist before creating them.
Better cmds for legacy permission cleaning
2021-04-20 20:32:49 +02:00
Moul
67e49bfb1e [fix] #89: Use new permission system:
Requires YnH v4.1 which implements this new permission system
Use ynh_permission_create helper
Set Duniter admin interface accessible to the selected admin
BMA is set as accessible to visitors by default
Remove / −> /webui redirection, since this change adds a tile to the admin
Remove deprecated permission system settings
Re-enable the web admin since it is protected again
Rename f() name
2021-04-13 20:55:20 +02:00
Moul
aacb2791d6 [fix] #89: Disable web admin since it is no longer protected
with the new permission system brought by YunoHost v4.1
2021-03-28 16:34:17 +02:00
Moul
3598d35693 [fix] Set back the ARM build to v1.8.0 2021-01-20 20:11:05 +01:00
fdrubigny
ec2b43e2e3 Update functions.sh 2021-01-19 22:05:27 +01:00
Moul
6d5366c2bf [enh] BMA: Defining port 443 automatically creates a BMAS endpoint
BMA endpoint is therefore not created, and YnH package doesn't
requires it since there is a LE certificate

https://forum.duniter.org/t/-/7793/9
2020-12-12 13:40:18 +01:00
Moul
fb1567e9c2 [fix] Activate BMA
It seems this is no longer activated by default
2020-11-14 13:53:41 +01:00
Moul
b674b9a4da [fix] #89: Remove /modules path from allowed path to visitors
since it brokes the access BMA since YnH v3.7 permission system
2020-10-03 12:11:31 +02:00
Moul
843e745ad3 Revert "[fix] #89: Use new permission system"
This reverts commit 39f75cddff.
The permission system is not fully ready yet, since we can not protect
two paths
2020-10-03 12:10:31 +02:00
Moul
363a4b4558 [fix] Remove data reset in the installation
It's failling the installation when node.js is installed by other apps
error: Your node is currently running. Please stop it and relaunch your command.
2020-10-02 20:41:52 +02:00
Moul
39f75cddff [fix] #89: Use new permission system
Use ynh_permission_* helpers
Keeping BMA accessible to visitors
and Duniter admin interface accessible to the selected admin
Remove deprecated permission system settings
2020-10-02 20:26:21 +02:00
Moul
a32baa8b3e [mod] Requires YnH 3.7 for ynh_permission_* helpers usage 2020-10-02 20:26:13 +02:00