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

21 commits

Author SHA1 Message Date
Moul
d0ec6502f2 [mod] #100: Define clearly ports variable names
Check ports are available locally
2024-02-21 15:08:58 +01:00
tituspijean
66b6b8d6da [autopatch] Fix Host and X-Forwarded-For header spoofing 2024-02-21 14:12:21 +01: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
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
Moul
5dc4d3b259 [mod] nginx: remove cesium proxy_pass 2018-11-29 16:47:13 +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
17d49d75c6 [fix] HTTP GET parameters were not shared to modules 2017-06-21 11:45:23 +02:00
Cédric Moreau
cbc22059ee Add Nginx conf for modules 2017-06-14 11:13:00 +02:00
Moul
2ddb2cc18e [fix] nginx conf: typo.
- bad copy/pasta from:
  - https://github.com/duniter/duniter/issues/598#issuecomment-249557322
  - https://github.com/duniter/duniter/issues/401#issuecomment-238034339
2017-04-20 15:21:16 +02:00
Cédric Moreau
63d888933d The "About" page is not showing Duniter logo 2017-03-17 15:16:56 +01:00
Cédric Moreau
e63ca82933 WebSocket timeout set to 1 day 2017-03-03 10:32:53 +01:00
Cédric Moreau
821d2e2c8c [enh] Change configuration to have HTTPS only 2017-02-15 10:17:45 +01: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
e2c49b599b [enh] nginx: add better nginx conf file wich should manage sockets, but it's not working. 2016-08-08 14:38:03 +02:00
Moul
6cca02f01c [fix] nginx conf: make it works on every path. 2016-06-23 18:05:13 +00:00
Moul
f47ce16fa1 [enh] nginx conf: proxy_pass to access the ui on /duniter/ and the API on /duniter/api. 2016-06-23 17:53:34 +00:00
Moul
f6020c33c2 [enh] set proxy_pass to duniter-ui. 2016-06-23 12:55:56 +00:00
Moul
85ad1a787f [enh] Include YunoHost tile. 2016-06-23 12:46:03 +00:00
Moul
e47e44ad61 [mfix] spelling. 2016-05-31 22:42:53 +00:00
Moul
49d04d56cd Clone from https://moul.re/repo/moul/ucoin_ynh/ 2016-05-31 22:42:52 +00:00