{"id":389015,"date":"2024-06-29T08:19:20","date_gmt":"2024-06-29T08:19:20","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=389015"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-06-29T08:19:20","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=389015","title":{"rendered":"<span>How to Set Up a Custom Domain and Get a Free SSL Certificate on Firebase<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f31\/3ef\/73e\/f313ef73ef595482ba554482287a49f6.png\" width=\"720\" height=\"480\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f31\/3ef\/73e\/f313ef73ef595482ba554482287a49f6.png\"\/><\/figure>\n<p>In my previous article, I showed you\u00a0<a href=\"https:\/\/proflead.dev\/posts\/how-to-deploy-a-website-on-firebase-and-use-it-for-free\/\" rel=\"noopener noreferrer nofollow\"><u>how to deploy your project to Firebase<\/u><\/a>\u00a0and use it for free. Now, let\u2019s explore additional benefits of Firebase. In the upcoming article, I will show you how to set up a custom domain name for your project and utilize a free SSL certificate from Firebase.<\/p>\n<p>I assume you have already read my previous article. If not, it\u2019s better to start from there. Before you can set up a custom domain name for your Firebase project, you need to purchase a domain name. There are many places where you can buy a custom domain name, such as:<\/p>\n<ul>\n<li>\n<p>Godaddy.com<\/p>\n<\/li>\n<li>\n<p>101domains<\/p>\n<\/li>\n<li>\n<p>Etc.<\/p>\n<\/li>\n<\/ul>\n<p>It doesn\u2019t matter which company you choose, as all of them will work with Firebase.<\/p>\n<h2>How to Set Up a Custom Domain for Firebase Hosting<\/h2>\n<p>First, you need to log in to your Firebase account and go to the console at\u00a0<a href=\"https:\/\/console.firebase.google.com\/\" rel=\"noopener noreferrer nofollow\"><u>https:\/\/console.firebase.google.com\/<\/u><\/a>.<\/p>\n<p>Then, select the project that you have created earlier or create a new one.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d2b\/f8d\/7e9\/d2bf8d7e9f4de87a78437808a9d23514.png\" width=\"700\" height=\"552\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d2b\/f8d\/7e9\/d2bf8d7e9f4de87a78437808a9d23514.png\"\/><\/figure>\n<p>In the left navigation bar, choose \u2018Build\u2019 and then select \u2018Hosting\u2019 from the dropdown menu.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a77\/cc0\/63a\/a77cc063a7cc9df3987901bf7936161d.png\" width=\"700\" height=\"517\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a77\/cc0\/63a\/a77cc063a7cc9df3987901bf7936161d.png\"\/><\/figure>\n<p>In the new window, click on the \u2018<strong>Add custom domain<\/strong>\u2019 button.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1d8\/7d6\/71c\/1d87d671cbf4ed2a0d278371fe17ea7d.png\" width=\"700\" height=\"244\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1d8\/7d6\/71c\/1d87d671cbf4ed2a0d278371fe17ea7d.png\"\/><\/figure>\n<p>In the modal window, enter the name of your custom domain and click \u2018Continue\u2019.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0e5\/f6a\/31b\/0e5f6a31b940fe3dadcd66b82e74c957.png\" width=\"700\" height=\"477\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0e5\/f6a\/31b\/0e5f6a31b940fe3dadcd66b82e74c957.png\"\/><\/figure>\n<p>In the next step, you will receive a TXT record that you need to add in the control panel of your custom domain provider (DNS provider). <\/p>\n<p>Once you have added the record, click \u2018Verify\u2019.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e92\/861\/7d6\/e928617d6a18887e08e2dcec36e4252a.png\" width=\"700\" height=\"391\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e92\/861\/7d6\/e928617d6a18887e08e2dcec36e4252a.png\"\/><\/figure>\n<p>Please note that it may take up to 24 hours for your domain to be fully resolved.<\/p>\n<h2>How to Get a Free SSL Certificate for a Custom Domain on Firebase Hosting<\/h2>\n<p>To get a free SSL certificate from Firebase, you don\u2019t have to do anything. Yes, that\u2019s correct! You don\u2019t have to do anything else!<\/p>\n<p>Once you add your custom domain, Firebase automatically adds an SSL certificate to it. It\u2019s a basic certificate but sufficient for a simple project.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/09b\/87d\/c2a\/09b87dc2a0da545b37dbebe1f5e5da1a.png\" width=\"527\" height=\"543\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/09b\/87d\/c2a\/09b87dc2a0da545b37dbebe1f5e5da1a.png\"\/><\/figure>\n<p>Keep in mind that it could take up to 24 hours to issue the certificate.<\/p>\n<h2>Conclusion<\/h2>\n<p>As you can see, Firebase is not only a simple and fast solution for your project but also comes with free perks that can be very useful for startups or small projects.<\/p>\n<p>If you liked my article, please share it with your friends. It motivates me to write more useful stuff.<\/p>\n<p>Thanks! And see you in the next article soon. \ud83d\ude09<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/741476\/\"> https:\/\/habr.com\/ru\/articles\/741476\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><\/figure>\n<p>In my previous article, I showed you\u00a0<a href=\"https:\/\/proflead.dev\/posts\/how-to-deploy-a-website-on-firebase-and-use-it-for-free\/\" rel=\"noopener noreferrer nofollow\"><u>how to deploy your project to Firebase<\/u><\/a>\u00a0and use it for free. Now, let\u2019s explore additional benefits of Firebase. In the upcoming article, I will show you how to set up a custom domain name for your project and utilize a free SSL certificate from Firebase.<\/p>\n<p>I assume you have already read my previous article. If not, it\u2019s better to start from there. Before you can set up a custom domain name for your Firebase project, you need to purchase a domain name. There are many places where you can buy a custom domain name, such as:<\/p>\n<ul>\n<li>\n<p>Godaddy.com<\/p>\n<\/li>\n<li>\n<p>101domains<\/p>\n<\/li>\n<li>\n<p>Etc.<\/p>\n<\/li>\n<\/ul>\n<p>It doesn\u2019t matter which company you choose, as all of them will work with Firebase.<\/p>\n<h2>How to Set Up a Custom Domain for Firebase Hosting<\/h2>\n<p>First, you need to log in to your Firebase account and go to the console at\u00a0<a href=\"https:\/\/console.firebase.google.com\/\" rel=\"noopener noreferrer nofollow\"><u>https:\/\/console.firebase.google.com\/<\/u><\/a>.<\/p>\n<p>Then, select the project that you have created earlier or create a new one.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>In the left navigation bar, choose \u2018Build\u2019 and then select \u2018Hosting\u2019 from the dropdown menu.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>In the new window, click on the \u2018<strong>Add custom domain<\/strong>\u2019 button.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>In the modal window, enter the name of your custom domain and click \u2018Continue\u2019.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>In the next step, you will receive a TXT record that you need to add in the control panel of your custom domain provider (DNS provider). <\/p>\n<p>Once you have added the record, click \u2018Verify\u2019.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>Please note that it may take up to 24 hours for your domain to be fully resolved.<\/p>\n<h2>How to Get a Free SSL Certificate for a Custom Domain on Firebase Hosting<\/h2>\n<p>To get a free SSL certificate from Firebase, you don\u2019t have to do anything. Yes, that\u2019s correct! You don\u2019t have to do anything else!<\/p>\n<p>Once you add your custom domain, Firebase automatically adds an SSL certificate to it. It\u2019s a basic certificate but sufficient for a simple project.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>Keep in mind that it could take up to 24 hours to issue the certificate.<\/p>\n<h2>Conclusion<\/h2>\n<p>As you can see, Firebase is not only a simple and fast solution for your project but also comes with free perks that can be very useful for startups or small projects.<\/p>\n<p>If you liked my article, please share it with your friends. It motivates me to write more useful stuff.<\/p>\n<p>Thanks! And see you in the next article soon. \ud83d\ude09<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/741476\/\"> https:\/\/habr.com\/ru\/articles\/741476\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-389015","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/389015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=389015"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/389015\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=389015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=389015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=389015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}