{"id":2852,"date":"2018-02-09T16:56:07","date_gmt":"2018-02-09T13:56:07","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/how-to-install-gogs-go-git-service-on-ubuntu-1604\/"},"modified":"2018-02-09T16:56:07","modified_gmt":"2018-02-09T13:56:07","slug":"how-to-install-gogs-go-git-service-on-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-install-gogs-go-git-service-on-ubuntu-16-04\/","title":{"rendered":"How to Install Gogs Go Git Service on Ubuntu 16.04"},"content":{"rendered":"<p>Gogs is free and open source Git service written in Go language. Gogs is a painless self-hosted git service that allows you to create and run your own Git server on a minimal hardware server. Gogs web-UI is very similar to GitHub and offers support for MySQL, PostgreSQL, and SQLite database.<\/p>\n<p>In this tutorial, we will show you step-by-step how to install and configure your own Git service using Gogs on Ubuntu 16.04. This tutorial will cover details including, how to install Go on Ubuntu system, install PostgreSQL, and install and configure Nginx web server as a reverse proxy for Go application.<\/p>\n<h2 id=\"prerequisites\">Prerequisites<\/h2>\n<ul>\n<li>Ubuntu 16.04<\/li>\n<li>Root privileges<\/li>\n<\/ul>\n<h2 id=\"what-we-will-do\">What we will do<\/h2>\n<ol>\n<li>Update and Upgrade System<\/li>\n<li>Install and Configure PostgreSQL<\/li>\n<li>Install Go and Git<\/li>\n<li>Install Gogs<\/li>\n<li>Configure Gogs<\/li>\n<li>Running Gogs as a Service<\/li>\n<li>Install and Configure Nginx as a Reverse Proxy<\/li>\n<li>Testing<\/li>\n<\/ol>\n<h2 id=\"step-update-and-upgrade-system\">Step 1 &#8211; Update and Upgrade System<\/h2>\n<p>Before going any further, update all Ubuntu repositories and upgrade all packages.<\/p>\n<p>Run the apt commands below.<\/p>\n<p class=\"command\">sudo apt update<br \/>sudo apt upgrade<\/p>\n<h2 id=\"step-install-and-configure-postgresql\">Step 2 &#8211; Install and Configure PostgreSQL<\/h2>\n<p>Gogs offers support for MySQL, PostgreSQL, SQLite3, MSSQL, and TiDB database systems.<\/p>\n<p>In this guide, we will be using PostgreSQL as a database for our Gogs installations.<\/p>\n<p>Install PostgreSQL using the apt command below.<\/p>\n<p class=\"command\">sudo apt install -y postgresql postgresql-client libpq-dev<\/p>\n<p>After the installation is complete, start the PostgreSQL service and enable it to launch everytime at system boot.<\/p>\n<p class=\"command\">systemctl start postgresql<br \/>systemctl enable postgresql<\/p>\n<p>PostgreSQL database has been installed on an Ubuntu system.<\/p>\n<p>Next, we need to create a new database and user for Gogs.<\/p>\n<p>Login as the &#8216;postgres&#8217; user and run the &#8216;psql&#8217; command to get the PostgreSQL shell.<\/p>\n<p class=\"command\">su &#8211; postgres<br \/>psql<\/p>\n<p>Create a new user named &#8216;git&#8217;, and give the user privileges for &#8216;CREATEDB&#8217;.<\/p>\n<p class=\"command\">CREATE USER git CREATEDB;<br \/>\\password git<\/p>\n<p>Create a database named &#8216;gogs_production&#8217;, and set the &#8216;git&#8217; user as the owner of the database.<\/p>\n<p class=\"command\">CREATE DATABASE gogs_production OWNER git;<\/p>\n<p><a class=\"fancybox\" id=\"img-1\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_gogs_go_git_service_on_ubuntu_1604\/big\/1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/02\/how-to-install-gogs-go-git-service-on-ubuntu-16-04.png\" alt=\"Create the Gogs database\" width=\"500\" height=\"327\" title=\"\"><\/a><\/p>\n<p>New PostgreSQL database &#8216;gogs_production&#8217; and user &#8216;git&#8217; for Gogs installation has been created.<\/p>\n<h2 id=\"step-install-go-and-git\">Step 3 &#8211; Install Go and Git<\/h2>\n<p>Install Git from the repository using the apt command below.<\/p>\n<p class=\"command\">sudo apt install git<\/p>\n<p>Now add new user &#8216;git&#8217; to the system.<\/p>\n<p class=\"command\">sudo adduser &#8211;disabled-login &#8211;gecos &#8216;Gogs&#8217; git<\/p>\n<p>Login as the &#8216;git&#8217; user and create a new &#8216;local&#8217; directory.<\/p>\n<p class=\"command\">su &#8211; git<br \/>mkdir -p \/home\/git\/local<\/p>\n<p>Go to the &#8216;local&#8217; directory and download &#8216;Go&#8217; (the latest version) using the wget command as shown below.<\/p>\n<p class=\"command\">cd ~\/local<br \/>wget https:\/\/dl.google.com\/go\/go1.9.2.linux-amd64.tar.gz<\/p>\n<p><a class=\"fancybox\" id=\"img-2\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_gogs_go_git_service_on_ubuntu_1604\/big\/2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/02\/how-to-install-gogs-go-git-service-on-ubuntu-16-04-1.png\" alt=\"Install Go and Git\" width=\"500\" height=\"177\" title=\"\"><\/a><\/p>\n<p>Extract the go compressed file, then remove it.<\/p>\n<p class=\"command\">tar -xf go1.9.2.linux-amd64.tar.gz<br \/>rm -f go1.9.2.linux-amd64.tar.gz<\/p>\n<p>&#8216;Go&#8217; binary file has been downloaded in the &#8216;~\/local\/go&#8217; directory. Now we need to setup the environment &#8211; we need to define the &#8216;GOROOT&#8217; and &#8216;GOPATH directories so we can run a &#8216;go&#8217; command on the system under &#8216;git&#8217; user.<\/p>\n<p>Run all of the following commands.<\/p>\n<p class=\"command\">cd ~\/<br \/>echo &#8216;export GOROOT=$HOME\/local\/go&#8217; &gt;&gt; $HOME\/.bashrc<br \/>echo &#8216;export GOPATH=$HOME\/go&#8217; &gt;&gt; $HOME\/.bashrc<br \/>echo &#8216;export PATH=$PATH:$GOROOT\/bin:$GOPATH\/bin&#8217; &gt;&gt; $HOME\/.bashrc<\/p>\n<p>And reload Bash by running the &#8216;source ~\/.bashrc&#8217; command as shown below.<\/p>\n<p class=\"command\">source ~\/.bashrc<\/p>\n<p>Make sure you&#8217;re using Bash as your default shell.<\/p>\n<p><a class=\"fancybox\" id=\"img-3\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_gogs_go_git_service_on_ubuntu_1604\/big\/3.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/02\/how-to-install-gogs-go-git-service-on-ubuntu-16-04-2.png\" alt=\"Install Go programming language\" width=\"500\" height=\"199\" title=\"\"><\/a><\/p>\n<p>Now run the &#8216;go&#8217; command for checking the version.<\/p>\n<p class=\"command\">go version<\/p>\n<p>And make sure you get the result as shown in the following screenshot.<\/p>\n<p><a class=\"fancybox\" id=\"img-4\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_gogs_go_git_service_on_ubuntu_1604\/big\/4.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/02\/how-to-install-gogs-go-git-service-on-ubuntu-16-04-3.png\" alt=\"Check the go version\" width=\"500\" height=\"209\" title=\"\"><\/a><\/p>\n<p>Go is now installed on the system under &#8216;git&#8217; user.<\/p>\n<h2 id=\"step-install-gogs-go-git-service\">Step 4 &#8211; Install Gogs Go Git Service<\/h2>\n<p>Login as the &#8216;git&#8217; user and download &#8216;Gogs&#8217; from GitHub using the &#8216;go&#8217; command.<\/p>\n<p class=\"command\">su &#8211; git<br \/>go get -u github.com\/gogits\/gogs<\/p>\n<p>The command will download all Gogs source code in the &#8216;GOPATH\/src&#8217; directory.<\/p>\n<p>Go to the &#8216;$GOPATH\/src\/github.com\/gogits\/gogs&#8217; directory and build gogs using commands below.<\/p>\n<p class=\"command\">cd $GOPATH\/src\/github.com\/gogits\/gogs<br \/>go build<\/p>\n<p>And make sure you get no error.<\/p>\n<p>Now run Gogs Go Git Service using the command below.<\/p>\n<p class=\"command\">.\/gogs web<\/p>\n<p>The command will run Gogs on the default port 3000.<\/p>\n<p><a class=\"fancybox\" id=\"img-5\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_gogs_go_git_service_on_ubuntu_1604\/big\/5.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/02\/how-to-install-gogs-go-git-service-on-ubuntu-16-04-4.png\" alt=\"Install Gogs Go Git Service\" width=\"500\" height=\"227\" title=\"\"><\/a><\/p>\n<p>Open your web browser and type your server IP address with port 3000, mine is http:\/\/192.168.33.10:3000\/<\/p>\n<p>And you should get the result as shown below.<\/p>\n<p><a class=\"fancybox\" id=\"img-6\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_gogs_go_git_service_on_ubuntu_1604\/big\/6.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/02\/how-to-install-gogs-go-git-service-on-ubuntu-16-04-5.png\" alt=\"Gogs web installer\" width=\"500\" height=\"283\" title=\"\"><\/a><\/p>\n<p>Gogs is installed on the Ubuntu system. Now back to your terminal and press &#8216;Ctrl + c&#8217; to exit.<\/p>\n<h2 id=\"step-configure-gogs-go-git-service\">Step 5 &#8211; Configure Gogs Go Git Service<\/h2>\n<p>In this step, we will create a custom configuration for Gogs.<\/p>\n<p>Goto the Gogs installation directory and create a new &#8216;custom\/conf&#8217; directory.<\/p>\n<p class=\"command\">cd $GOPATH\/src\/github.com\/gogits\/gogs<br \/>mkdir -p custom\/conf\/<\/p>\n<p>Copy default configuration to the custom directory and edit it using <a href=\"https:\/\/www.howtoforge.com\/vim-basics\" target=\"_blank\" rel=\"noopener\">vim<\/a>.<\/p>\n<p class=\"command\">cp conf\/app.ini custom\/conf\/app.ini<br \/>vim custom\/conf\/app.ini<\/p>\n<p>In the &#8216;<strong>[server]<\/strong>&#8216; section, change the server &#8216;HOST_ADDR&#8217; with &#8216;127.0.0.1&#8217;.<\/p>\n<pre class=\"system\">[server]<br\/>PROTOCOL = http<br\/>DOMAIN = localhost<br\/>ROOT_URL = %(PROTOCOL)s:\/\/%(DOMAIN)s:%(HTTP_PORT)s\/<br\/>HTTP_ADDR = 127.0.0.1<br\/>HTTP_PORT = 3000<\/pre>\n<p>In the &#8216;<strong>[database]<\/strong>&#8216; section, change everything with your own database info.<\/p>\n<pre class=\"system\">[database]<br\/>DB_TYPE = postgres<br\/>HOST = 127.0.0.1:5432<br\/>NAME = gogs_production<br\/>USER = git<br\/>PASSWD = <a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"2d4c5c5a481c1f1e6d\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>#<\/pre>\n<p>Save and exit.<\/p>\n<p>Now verify the configuration by running the command as shown below.<\/p>\n<p class=\"command\">.\/gogs web<\/p>\n<p>And make sure you get the result as following.<\/p>\n<p><a class=\"fancybox\" id=\"img-7\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_gogs_go_git_service_on_ubuntu_1604\/big\/7.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/02\/how-to-install-gogs-go-git-service-on-ubuntu-16-04-6.png\" alt=\"Configure the service\" width=\"500\" height=\"162\" title=\"\"><\/a><\/p>\n<p>Gogs is now running with our custom configuration, under &#8216;localhost&#8217; with port 3000.<\/p>\n<h2 id=\"step-running-gogs-as-a-service\">Step 6 &#8211; Running Gogs as a Service<\/h2>\n<p>In this step, we will configure Gogs as a service on Ubuntu system. We will create a new service file configuration &#8216;gogs.service&#8217; under the &#8216;\/etc\/systemd\/system&#8217; directory.<\/p>\n<p>Go to the &#8216;\/etc\/systemd\/system&#8217; directory and create a new service file &#8216;gogs.service&#8217; using the\u00a0<a href=\"https:\/\/www.howtoforge.com\/vim-basics\" target=\"_blank\" rel=\"noopener noreferrer\">vim<\/a> editor.<\/p>\n<p class=\"command\">cd \/etc\/systemd\/system<br \/>vim gogs.service<\/p>\n<p>Paste the following gogs service configuration there.<\/p>\n<pre class=\"system\" readability=\"10\">[Unit]<br\/>Description=Gogs<br\/>After=syslog.target<br\/>After=network.target<br\/>After=mariadb.service mysqld.service postgresql.service memcached.service redis.service<p>[Service]<br\/># Modify these two values and uncomment them if you have<br\/># repos with lots of files and get an HTTP error 500 because<br\/># of that<br\/>###<br\/>#LimitMEMLOCK=infinity<br\/>#LimitNOFILE=65535<br\/>Type=simple<br\/>User=git<br\/>Group=git<br\/>WorkingDirectory=\/home\/git\/go\/src\/github.com\/gogits\/gogs<br\/>ExecStart=\/home\/git\/go\/src\/github.com\/gogits\/gogs\/gogs web<br\/>Restart=always<br\/>Environment=USER=git HOME=\/home\/git<\/p><p>[Install]<br\/>WantedBy=multi-user.target<\/p><\/pre>\n<p>Save and exit.<\/p>\n<p>Now reload the systemd services.<\/p>\n<p class=\"command\">systemctl daemon-reload<\/p>\n<p>Start gogs service and enable it to launch everytime at system boot using the systemctl command.<\/p>\n<p class=\"command\">systemctl start gogs<br \/>systemctl enable gogs<\/p>\n<p><a class=\"fancybox\" id=\"img-8\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_gogs_go_git_service_on_ubuntu_1604\/big\/8.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/02\/how-to-install-gogs-go-git-service-on-ubuntu-16-04-7.png\" alt=\"Run gogs as a service\" width=\"500\" height=\"147\" title=\"\"><\/a><\/p>\n<p>Gogs is now running as a service on Ubuntu system.<\/p>\n<p>Check it using the commands below.<\/p>\n<p class=\"command\">netstat -plntu<br \/>systemctl status gogs<\/p>\n<p>And you should get the result as shown below.<\/p>\n<p><a class=\"fancybox\" id=\"img-9\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_gogs_go_git_service_on_ubuntu_1604\/big\/9.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/02\/how-to-install-gogs-go-git-service-on-ubuntu-16-04-8.png\" alt=\"Gogs is listening on the network interface\" width=\"500\" height=\"154\" title=\"\"><\/a><\/p>\n<h2 id=\"step-configure-nginx-as-a-reverse-proxy-for-gogs\">Step 7 &#8211; Configure Nginx as a Reverse Proxy for Gogs<\/h2>\n<p>In this step, we will configure Nginx as a reverse proxy for Gogs. We will be using Nginx packages from its own repository.<\/p>\n<p>Add Nginx repository using the add-apt command.<\/p>\n<p class=\"command\">sudo add-apt-repository -y ppa:nginx\/stable<\/p>\n<p>Now update all Ubuntu repositories and install Nginx using the apt command below.<\/p>\n<p class=\"command\">sudo apt update<br \/>sudo apt install nginx -y<\/p>\n<p>Next, goto the &#8216;\/etc\/nginx\/sites-available&#8217; directory and create new virtual host file &#8216;gogs&#8217;.<\/p>\n<p class=\"command\">cd \/etc\/nginx\/sites-available<br \/>vim gogs<\/p>\n<p>Paste the following configuration there.<\/p>\n<pre class=\"system\" readability=\"5\">server {<br\/>\u00a0\u00a0\u00a0 listen 80;<br\/>\u00a0\u00a0\u00a0 server_name git.hakase-labs.co;<p>\u00a0\u00a0\u00a0 location \/ {<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 proxy_pass http:\/\/localhost:3000;<br\/>\u00a0\u00a0\u00a0 }<br\/>}<\/p><\/pre>\n<p>Save and exit.<\/p>\n<p><strong>Note:<\/strong><\/p>\n<p>Change the &#8216;server_name&#8217; line with your own domain name.<\/p>\n<p>Now activate a new virtual host and test the nginx configuration.<\/p>\n<p class=\"command\">ln -s \/etc\/nginx\/sites-available\/gogs \/etc\/nginx\/sites-enabled\/<br \/>nginx -t<\/p>\n<p>Make sure there is no error, then restart the Nginx service.<\/p>\n<p class=\"command\">systemctl restart nginx<\/p>\n<p><a class=\"fancybox\" id=\"img-10\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_gogs_go_git_service_on_ubuntu_1604\/big\/10.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/02\/how-to-install-gogs-go-git-service-on-ubuntu-16-04-9.png\" alt=\"Nginx reverse proxy for gogs\" width=\"500\" height=\"148\" title=\"\"><\/a><\/p>\n<h2 id=\"step-testing\">Step 8 &#8211; Testing<\/h2>\n<p>Open your web browser and type your gogs URL, mine is\u00a0http:\/\/git.hakase-labs.co<\/p>\n<p>Now you will get the installation page. On top of the page, type all of your PostgreSQL database info.<\/p>\n<p><a class=\"fancybox\" id=\"img-11\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_gogs_go_git_service_on_ubuntu_1604\/big\/11.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/02\/how-to-install-gogs-go-git-service-on-ubuntu-16-04-10.png\" alt=\"Gogs installer\" width=\"500\" height=\"233\" title=\"\"><\/a><\/p>\n<p>Now scroll to the bottom, and click the &#8216;Admin account settings&#8217; dropdown.<\/p>\n<p>Type your admin user, password, and email.<\/p>\n<p><a class=\"fancybox\" id=\"img-12\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_gogs_go_git_service_on_ubuntu_1604\/big\/12.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/02\/how-to-install-gogs-go-git-service-on-ubuntu-16-04-11.png\" alt=\"Type in the gogs install settings\" width=\"500\" height=\"288\" title=\"\"><\/a><\/p>\n<p>Then click the &#8216;Install Gogs&#8217; button.<\/p>\n<p>And you will be redirected to the Gogs user Dashboard as shown below.<\/p>\n<p><a class=\"fancybox\" id=\"img-13\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_gogs_go_git_service_on_ubuntu_1604\/big\/13.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/02\/how-to-install-gogs-go-git-service-on-ubuntu-16-04-12.png\" alt=\"Gogs dashboard\" width=\"500\" height=\"289\" title=\"\"><\/a><\/p>\n<p>Below is Gogs &#8216;Admin Dashboard&#8217;.<\/p>\n<p><a class=\"fancybox\" id=\"img-14\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_gogs_go_git_service_on_ubuntu_1604\/big\/14.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/02\/how-to-install-gogs-go-git-service-on-ubuntu-16-04-13.png\" alt=\"Browse the Gogs dashboard\" width=\"500\" height=\"284\" title=\"\"><\/a><\/p>\n<p>Gogs is now installed with PostgreSQL database and Nginx web server on Ubuntu 16.04 server<\/p>\n<h2 id=\"reference\">Reference<\/h2>\n<div>\n<p><b>Share this page:<\/b><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Gogs is free and open source Git service written in Go language. Gogs is a painless self-hosted git service that allows you to create and run your own Git server on a minimal hardware server. Gogs web-UI is very similar to GitHub and offers support for MySQL, PostgreSQL, and SQLite database. In this tutorial, we [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-2852","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/2852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=2852"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/2852\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=2852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=2852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=2852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}