DNS forwarded vs direct A - nginx

I have a MEAN app in Google Cloud Platform that works correct. When I registered the url in GoDaddy, i entered the public IP on the A record (I couldnt include the 8080 port that works for my app) and website loads correctly on the URL and its showing data from database. Everything seemed to be alright.
But after some use, I found out not all data from database was showing complete. I checked the MEAN app and everything seemed to be correct. For example, I had a list of 10 products in database but only 7 were showing on the web. It seemed to be a problem in the app but it was a big surprise finding out that the complete list of 10 products is showing correctly if I change the DNS to forwarded with mask in GoDaddy control panel.
Does this make any sense for you? Have you experienced such a thing? Im not sure how to solve it coz I dont think I should be using forwarding with mask.
Can you please give me a hint? I dont know much about servers. Maybe its a configuration on the server? Maybe in the DNS?

Related

Cannot login remotely to Database engine via Meraki VPN

I have been facing a issue while connecting database via Meraki VPN when working remotely.
When working from office it does not ask me to login using Azure account. Because we do not have one. However, it keeps asking to login and then when I do so it says your account does not have valid subscriptions while there is no need of that.
I have done all troubleshooting steps mentioned on Microsoft reference doc, turned of firewall Follow the ink to see the image. Added inbound rule and whatnot.
Is there any other way to deal with this problem. Any help would be appreciated
I got the solution for this by working with our IT department. My IP address was not whitelisted by my company. After whitelisting, I could login in SSMS vis VPN.
Tip:- Before trying to troubleshoot by following steps given by Microsoft, make sure your personal device is registered as well with your IT department.

Can NGINX be used to route traffic to a Firebase project?

It's unclear for me and I haven't attempted yet, but would like to know if I can have a NGINX server routing traffic to a Firebase instance. I can't find relevant articles on internet and neither here so, maybe some fo you already tried this.
Background:
Our React app is running on Firebase already. But, we also have a landing page/website which is backed by Webflow.io to allow quicker edits with less developer frustration. They are also running on separate domains.
We already have an instance of NGINX(inside a docker container) as part of our API gateway so, would be good to use the same instance.
Result:
What we are looking to achieve, is to put both React app and landing page on the same domain. Then, use NGINX to route to required instance wether the user is logged-in or not. Anyone attempted something like this? If not this doesn't work, I'm open to general ideas on how to make it better from your experience.
You can totally do this, for example if you're using OAuth you can perform a token introspection from nginx whose result will determine the route to use, take a look at this https://www.nginx.com/blog/validating-oauth-2-0-access-tokens-nginx/
Alternatively you can use something similar to the google IAP that is probabely more easy to secure for production, i know that ory/oauthkeeper is easy to use, open source and hightly customizable.

Connecting my domain to my Firebase hosted app

This is probably a simple question, but I'm in a bit of a rush to try and get the domain linked tonight, or at least as soon as possible. I want to make sure that I've done the correct thing and waiting is indeed all that needs to be done.
On the Firebase website, I went to 'connect my domain' and added the supplied TXT record onto my GoDaddy hosted domain.
I saw some other posts about the 'Host' field needing to be something other than my domain which I'm trying to link, which is what Firebase told me to set it as. Is this something I should change?
Currently I just changed the TXT records and I assume I have to wait for the record to propagate before it will be able to verify my domain, as of now it says I need to check my settings again.
(Posted a solution on behalf of the question author).
After a few hours it still hadn't connected, I changed the domain/host on the host I bought the domain from to '#' instead of what Firebase supplied me and it verified shortly afterwards.

Emails not sending - a good way to fix this?

I work for an advertising agency working with several clients who we are building and managing wordpress websites for. One issue that arises every time with a new install, is the issue with emails not sending/receiving. We usually solve this by installing an SMTP plugin and set it up using the clients Office 365 email account or whatever provider they have.
The problem is that this is a little time consuming, as well as some of our clients either don´t want to give away their account information/they don't know their account information/they change passwords and forms stop working.
We need a stable email solution that we can use on a wide spectrum of client pages, and that we hopefully don´t need to set up every time we make a new webpage. Does anyone have any solutions/suggestions for this?
Any help would be greatly appreciated.
Before I get into the recommendation, WordPress should use your servers default sendmail configuration so it’s possible something is misconfigured here as it should work out of the box.
But if you want something a little more bulletproof I recommend SendGrid.
One of the problems with all your sites using the same mail server is if one is blacklisted for something the others go down. With SendGrid, which is free for 10k send a month I think, you can issue an api key for each site and if one has an issue it you can easily identify it in SendGrid.
I have setup dozens of API Keys and the plug-in. It’s fast and simple and takes about 5 minutes in total. They have great delivery, detailed reports and are cheap even if you need a lot of sends.
You can Signup for an account and use the SendGrid plugin from the Wordpress repository.

Server disables page after several GET requests from SIM908

I set up a free domain on 000webhost.com
I am using this as a web server to receive data from SIM908+arduino setup and store it in the database. Then display it on a web page.
I am sending the data from the SIM908 using HTTP GET requests. Basically I am sending two pieces of information, one is the location (lat and long) and other is a string. Both are sent using GET requests. The problem is very unusual so bear with me. EVERYTHING WORKS FINE, for a while. After several GET requests are sent, for some reason, 000webhost just deactivates my domain. I simply cannot access it. Every time I try to browse to the page it times out. It remains like this for around 7-8 hours after which the domain works fine again. I tried another hosting byethost.com, but GET requests from the SIM908 do not work there at all. Everything is 100% OK. The code, arduino setup everything is fine. My question is why is 000webhost stopping my domain? Really need a good answer or at least some direction, i am completely lost.
**NOTE: Please don't suggest POST method unless you explicitly know how to perform a POST operation using SIM908 AT commands, as far as I know it's not possible.
You are using the free webhost which has limitations. They will block you if your site is getting too much requests. Just read the limitations of free accounts with the server.
Look for a better free service or buy one. There is no issue with sim900 or arduino.
The following hosting service providers might be better than the one you are currently using in terms of limitations
Host Buddy You would get two months free
Free Hostia
Free Hosting .eu

Resources