Google Cloud Storage - Restrict access to files to a specific domain - wordpress

I am using Google Cloud Storage for my WordPress website and I would like to know if there is a way to restrict access to my files so that only my domain will be able to access them. I tried Google Search but I couldn't find anything. Could you please tell me if I can do that and how?

From your question it is not clear for which purpose you wish to use Cloud Storage for your website.
You can look at this article with respect to Cloud Storage access control. I would recommend looking at IAM since I believe your want to allow domain access to all the files in Cloud Storage.
In general, if you want to host your WordPress website on Google Cloud, several options are available:
WordPress Single Instance using Cloud Launcher
WordPress on Kubernetes Engine
WordPress on App Engine
If you want to integrate WordPress with Google Cloud products, like Cloud Storage, there are plugins available from the Google Cloud Platform GitHub repository.

Related

Can I host wordpress on Google site?

I made a wordpress for client and I want to shifted it to their hosting. He told me that his existing website is on google site as he has a paid Gsuite and if it possible to host thw wordpress website there.
Is that possible? I found some information that I can host it through google cloud but I am not sure if this is right.
No, it is impossible to host Wordpress on Google Sites.
Google Cloud is a completely different service and yes, you can fire up a cloud instance and host anything you want, including Wordpress, but GSuite services do not include this and it will cost additional money for your client.

How webmails work with Google cloud hosting? Also how can I setup newsletter solution with MailWizz WordPress plugin in GCH?

I have been building a WordPress website and I am using Google Cloud Hosting as my hosting solution. I am very new in using the Google cloud hosting and I found it's not easy to understand things as I'm even not anyone with IT skill but previously worked with Cpanel hosting several times.
I am trying to establish similarities between GCloud and CPanel hosting but still failing. Researching a lot and I have a way to setup GCloud in CPanel but not sure if it will work and I am not doing that.
However, I want to create and access webmails (eg. yourname#domainname.com) for my personal and business uses. I am aware that I can create them with Zoho or any other mail servers with some costs but I am looking for a single tap solution keeping everything in one place. Hence, I am preferring Google cloud itself.
I am going to use MailWizz for Newsletters which will be also hosted in my own storage/server. It's just that MailChimp gives us email server but we need our own for email list/templates and data. But how can do all these? Can I create and access all these in Google cloud hosting?
If there is anyone to give me a solution regarding all these considering the preferences (I am not likely to use any other email hosting) this will be awesome and help me to make a decision for my upcoming websites. Thanks in advance.
R. K. Mahin
GCP by default does not allow outbound connections for the port 25. 1
However there other approaches to achieve this too:
You got SendGrid, MailGun and Google Apps. They provide solutions which doesn't require SMTP access from a GCE instance.
There is also an alpha feature you can try to request called Cloud Mail. You can request to get your project whitelisted through Google Cloud Support.
If you can configure MailWizz to use other port than 25, you wont get into any trouble. You can create your own instance groups with a MailWizz server and a Load Balancer. GCP even got a Marketplace where you can find a lot of solutions to work with Wordpress and automatically create your own environment.

How do we host AMP pages over Firebase hosting? | #AskFirebase

Is it possible to create website using AMP pages that can be hosted over Firebase hosting..?
If yes, is that possible to create dynamic AMP pages that can add & fetch data to/from Firebase Firestore..?
If yes, please explain how is that possible..?
AskFirebase
Thanks!
Yes, it is possible. You can generate AMP compatible templates that are served over firebase hosting, or via an https triggered firebase function.
Firebase functions hosting documentation: https://firebase.google.com/docs/hosting/functions
Your firebase function can dynamically fetch and serve data from Firestore / Realtime database. You can also implement caching so that static html is served from a CDN.
Creating an AMP page from scratch:
https://www.ampproject.org/docs/tutorials/create/basic_markup
Just follow the AMP guide to ensure your code structure and syntax is correct.
Obviously this answer is very simple compared to implementation, but hopefully that gives you some direction and an idea of what is possible.
Server Side Rendering Tutorial
Google has a video series on server-side rendering with Firebase, I highly recommend it: https://www.youtube.com/watch?v=nbTn1czE2L8&list=PLl-K7zZEsYLkbvTj8AUUCfBO7DoEHJ-ME

Migrating Data to Google Cloud

I recently bought Google Cloud services and want to migrate my wordpress website from my current hosting service (which uses CPanel) to Google Cloud. I already have a project and instance created on Google Cloud but I can't seem to understand how to connect it with FTP or through webUI so that I can upload my already existing web files.
Well you can use a plugin for migrating your WordPress website. For example: https://wordpress.org/plugins/duplicator/

Wordpress on new Firebase hosting

I've found out about new Google Firebase Hosting recently and I was wondering if that would work for Wordpress website?
I got a bit confused them talking about static websites & web apps even though as far as I know Wordpress is dynamic...right? on their website it says:
https://firebase.google.com/docs/hosting/#key_functions
Whether you are deploying a simple app landing page or a complex Progressive Web App, Hosting gives you the infrastructure, features, and tooling tailored to deploying and managing static websites.
It looks like a nice Hosting platform for web, especially that they provide SSL certificates, but is it good for Wordpress?
Thanks!
I THINK it would be possible, you still need your SQL+PHP server and you should use it as WordPress backend, you need the WordPress REST API and a plugin with hooks in transition_post_status, comments... and whatever you want to show in your front end, use WordPress API endpoints to send the JSON to the firebase database... after your template should use a Javascript framework in order to make JSON requests to the firebase database and show the data in the browser... It would be difficult but I think it could be the cheaper and best solution ever for a high traffic website (plus all the benefits of firebase).
Nope. Firebase doesn't provide any of the requirements necessary for Wordpress, that being MySQL and PHP on the server side. Firebase provides a JSON store accessible via an API, and static hosting for apps that can access said API.

Resources