I am trying to integrate different cloud platforms(aws, gcp…) on my frontend website.
gcp vm has no public ip, only internal ip.
Is there any way that ssh to gcp vm from my html website?
The official doc only has command line tutorial, but it's not what I want.
https://cloud.google.com/compute/docs/instances/connecting-advanced
What kind of gcp api does my backend server need to call, so that allow frontend ssh to gcp VM?
For this requirement, does the gcp api provide similar functionality?
Related
I have a api (node.js) running on https://localhost:3002 which is using a self signed cert I generated using this
https://trendoceans.com/how-to-create-https-server-in-node-js/
And I have a web app running from vite tooling. Also in https. When I make a all from the web app to the api, I get
GET https://localhost:3002/create net::ERR_CERT_AUTHORITY_INVALID
How can I get this to work?
I'm trying to install a node.js server for a sentiment analysis service with my Twitter account that retrieve the tweets on my profile and provides a statistical output and saves them on a Mongo db istance.
I have uploaded my node.js code on an AWS virtual machine with an public IP address and with the permission to create an endpoint with HTTP and HTTPS protocols.
I have installed successfully the node.js code on AWS virtual machine with Windows Server 2019 OS, with the npm install -g -n command with 0 dependencies errors, and when I try to connect to the AWS virtual machine with http://ip_public_address:8080 I get the error "impossible to connect - err-connection_timeout".
This is the link to the github project that I need to install and to work on AWS virtual machine:
https://github.com/thisandagain/sentiment
Maybe I am confused about how to connect with the index.html page via AWS virtual machine and I don't know if this page must be retrieved with a IP public address or localhost parameter and what is required, at node.js level code, in order to enable the AWS virtual machine to respond to my browser with the content of index.html page.
Please can you give me advices about to implement successfully this project?
Thanks
Filippo
You don't mention security groups in your question at all, so the likely cause is that you never opened port 8080 in the security group assigned to the EC2 instance. You may also need to open that port in the Windows firewall on that server.
I've created my own webserver using Node.js ans is using it with my DNS from webhost routed to my raspberry pi at home.
How do I prepare the webserver and all the files for getting an SSL certificate using Let'sencrypt?
I've not made any work prior to getting the SSL other than creating the server to run on localhost. Now it's running on a public ip while using my purchased DNS.
I haven't been able to find any litterature other than the off the shelf webservers like apache and such and I really want to run with my own.
I am new to web development and have never deployed an app before.
I have bought a domain, ssl, and shared hosting through go daddy and am trying to deploy a simple Sapper app.
I have been able to deploy a basic node.js app by following this thread I have Godaddy Shared Web Hosting I need to host node.js website can host site?
I have uploaded my app folder into the user/public_html folder and can successfully build the app by running:
node sapper/build
The terminal replies with "Starting server on port 3000" which doesn't change anything.
My guess is I need to modify my server.js but I am really out of my depth (it's using polka btw).
If someone could please help me deploy the app correctly and how to integrate the ssl certificates it would be much appreciated.
Thanks :)
I currently use host winds to host a html/css/js files. I need to use Node for a new project aspect, and host winds says id have to use a virtual private server. so I figured ill use Heroku, since I have experience deploying to that environment already.
the heroku application has to execute a stripe operation:
(dummy data)
const stripe = require('stripe')('sk_test_NOFBwvYmIyZln2c64bv84A');
stripe.oauth.token({
grant_type: 'authorization_code',
code: 'ac_123456789',
}).then(function(response) {
// asynchronously called
var connected_account_id = response.stripe_user_id;
});
followed by a firebase firestore write operation
How can I connect to the heroku environment from a file hosted on Hostwinds? Is it as simple as creating an express server in the node.js heroku deployment, and calling a fetch POST/GET to an express endpoint from the web page thats hosted by host winds
Is it as simple as creating an express server in the node.js heroku deployment, and calling a fetch POST/GET to an express endpoint from the web page thats hosted by host winds
Exactly, call one of the routes in your app on heroku servers and then run your function from there.