mirror of
https://github.com/YunoHost-Apps/cjdns_ynh.git
synced 2024-09-03 18:16:29 +02:00
Merge pull request #10 from dkoukoul/master
Minor fixes and update binary cjdroute
This commit is contained in:
commit
a5cabaea0f
4 changed files with 10 additions and 9 deletions
7
doc/ADMIN.md
Normal file
7
doc/ADMIN.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Setup your website on cjdns network
|
||||
|
||||
1. From the Applications menu, first install wordpress and then "cjdns".
|
||||
2. Obtain your cjdns IPv6 address by navigating to Tools -> Logs -> Click on "Install the 'cjdns' app." Your IPv6 address should be displayed in the log.
|
||||
3. Reboot your YunoHost server to make the tun device available. Navigate to Tools->Shutdown and click Reboot.
|
||||
4. Navigate to Tools -> Yunohost Settings -> Security, and under NGINX, disable "Force HTTPS." Click Save to apply the changes.
|
||||
5. Finally edit `/etc/nginx/conf.d/[your-domain].conf`, add your cjdns-ipv6 to the list of `server_name`.
|
|
@ -1,7 +0,0 @@
|
|||
# Setup your website on cjdns network
|
||||
|
||||
1. In the Applications menu, search for "cjdns" and install it.
|
||||
2. Copy your cjdns ipv6 that is shown when installation completes.
|
||||
3. Navigate to Tools -> Yunohost Settings -> Security, and under NGINX, disable "Force HTTPS." Click Save to apply the changes.
|
||||
5. Edit `/etc/nginx/conf.d/[your-domain].conf`, add your cjdns-ipv6 to the list of `server_name` inside square brackets [<cjdns-ipv6>] and make sure to remove any leading 0 from the address sections.
|
||||
6. Finally, restart nginx and you should be able now to access your wordpress site on the cjdns network.
|
|
@ -33,7 +33,7 @@ ram.runtime = "50M"
|
|||
[resources.sources]
|
||||
[resources.sources.main]
|
||||
amd64.url = "https://github.com/dkoukoul/cjdns/releases/download/v22-7/cjdroute_linux_x86_64.tar.gz"
|
||||
amd64.sha256 = "7385b98a3f7874a1fea14a6afeb9019d3595269b5c3282cb4dea35fc3b4a47ac"
|
||||
amd64.sha256 = "68c4d536d907e33532f13277915f5312a19105056d407f5c04f1360d01559323"
|
||||
arm64.url = "https://github.com/dkoukoul/cjdns/releases/download/v22-7/cjdroute_linux_arm64.tar.gz"
|
||||
arm64.sha256 = "8c391e024cc9094f0ec23ac325c2115013757da34fe730d46fc17436cf4773da"
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ jq '.noBackground = 1' $install_dir/cjdroute.conf > $install_dir/cjdroute.conf.t
|
|||
#=================================================
|
||||
ynh_script_progression --message="Getting cjdns peers..." --weight=1
|
||||
# Fetch the JSON data
|
||||
json=$(curl -s https://vpn.anode.co/api/0.3/vpn/cjdns/peeringlines/)
|
||||
json=$(curl -s -A "ynh" https://vpn.anode.co/api/0.4/vpn/cjdns/peeringlines/)
|
||||
echo "Got peering lines"
|
||||
|
||||
length=$(echo $json | jq '. | length')
|
||||
|
@ -96,6 +96,7 @@ ynh_script_progression --message="Launching cjdns service..." --weight=1
|
|||
|
||||
# Start a systemd service
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
|
||||
|
||||
#=================================================
|
||||
# MAKE WORDPRESS AVAILABLE ON CJDNS
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue