2022-03-12 16:55:59 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# COMMON VARIABLES
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# PERSONAL HELPERS
|
|
|
|
#=================================================
|
2024-02-21 14:59:14 +01:00
|
|
|
|
2024-02-23 16:59:23 +01:00
|
|
|
run_duniter() {
|
|
|
|
ynh_exec_as "duniter" duniter --home "$data_dir" "$@"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-05-05 20:35:42 +02:00
|
|
|
CONFIGURE_DUNITER() {
|
2024-02-23 16:59:23 +01:00
|
|
|
run_duniter config --bma --ipv4 127.0.0.1 --port "$port_local_bma" --remoteh $domain --remotep 443 --noupnp
|
2024-02-21 14:59:14 +01:00
|
|
|
|
2024-02-23 16:59:23 +01:00
|
|
|
run_duniter config \
|
2024-02-21 18:01:03 +01:00
|
|
|
--ws2p-host 127.0.0.1 --ws2p-port "$port_local_ws2p" \
|
2024-02-21 14:59:14 +01:00
|
|
|
--ws2p-remote-host "$domain" --ws2p-remote-port 443 \
|
|
|
|
--ws2p-remote-path "/ws2p" --ws2p-noupnp
|
2022-05-05 20:35:42 +02:00
|
|
|
|
2024-02-21 14:59:14 +01:00
|
|
|
# Add BMAS with path, remove auto-generated BMAS endpoint
|
2024-02-23 16:59:23 +01:00
|
|
|
run_duniter config --addep "BMAS $domain 443 /bma" --remep "BMAS $domain 443"
|
2022-05-05 20:35:42 +02:00
|
|
|
}
|
2022-03-12 16:55:59 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# EXPERIMENTAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# FUTURE OFFICIAL HELPERS
|
|
|
|
#=================================================
|