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

157 commits

Author SHA1 Message Date
fc1016514c fix ports again 2024-02-21 17:57:40 +01:00
f2bceb1eac Rename ports 2024-02-21 15:20:06 +01:00
4176505675 Remove --source_id 2024-02-21 15:09:21 +01:00
ec6f832827 Packaging v2 2024-02-21 15:08:58 +01:00
Moul
d0ec6502f2 [mod] #100: Define clearly ports variable names
Check ports are available locally
2024-02-21 15:08:58 +01: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
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
004def4246 [mod] Precise progression message
Change '...' to '…'
2022-05-02 20:01:52 +02:00
Moul
3d858c73ae [fix] #96: Add back ARM support 2022-04-05 18:43:35 +02:00
yalh76
6e2306c3ab Fix missing variables 2022-03-13 22:46:09 +01:00
yalh76
de9175e1f9 Apply last example_ynh 2022-03-12 16:55:59 +01: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
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
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
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
c8b724c49d [mod] Remove check whether Duniter is running before stopping it
Use to break the remove script, and bring in a state between installed
and uninstalled app

systemctl returns 0 in case duniter service is not running
2020-06-29 18:13:37 +02:00
Moul
cccdc6e733 [enh] Use systemctl to reload nginx 2020-06-29 18:06:53 +02:00
Moul
4803879f5c [enh] #21: set Duniter as a systemd service
- use 'systemctl' instead of 'service'
2020-06-29 17:58:28 +02:00
Moul
dd621637d4 [fix] #88: Fix link to the ARM build v1.8.0
The name of the package was different
This is a new package with the normal syntax name
2020-06-21 12:33:33 +02:00
vincentux
48bb9b4095 Update Duniter to v1.8.0
Use ARM build from Stretch
2020-06-14 09:32:50 +02:00
vincentux
8fe72bb9a8
Update remove 2020-06-11 19:00:12 +02:00
vincentux
ef546fed42
Update install 2020-06-11 18:27:42 +02:00
vincentux
98152bc1be
Update upgrade 2020-06-11 18:26:52 +02:00
vincentux
a7ea7833fa
Create Dedicated User (if not existing) 2020-06-11 18:11:04 +02:00
vincentux
354d2a1e11
CREATE DEDICATED USER 2020-06-11 18:01:26 +02:00
Moul
ee35597ed6 [mod] Upgrade upstream to v1.7.21 with DUBPv12
- Get back to artifacts generated by GitLab CD
2020-03-29 12:43:14 +02:00
vincentux
e4ccfa7dec Upgrade upstream to v1.7.18 2020-01-06 14:33:48 +01:00
Moul
83c95a6ce0 [mod] Upgrade upstream to v1.7.17 2019-04-28 23:02:13 +02:00
Moul
fec348d08b [mod] #74: Upgrade upstream to v1.7.16 2019-04-08 23:49:09 +02:00
Moul
91751661a3 [enh] #74: Upgrade upstream to v1.7.14 2019-03-31 22:29:42 +02:00
Moul
c22a66cf90 [fix] typo 2019-01-22 11:11:42 +01:00
Moul
c9279e58cb [mod] #76:Update Duniter to v1.6.29
- Broken links upstream
2019-01-21 21:28:20 +01:00