Qortal Project

The future of blockchain platforms

User Tools

Site Tools


how_to_host_your_public_data

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
how_to_host_your_public_data [01/14/2022 23:21] gfactorhow_to_host_your_public_data [11/04/2022 17:40] (current) gfactor
Line 1: Line 1:
 ====== How To Host Your Public Data ====== ====== How To Host Your Public Data ======
 {{:qortal_official_logo_transparent_.png?400|}} {{:qortal_official_logo_transparent_.png?400|}}
 +
 +===== Overview =====
 +
 +At the moment websites require an index.html. Once we have the apps functionality it will allow for any format to be published. Or you can use the API already, but since the UI won’t display the data there is probably no point.
 +
 +Also, you should be able to use the inner folder that httrack generates, as that has an index.html too. If you use the outer folder then it does a weird redirect when loading the site. I avoided this on QortalDemo by zipping the inner folder only.
 +
 +When using httrack, outer folders are generated by httrack to promote itself. An inner folder with the name you gave the job should exist and contain purely the site with no modified data to promote httrack.
  
 =====Publishing Data on QDN===== =====Publishing Data on QDN=====
Line 27: Line 35:
 **Step 1.** - build the website. You can use WordPress, or any other existing website builder to build the site, then CONVERT IT, or you can BUILD A STATIC WEBSITE. Either way will work just fine, however we cannot guarantee that the static conversion of EVERY website will work as expected and have complete functionality. **Step 1.** - build the website. You can use WordPress, or any other existing website builder to build the site, then CONVERT IT, or you can BUILD A STATIC WEBSITE. Either way will work just fine, however we cannot guarantee that the static conversion of EVERY website will work as expected and have complete functionality.
  
-Things like orders, payment processing, etc. will come later with specific plug-ins built for that. We will make everyone aware when those plug-ins are developed.+Things like orders, payment processing, etc. will come later with specific plugins built for that. We will make everyone aware when those plugins are developed.
  
-To convert your site, there are multiple methods. In WordPress there is a plug-in called 'simply static'. This plug-in will allow you to convert a WordPress site to static content and download it as a zip that you can then publish on Qortal.+To convert your site, there are multiple methods. In WordPress there is a plugin called 'simply static'. This plugin will allow you to convert a WordPress site to static content and download it as a zip that you can then publish on Qortal.
  
 Another program called 'httrack' can be used for Windows/Linux. This program allows you to input the address of an existing site, along with a bunch of potential options, and it will then download the data from the site in static format for you. Another program called 'httrack' can be used for Windows/Linux. This program allows you to input the address of an existing site, along with a bunch of potential options, and it will then download the data from the site in static format for you.
Line 43: Line 51:
  
  
-**Step 3** - Publish the website on Qortal in the websites plug-in. Click '**+Publish Website**', select the name you want to publish to, and browse for your converted site archive. Once that is complete, click **Publish**. Then **be patient** while the Qortal core does its magic. Everything from that point on takes place automatically as the files are individually hashed, encrypted, and published on QDN.+**Step 3** - Publish the website on Qortal in the websites plugin. Click '**+Publish Website**', select the name you want to publish to, and browse for your converted site archive. Once that is complete, click **Publish**. Then **be patient** while the Qortal core does its magic. Everything from that point on takes place automatically as the files are individually hashed, encrypted, and published on QDN
 + 
 +===== Mapping QDN Websites to a Traditional Domain Name ===== 
 + 
 +It is possible to use a traditional domain name to redirect to a Qortal hosted Website. 
 + 
 +For this you need to point your domain name at one or more of your Qortal nodes using A or CNAME records (one for each node). Then, on the Qortal nodes themselves, you enable the "domain map" feature and specify which registered name each domain name should point to. Here's an example settings.json: 
 +<code>"domainMapEnabled": true, 
 +"domainMapPort": 80, 
 +"domainMap":
 +  { 
 +    "domain": "examplewebsite.com", 
 +    "name": "registeredNameGoesHere" 
 +  } 
 +]</code> 
 +Note: if you are using a port lower than 1000 for the domain map, you may need to grant additional privileges to java in order to bind to that port. In linux, you can run this command after each system boot (make sure to substitute with the actual java path): 
 +<code>sudo setcap CAP_NET_BIND_SERVICE=+eip /path/to/java</code> 
 + 
 +===== Example Of A Gateway Node ===== 
 + 
 +It is also possible to setup your node as a gateway for traditional internet traffic to access your QDN site. Here is an example: https://qortal.link/crowetic 
 + 
 +If this is something you'd like to do, please go to the [[How To Setup A Gateway Node]] page.
how_to_host_your_public_data.1642220484.txt.gz · Last modified: 01/14/2022 23:21 by gfactor