mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
Bash
#!/bin/bash
|
|
|
|
#=================================================
|
|
# COMMON VARIABLES
|
|
#=================================================
|
|
|
|
#=================================================
|
|
# PERSONAL HELPERS
|
|
#=================================================
|
|
|
|
CONFIGURE_DUNITER() {
|
|
ynh_exec_as "duniter" duniter --home "$data_dir" config \
|
|
--bma --ipv4 127.0.0.1 --port $bma_local_port --remoteh $domain --remotep 443 --noupnp
|
|
|
|
ynh_exec_as "duniter" duniter --home "$data_dir" config \
|
|
--ws2p-host 127.0.0.1 --ws2p-port $ws2p_local_port \
|
|
--ws2p-remote-host "$domain" --ws2p-remote-port 443 \
|
|
--ws2p-remote-path "/ws2p" --ws2p-noupnp
|
|
|
|
# Add BMAS with path, remove auto-generated BMAS endpoint
|
|
ynh_exec_as "duniter" duniter --home "$data_dir" config \
|
|
--addep "BMAS $domain 443 /bma" --remep "BMAS $domain 443"
|
|
}
|
|
|
|
#=================================================
|
|
# EXPERIMENTAL HELPERS
|
|
#=================================================
|
|
|
|
#=================================================
|
|
# FUTURE OFFICIAL HELPERS
|
|
#=================================================
|