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

272 commits

Author SHA1 Message Date
eric_G
4f1f27adf8
Merge pull request #115 from YunoHost-Apps/testing
Testing
2024-06-05 09:07:07 +02:00
yunohost-bot
8f94370930 Auto-update READMEs 2024-06-05 07:06:49 +00:00
Éric Gaspar
e8e0f3afdb Merge branch 'testing' of https://github.com/YunoHost-Apps/duniter_ynh into testing 2024-06-05 09:06:44 +02:00
Éric Gaspar
03dac93475 fix linter 2024-06-05 09:06:40 +02:00
yunohost-bot
94b149e12e Auto-update READMEs 2024-06-05 07:06:25 +00:00
yunohost-bot
0792362eda Auto-update README 2024-03-29 07:01:03 +01:00
Salamandar
4dc2427ad7
Merge pull request #113 from YunoHost-Apps/manifestv2
Manifestv2
2024-02-23 17:34:29 +01:00
202b85c732 Remove manifest fixmes 2024-02-23 17:04:31 +01:00
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