Custom Domain Features for MERN Stack APP deployed on AWS Amplify - dns

We are using AWS Amplify for the React SPA hosting & Route 53 for the domain management.
Our App is a kind of SaaS. We want to implement custom domain features for our customers so that they can map their subdomain to our domain.
like our domain is https://our.domain.com and customer domain is https://customer.domain.com
When user enter https://customer.domain.com they should be able to see content of https://our.domain.com(It should not redirect.)
Since I am a beginner in DNS therefore I don't know much about DNS.
I was trying if there is a way available in AWS Amplify & Route 53 to solve this but was not get success.
PS: We have configured our custom domain with react app using route-53 in AWS Amplify.

Related

How to allow Vercel project to accept domains with the correct CNAME and A records

This question is a bit vague because I am completely new to this topic.
I have a website builder app that hosts a user's site to a subdomain of my site.
for example, if your name is Jakob you can create a site and publish it to jakob.website.com
When a custom URL uses A record and CNAME record of cname.website.com, the custom URL does not actually route to my project. Is that a permissions error? How can I get my Vercel project to accept these domains?
techstack:
Front end
Next.js + Vercel
Back end
Node.js + Digital Ocean

Can we implement frontend and backend separately on AWS Elastic beanstalk?

I have frontend and backend both are using nodejs. Frontend is exposed and every request for api goes through the proxy module in the frontend, and both frontend and backend communicate on different modes.
Is there a way to deploy the above module, using code pipeline onto the Elastic Beanstalk platform ?
Why not deploy the front end on Amplify AWS?
AWS Amplify is a set of tools and services that can be used together or on their own, to help front-end web and mobile developers build scalable full stack applications, powered by AWS.
You just need to link your Repo and select your branch and everything will be deployed and generate also a random free domain or you can set your domain from the domain management section

Map Google Cloud Functions with Custom DNS

I have Cloud Functions.. which i want to map with .custom DNS.
I have my DNS setup, but after doing that it is not resolving to my Cloudfunctions.
It is Reaching to google server though. not sure if i need to do any configuration within my google project to make it work
Thanks in advance!
If you want to attach a custom domain to Cloud Functions, the only supported way to do that is through Firebase Hosting. You can configure Firebase Hosting to proxy requests to Cloud Functions, and you can also connect a custom domain to Firebase Hosting. Between those two configurations, you can effectively use a custom domain to serve Cloud Functions endpoints.

AWS - having subdomains point to different applications - backend / react app / static landing page

I'm currently developing a full-stack web application + mobile app. I've pushed my API backend (node.js express) to an AWS EC2 instance.
Now I'm looking to create the frontend with React. As well as a landing page which I think will be just plain HTML (or even WordPress if possible?) to get it running asap.
Questions are:
should I upload all 3 to the same instance? if so how?
can I point my domain in a way where mydomain.com - serves the landing page, api.mydomain.com serves the backend for requests, and app.mydomain.com serves the react app.
This solution is entirely upto you here, if this is a personal project or one with a tight budget then yes you can put all applications onto the same server.
If you have a HTML only application then you could deploy that specific application to Amazon S3 with a CloudFront distribution in front to provide CDN functionality.
If you do run the applications on your server then you will need to ensure that the web server can resolve each set application individually through hostname for example Nginx uses server_name to define the web domain name for that vhost.
I would suggest if you're running all on the same box run each node application on a seperate port, then use Nginx as a proxy based on the domain name. More information on how to set this up is available here.
Finally add DNS records to target the host IP (or CNAME if you use CloudFront).

Openshift 3 FREE- custom domain

I am trying to migrate my app from Openshift 2 FREE to Openshift 3 FREE. I've managed to do everything, but the custom domain. In OpenShift it was very easy - add an alias to the app + modify some CNAME records in your domain. Now I do not find it easy.
Could anyone elaborate?
OpenShift Online Starter does not support you being able to use a custom domain. Only OpenShift Online Pro support customs domains at this point in time.
The only way to have a custom domain with OpenShift Online Starter, is to use Cloudflare or other service which can act as a proxy in front and which accepts requests for your custom domain name and forwards on requests onto OpenShift at the generated hostname given you.

Resources