1. Prepare links/Subdomain for API (protocol)
Prepare 2 subdomains for API (protocols).
media: for reading files (link files, download files).
protocol: for writing files (upload files).
You can log in to a domain provider such as Godaddy to create it.
2. Setup CDN Storage at Window server
Step 1: Prepare a server for storing
You should prepare a server at Codero, Alibaba, Hostwinds, or whatever the server with a drive.
You can use RDC to log in to the server.
Step 2: Create a folder/directory
You can create a folder with any name and location.
For example, C:\Folder1
In this example, we use as D:\_CDNStorage
Step 3: Create a virtual directory
Open IIS in the server, and create a virtual directory.
You can put whatever you want in an alias, for example, "Media,"; and point the virtual directory to the real folder you created above:
Step 4: bind a domain or subdomain to this folder.
You can use HTTP or HTTPS. It depends on your demand. Normally it should be HTTPS.
Please login to cPanel of domain providers such as Godaddy, point subdomains such as media.jexpaframework.com, or what subdomain you want to use for CDN Storage.
The example shows media.cdnstorage.space as protocol subdomain.
Step 3: Host and deploy a protocol site
Please read how to deploy a protocol site for JFW.
The protocol site will be https://protocol.jexpaframework.com
3. Using JFW CDN Storage
Step 1: Log in to JFW console (admin tool)
Step 2: Find the menu about CDN Storage such as Media Data
Enter 3 parameters:
- virtual directory to get (retrieve) the file (media or text plain files).
- protocol to submit the files to that the CDN Storage
- (Optional) If JFW does not define the folder (directory) (or JFW let you define subfolder you want from your site), you can enter the folder you want: