Nice. I use Digital Ocean (via Cloudways) for hosting, Namecheap for Domains and Cloudflare for CDN, too. So this video was perfect for me!
@MisouSup3 жыл бұрын
The redirect record saved me. It was using http and not https, and it was annoying me for months! Thanksssss
@riefkramer95112 жыл бұрын
Hey ben, nice video. I only watched about 30 seconds of it then figured it out myself. Thanks anyways
@lmfao72245 жыл бұрын
I know this question is completely un-related to the video but it's been recking my head. So I had JWT auth set up, with refresh tokens using the counter method in one of your videos to invalid the tokens. I was setting up my react app and I realised o shit where do I store the token. So my options were: - Local Storage (Vulnerable to XSS, not CSRF) - In a cookie (practically the same as using sessions, vulnerable to CSRF) - Just use sessions So I was wondering what method you used in your recipe book app or what way you would go about? Been recking my head completely
@bawad5 жыл бұрын
I would go with cookies, that's what I see most sites using including mine
@manosriram4 жыл бұрын
@@bawad http-cookies!
@priceless53865 жыл бұрын
just curious, why would you host your frontend on Netlify and backend on digital ocean, vs just hosting everything on digital ocean?
@bawad5 жыл бұрын
To take off the load from the digital ocean server
@hakanaki2 жыл бұрын
What extra steps do you have to do on netlify?
@niouzteam75294 жыл бұрын
Can I point multiple subdomains to a IP address with different ports numbers?
@kotel945 жыл бұрын
Hi Ben, cool video as always. I have a quick question you might be able to help with. When subscribing to web push notifications, I need to send PushSubscription object from frontend to backend. I could create a schema that 'copies' the structure of this object using basic GraphQL types like String or Int. Unfortunately, one of the variables is ArrayBuffer type. Do you have an idea how could I send this type to backend? Thank you!
@bawad5 жыл бұрын
can you convert that buffer to an int array possibly?
@DanielAbdelsamed5 жыл бұрын
You can convert it to base64 to make it serialize to a string. stackoverflow.com/questions/9267899/arraybuffer-to-base64-encoded-string
@roficakep5 жыл бұрын
Ben, can you show how to create subdomain using nginx ubuntu in digitalocean, I tried and I have problem, always redirect to mercusuar
@bawad5 жыл бұрын
I use dokku for that
@m100044 жыл бұрын
sir I need help , I have web app that create subdomains for each user and some users already have domain name and they want to link their domain with subdoman that they got from my web app , any Idea please 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
@bawad4 жыл бұрын
they can create a CNAME record and point to their custom domain to your subdomain
@ariell1215 жыл бұрын
Ben, have you tried namesilo ?
@bawad5 жыл бұрын
No
@leawilliams39164 жыл бұрын
this was insanely complicated and irrelevant to adding a subdomain. Use sites most of us would actually use!
@monero.jeanniton4 жыл бұрын
Can I point multiple subdomains to a IP address with different ports numbers?