I'm trying to use Google ReCaptcha V2 in my django application. It works when testing locally fine.
I'm now working on deploying/hosting and using my django application on an AWS EC2 instance and now I get the following error in the Captcha box.
ERROR for site owner:
Invalid domain for site key
I've added the EC2's public DNS (ec2-x-x-x-x.compute-1.amazonaws.com) to the list of domains in the Google Admin console but that hasn't resolved the issue. I've also added the eIP in the form of x.x.x.x. Is that the proper way to add an EC2 "domain" to Google's Recaptcha?
The public DNS works fine for me. It seems like it has some delays for the reCAPTCHA changes to be reflect on the web server.
Related
I'm new to AWS and having a hard time navigating what seems like a basic task. I have a docker-generated AWS configuration for a django app, and want to point my domain to this app.
Specifically I'm using docker compose and have successfully launched a demo app (Django+PostgreSQL if relevant) that's accessible through the docker-generated hostname (<semi-random>.<region>.elb.amazonaws.com), and properly displays to the Django site. However I've noticed that each time I down/up the docker instance, the load balancer hostname seems to be a new randomly generated name (specifically <semi-random> part above). I also have a domain name & nameservers registered in Route 53, but the domain doesn't point anywhere yet.
How can I configure my domain to point to the latest version of my docker-generated web service?
I have hosted my website on EC2 (both front and backend) instance and using SSL provided by Amazon Certificate Manager. I was able to access the route which put a "get" query on the EC2 backend before installing this certificate. However now I am not able to open this route, And the problem it is showing is that - Website is somehow not able to fetch data from the backend.
Also, this works completely fine when I open my website using the IP address of EC2.
I think I must do some changes in the certificate so that it could fetch the data from the backend. Please let me know what should be done.
I have been using React and NodeJS
I have created django website on Google cloud and its running on sql instance (https://school-website-272007.el.r.appspot.com).
I already have a google domain, and i want to link this to it.
I followed as below:
Created a VM instance on GCP and linked the external ip to my running sql instance.
Created Zone and 'A' / 'CNAME' in the Cloud DNS section.
Added the new DNS settings to Google domain - DNS settings under custom.
(used https://cloud.google.com/dns/docs/quickstart and other youtube links to perform)
But still my google domain is not able to link to the website (https://school-website-272007.el.r.appspot.com)
Can anyone help?
I recommend to use App Engine Custom Domains. With custom domains you can add the domain you may want to redirect to your App Engine app instead of using the appspot link.
While configuring the custom domain, it will tell you which DNS records you have to add to your DNS.
I'm having trouble getting the custom domain I bought from GoDaddy to work with the Django app I have hosted on Heroku's free dyno. The Heroku app is accessible from the custom domain, however, I keep getting a privacy error from chrome. See below:
My Heroku dashboard confirms that I have added my custom domain. I have tried doing this through both the CLI and GUI, with no different results.
My DNS settings on my domain in GoDaddy are configured as follows. Someone had mentioned the CNAME setting should be the .herokudns domain generated by the addition of the custom domain in the Heroku dashboard, but when I make that change the website is not accessible at all. The Heroku app is named:
desolate-basin-60228 and can be accessible at https://desolate-basin-60228.herokuapp.com/
and in GoDaddy I have confirmed that my forwarding is set to http (not https as I don't need a security cert. for this site):
I also thought that it may be an issue with my Django settings.py file. So I adjusted any line with mention of https. This did not have any effect.
Does anyone have any thoughts on what I'm missing here?
Based on this Heroku help center resource, if your site needs SSL support, then it's not possible to set up a GoDaddy domain with Heroku. That could explain why you're having trouble.
However, there may be a few workarounds:
https://domainpromo.com/1831/godaddy-heroku-setup
https://medium.com/#successengineer/how-to-setup-heroku-with-godaddy-d8e936d10849
I am using AWS Toolkit to deploy the wcf service on amazon elastic beanstalk, after deployment it shows environment is healthy but when i browse the URL then it redirected to the IIS Server Page, i am unable to access the service url , please let me know how to access the hosted service
Thanks in advance
Follow the standard procedure to deploy a ASP.net project. Here is the link for that : Link
But for you WCF service you need a simple html page at project root. E.g. index.html or default.html. Load balancer need this page to check if the instance is available or not. Without this html page load balancer will consider the instance dead and remove it.