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

264 commits

Author SHA1 Message Date
yunohost-bot
4c119d681c Auto-update README 2024-02-23 15:59:29 +00:00
af07d5b013 Add warning, wipe data when moving to 1.8.7 2024-02-23 16:59:23 +01:00
3ca1deb87d Revamp systemd service, log to journalctl, direct start 2024-02-23 16:32:45 +01:00
09feafc825 direct (non-daemon) start 2024-02-23 11:36:15 +01:00
bca6d2c04f Remove armhf 2024-02-23 10:24:06 +01:00
602afa6c5a try another default port 2024-02-23 10:23:10 +01:00
2c90f89c35 Found how to configure port web admin 2024-02-22 20:19:13 +01:00
0c265d31bd Add init_main_permission to manifest 2024-02-21 18:04:06 +01:00
8ce31e51fc fix ports again 2024-02-21 18:01:03 +01:00
fc1016514c fix ports again 2024-02-21 17:57:40 +01:00
f2bceb1eac Rename ports 2024-02-21 15:20:06 +01:00
c1eba19e9c extract = false 2024-02-21 15:12:41 +01:00
4176505675 Remove --source_id 2024-02-21 15:09:21 +01:00
yunohost-bot
824b36b8ea Auto-update README 2024-02-21 15:08:58 +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
Salamandar
1d30a54025
Merge pull request #110 from YunoHost-Apps/autopatch-http_host
[autopatch] Fix Host and X-Forwarded-For header spoofing
2024-02-21 15:08:12 +01:00
yunohost-bot
6906184402 Auto-update README 2024-02-21 13:12:30 +00:00
tituspijean
66b6b8d6da [autopatch] Fix Host and X-Forwarded-For header spoofing 2024-02-21 14:12:21 +01:00
yunohost-bot
de1572716b Auto-update README 2023-10-31 14:08:12 +00:00
Moul
832a2d36ce Bump to v1.8.7 for 64 bits
No build for ARM yet
Test upgrade from ARM v1.8.5 bump commit
2023-07-12 19:15:43 +02:00
yunohost-bot
37d9543482 Auto-update README 2023-03-17 11:19:13 +00:00
Moul
c462f64ff8 Translate Configurations § in French
Extend English version
2023-03-17 12:19:02 +01:00
yunohost-bot
5d1dfac08a Auto-update README 2023-03-17 11:03:30 +00:00
Thatoo
e7faaa491f Readme: Introduce First synchronization § using CLI 2023-03-17 12:02:19 +01:00
yunohost-bot
95bf4f9574 Auto-update README 2023-01-15 18:49:54 +00:00
Moul
70eaf1b90a Bump ARM Duniter Deb pkg to v1.8.5, requires YnH v11
Set YunoHost/Debian Bullseye v11 as requirement
since the ARM package was built on Bullseye and doesn't
support Buster
2023-01-15 19:49:51 +01:00
Moul
76a53cf629 Bump Duniter 64bits to v1.8.5 2022-09-05 08:34:51 +02:00
yunohost-bot
896b8a2af7 Auto-update README 2022-08-17 21:46:54 +02:00
Moul
2ac36db729 Bump to Duniter v1.8.3
Only bumped 64/32 bits to v1.8.3, since the ARM
Debian package requires YnH/Debian v11, and
I don't want people to prematurely upgrade their
instance to YnH/Debian v11 in order to update
Duniter to v1.8.3 in order to be able to continue
on the hard-fork

Test upgrade from v1.8.2~ynh2
2022-08-17 21:46:54 +02:00
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