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

91 commits

Author SHA1 Message Date
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
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
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
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
f4f138928c
Merge pull request #85 from vincentux/patch-6
Update install
2021-11-25 19:03:34 +01: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
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
4803879f5c [enh] #21: set Duniter as a systemd service
- use 'systemctl' instead of 'service'
2020-06-29 17:58:28 +02:00
vincentux
ef546fed42
Update install 2020-06-11 18:27:42 +02:00
vincentux
354d2a1e11
CREATE DEDICATED USER 2020-06-11 18:01:26 +02:00
Moul
3e379d9fa8 [mod] #51: remove no longer neccessary sudo 2018-11-29 17:03:39 +01:00
Moul
4b440bf2ac [fix] wrong log path. 2018-11-29 15:11:11 +01:00
Moul
62336dd1cd [enh] configure Duniter at install and upgrade steps. 2018-03-13 19:37:59 +01:00
Moul
b32855f1a4 [enh] #64: configure Nginx and Duniter to handle WS2P API. 2018-03-09 08:37:46 +01:00
Cédric Moreau
4416f892d9 Remove sync parameters 2017-06-14 16:40:34 +02:00
Cédric Moreau
fc3ae457f1 No initial sync 2017-06-14 16:40:34 +02:00
Moul
201cd7a52b [enh] don't ask for port as it's only used locally. Set it at duniter official value. 2017-03-20 21:01:47 +01:00
Moul
6fa1bb77ba [mod] package cleannings. 2017-03-14 09:41:28 +01:00
Moul
3ecb69de8f [mod] scripts: use 'duniter' command as '' var won't works on
multi-instances.
2017-03-14 09:07:39 +01:00
Moul
f754400f3a [fix] endpoint addition do not works with other configurations. 2017-03-12 20:00:12 +01:00
Moul
21da4e55b9 [enh] Use BMA with port 80. Add BMAS endpoint with port 443. 2017-03-09 18:34:53 +01:00
Moul
cdf593c0b0 [enh] fix errors reported by linter. 2017-02-21 14:52:50 +01:00
Moul
08952ca781 [mod] close #30: Do not ask for credentials at install as it's insecure:
- remove from manifest and install script corresponding code.
- readme: add explaination how to configure the key on his node.
2017-02-21 14:52:43 +01:00
Moul
07c73d399a [mod] #12: remove install path choice.
A dedicated domain name is needed and make it easier to configure.
Remove code on manifest, install and upgrade scripts.
2017-02-21 12:58:51 +01:00
Moul
64e334bb1d [fix] #29: pull request review:
- [fix] missing '$' before env var to retrieve is cesium is public or not.
- [fix] use YunoHost helper to set a value.
- [fix] remove Cesium patch which have been fixed upstream.
2017-02-20 15:22:42 +01:00
Cédric Moreau
51f91a24da [enh] Add a Cesium public access option 2017-02-15 11:00:33 +01:00
Cédric Moreau
821d2e2c8c [enh] Change configuration to have HTTPS only 2017-02-15 10:17:45 +01:00
Moul
f7af82df35 [fix] use config subcmd as init subcmd have been removed:
- See: 48a59b131c
2016-11-15 10:55:27 +01:00
Moul
e53082b137 [mod] #26: do not display logs of debian package install and sync process. 2016-10-14 14:50:13 +02:00
Moul
aeef0080cd [enh] close #19: use functions for duplicate code on scripts 2016-08-20 02:31:08 +02:00
Moul
6f96db42ac [enh] #14: automatically retrieve last version
- retrive last version available for x64 or for armel architectures
- upgrade enable set -u
2016-08-20 01:35:46 +02:00
Moul
0b0936031f [enh] nginx: check configuration before reload it. 2016-08-10 11:35:43 +02:00
Moul
4a9375dc99 [enh] close #9 and #17: remove cpu asking. 2016-08-09 20:00:02 +02:00
Moul
bad29ef90e [enh] #12, grant access to the graphical interface only to the admin.
- install, upgrade: protect the path and grant access to admin user.
- upgrade: forget to comment unused sed.
- Update readme: add information about webadmin on root path.
2016-08-09 19:19:28 +02:00
Moul
2b091dc805 [enh] #12 web admin: retrict install to root path.
- Install: add check to install only on root path, comment sed line
- Nginx conf: remove path choice sed
- Manifest: set root path as default, add explaination.
- Update upstream to 0.22.0a7 which handle proxy with https for webadmin
- Update readme: add information about webadmin on root path and how to access api.
-
2016-08-09 18:35:09 +02:00
Moul
2f0a7722c8 [enh] close #7: enable ARM build which works.
- enable ARM build which works
- update upstream to 0.20.0
2016-07-03 11:47:35 +02:00
Moul
913d698e11 [enh] scripts: add futur access management for admin on /duniter and public access on /duniter/api. 2016-06-24 12:19:02 +02:00
Moul
32d3690e90 [enh] retrieve admin argument and store it. 2016-06-24 11:57:31 +02:00
Moul
38dddb4bba [fix] scripts: check CPU arch before doing modifications on the system. 2016-06-24 11:49:05 +02:00
Moul
f61cc3606f [enh] use webstart cmd to launch duniter-ui. 2016-06-23 12:47:19 +00:00
Moul
e6ac3173c8 [enh] Retrieve arguments via environment variables. 2016-06-23 11:27:00 +00:00
Moul
6705e38248 [enh] scripts: use helpers. 2016-06-23 11:12:33 +00:00