Blog based on beego, go blog


Go Blog

A beego based development, can quickly create personal blog, CMS system

Include functions


Official website of go


Blog based on beego, go blog

Update log

time function
January 23, 2020 New top post function
February 2, 2020 New custom navigation function
February 4, 2020 New site announcement function
February 6, 2020 New link module
February 6, 2020 Add like function
February 20, 2020 New site user management module, can add and modify background users and passwords
March 5, 2020 JS rendering page to back-end rendering, optimize page SEO
March 6, 2020 Add tag cloud
March 7, 2020 XSS attack filtering
March 12, 2020 Add likes limit
March 23, 2020 Add hard disk usage monitoring
March 25, 2020 Enlarge preview of new picture

Update V1.1.0

The next V1.1.0 version will support the binding official account.

New features:
1. Material management
2. Custom menu
3. Mass message sending
4. Keyword reply


1. Pull the go blog project to local

2. Create new database, import database file, database file / database/ blog.sql

3. Modify project configuration information


appname = go-blog
httpport = 8088
runmode = dev
EnableAdmin = false
sessionon = true
url =
view = default

limit = 10
title = Go Blog
I can't talk about happiness or misfortune.

dbType = mysql
dbUser = root
dbPass = root
dbHost =
dbPort = 3306
dbName = blog

rHost =
rPort = 6379

AppID = xxxxxxx
AppSecret = xxxxxxx
Token = xxxxxxx
EncodingAESKey = xxxxxxx

4. Run bee run in the root directory of Bo blog to access127.0.0.1:8888that will do

5. The relevant information of PM2 can be understood by running the daemons mode, and the configuration can be viewed file

6. Nginx proxy example

server {
     listen 80; server_name; root    /home/data/go-blog;
     location ~ \.(txt|xml)$ { 
         root /home/data/go-blog;
     location / { 
        #proxy_redirect off;
        proxy_http_version    1.1; 
        proxy_cache_bypass    $http_upgrade;
        proxy_set_header Upgrade  $http_upgrade; 
        proxy_set_header Connection "upgrade"; 
        proxy_set_header Host $host; 
        proxy_set_header X-Real-IP  $remote_addr; 
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;                     proxy_set_header X-Forwarded-Proto  $scheme;
        proxy_set_header X-Forwarded-Host   $host; 
        proxy_set_header X-Forwarded-Port   
     access_log    /home/wwwlogs/go-blog.access.log;

This work adoptsCC agreementThe author and the link to this article must be indicated in the reprint

Recommended Today

The actor model is so excellent under distributed high concurrency

Write at the beginning In general, there are two strategies for communicating in concurrent threads: shared data and messaging. One of the biggest problems of concurrent programming with shared data is data condition competition. It’s a headache to deal with all kinds of locks. Most of the traditional popular language concurrency is based on shared […]