Well spotted @hammad
@inshaal let us know if this fixes the problem for you.
Also we’d love to know what you’re building with Frontity. Do you have a link to your site?
Well spotted @hammad
@inshaal let us know if this fixes the problem for you.
Also we’d love to know what you’re building with Frontity. Do you have a link to your site?
@pingram3541, amazing tutorial, but I have a small doubt at step 6: I should get the Node snippet PLUS an SSH generated key and paste it into the subdomain (headless, in your case). How should I paste it there? Is it a txt file? Should I upload the generated key file there? Sorry if I am asking a redundant question, but I have never done that before. Thanks!
Hi Cassiano,
It’s been a while since I have done this so things could have changed but no just copy the command provided (step 5) and then SSH into your hosting environment using your preferred SSH client then paste and execute that command from the command line.
The SSH generated key is for your SSH client to connect you to your server’s terminal giving you access to the command line interface where you will paste the copied snippet (command) and once executed, it will place you into the /headless folder (if you used same naming as my example).
Hi the follwing code will help to deploy frontity website over SSL (https://your-site.com:4000)
const frontity = require("./build/server").default;
const https = require('https');
const fs = require('fs');
const options = {
key: fs.readFileSync('your_ssl.key'),
cert: fs.readFileSync('your_ssl.cert')
};
const server = https.createServer(options, frontity);
server.listen(4000);
the *.key & *.cret file on the same direcory of app.js file
i hope this will help
thanks