diff --git a/doc/ADMIN.md b/doc/ADMIN.md new file mode 100644 index 0000000..b3b4ccc --- /dev/null +++ b/doc/ADMIN.md @@ -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`. diff --git a/doc/Admin.md b/doc/Admin.md deleted file mode 100644 index 2babc24..0000000 --- a/doc/Admin.md +++ /dev/null @@ -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 [] 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. diff --git a/manifest.toml b/manifest.toml index 4687299..3bb771d 100644 --- a/manifest.toml +++ b/manifest.toml @@ -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" diff --git a/scripts/install b/scripts/install index 0e9c81d..bec5528 100755 --- a/scripts/install +++ b/scripts/install @@ -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 #=================================================