Change localhost in Express - express

I'm new on express and all of this, so please be kind. After some search I didn't found any answer for my doubt.
Now I'm using google cloud functions and I want to use express, but for what I understand (not much) i can see what I do just with localhost, there is a way for change the localhost to an specific url (the google function url). From localhost/users to myurl/users. Thanks for the help

Related

How make a headless cms works on network?

I made a Strapi app, and is fine and works.
But I don't want the server living in my localhost.
What I have to do?
I want like a traditional api on the internet
I try to search info but I am lost
there are a range of options, some of the most popular are Digital Ocean and Heroku:
https://strapi.io/blog/how-i-hosted-my-strapi-cms-driven-website-for-free
https://strapi.io/try-digitalocean
https://medium.com/#leodeo/deploying-strapi-version-4-on-linode-or-any-cloud-host-using-pm2-via-github-and-accessing-it-from-da87b52b7202
Hope this helps.

im working on leadtools and trying to configure it to work on https

i'm using lead tools web scanner and trying to enable it to work on HTTPS.
Blockquote
can i get some help here
It appears you tried to quote something in your question but it did not show correctly.
In any case, if you’re using the current version 20 of LEADTOOLS, see this forum post with detailed information on How to Enable HTTPS in the LEADTOOLS Web Scanning Host.
If you’re using the previous version 19, there’s an older article that discusses that version here.
If neither of these pages helped you, send full details about what you tried and what problems you ran into to the support address support#leadtools.com. Our email support is free regardless of which version of LEADTOOLS you’re using.

How to address Firebase from an Arduino?

Background: I've a sensor hooked up to an arduino printing readings through the serial monitor. I want to log these in firebase.
I've done a bit of digging on this, and my research has shown me that an arduino simply can't handle the SSL needed to talk to firebase properly.
Any suggestions for workarounds? Checking SO and google's only turned up "it can't be done", but I figured I'd ask anyway. Any lateral thinking is appreciated, thanks!
If you figure out a way, let us (support#firebase.com) know. That would be an awesome hack!
Some thoughts:
You might want to look into the Spark Core (available for pre-order). They mention SSL support, though it's unclear to me what that means exactly.
You could proxy the requests through a server that can speak SSL. For instance, you could run a tiny node.js service on an Amazon EC2 box that just proxies REST requests to Firebase (e.g. using http-proxy).
If you're hardcore, you could try to get the Arduino talking to an external ethernet controller that has built-in SSL support (e.g. this one), but that's probably a big project. :-)
Longer-term, we might expose a non-SSL endpoint for Firebase requests that's specifically for this sort of low-end hardware use-case. Ping us at support#firebase.com if you want to start a dialog.
Here's a php script I whipped together to solve for Arduino no https.
It's basically a form that GETs to the php script and then sends it off to your Firebase database.
http->php->Firebase
https://github.com/robertcedwards/httpFirebase
*Make sure you add Heroku or your server to the whitelist of IPs that can post to Firebase
I know its an old question but visitors from google keep coming.
Have a look at this post: http://www.devacron.com/arduino-firebase/
[EDITED]
These arduino libraries might help:
firebase-arduino
https://github.com/googlesamples/firebase-arduino
https://github.com/ed7coyne/firebase-arduino
To install it:
Download the zip file, go to Sketch>Manage Libraries>add .zip file
Now you have access to
#include <FirebaseArduino.h>
and can begin using it with
Firebase.begin("example.firebaseio.com", "token_or_secret");
Follow the example at https://github.com/ed7coyne/firebase-arduino/blob/master/examples/FirebaseDemo_ESP8266/FirebaseDemo_ESP8266.ino

Apache Case insentive URLs

Apache is not allowing me to access a link with a wrong case. This URL case sensitivity really sucks me. Can anyone help me out how to configure my apache so that however I call my URL it has to work.
I am running my site on a shared linux server and not provided with SSH. I tried all the solutions in google but nothing worked for me. Anybody please help me. Please do not tell me to get into so and so option (as there are limited services provided in my cPanel, find them in the below screenshot).

How to specify server name when xmlhttprequesting from a remote server?

See this question first, and the top answer. That being said, I need to issue an XMLHttpRequest to a remote server from a mobile app. Can someone show an example? I can't figure out where to specify the URL (with parameters) as shown in the answer to the previous question.
XMLHttpRequests takes a URL as a parameter. It can be a relative URL, but it can also be a fully qualified URL...except that it probably won't do what you want, due to cross-site scripting protections built into most browsers.
This question has details on solutions to this issue.