]> Sergey Matveev's repositories - sgblog.git/commitdiff
Now officially it is phlogging engine too
authorSergey Matveev <stargrave@stargrave.org>
Sat, 14 Mar 2020 11:47:34 +0000 (14:47 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 14 Mar 2020 11:47:34 +0000 (14:47 +0300)
README
cmd/sgblog-comment-add/mail.go
cmd/sgblog-comment-add/main.go
cmd/sgblog/gopher.go
cmd/sgblog/http.go
cmd/sgblog/main.go
common.go

diff --git a/README b/README
index 20fd5fd8076ccbd67b3be07f82375868c8f20beb..282be72f157f9b8fcb2ab31e0d4e408735953c0f 100644 (file)
--- a/README
+++ b/README
@@ -1,12 +1,12 @@
-                SGBlog -- Git-based CGI blogging engine
-                =======================================
+            SGBlog -- Git-based CGI/inetd blogging/phlogging engine
+            =======================================================
 
 DESCRIPTION
 
-SGBlog is a simple blogging engine with a Git-based storage and CGI
-interface with HTTP-server. It can be used as a cgit replacement for
-readonly Git repository viewing and Atom feed generation. But it has
-better features:
+SGBlog is a simple blogging engine with a Git-based storage, CGI
+interface for HTTP-server, inetd interface for serving as Gopher server.
+It can be used as a cgit replacement for readonly Git repository viewing
+and Atom feed generation. But it has better features:
 
 * URLs are tried to be converted to clickable links
 * SHA1 hashes are tried to be converted to blog links itself
@@ -14,6 +14,7 @@ better features:
 * Each page has ETag and it is checked against the request for client-side
   caching
 * Pages can be gzip-compressed, depending on Accept-Encoding header
+* Gopher protocol support for phlog creation
 * Commenting support
 
 CONFIGURATION
@@ -49,6 +50,22 @@ SGBlog is configured via Hjson configuration file:
       CommentsEmail: something@example.com
     }
 
+Gopher mode can use the same configuration file, but it requires much
+less options:
+
+    {
+      GitPath: /home/git/pub/stargrave-blog.git
+      Branch: refs/heads/english
+      Title: "English Stargrave's blog"
+
+      AboutURL: http://blog.stargrave.org/
+
+      CommentsNotesRef: refs/notes/comments
+      CommentsEmail: something@example.com
+
+      GopherDomain: phlog.stargrave.org
+    }
+
 COMMENTS
 
 Each comment is just a plaintext with From and Date headers. They are
index 1a347fcb5cdfa07cd85f130494e15dde00809e91..45ce0531065b59fa690b5fb25ee01d8678c73fa0 100644 (file)
@@ -1,5 +1,5 @@
 /*
-SGBlog -- Git-based CGI blogging engine
+SGBlog -- Git-based CGI/inetd blogging/phlogging engine
 Copyright (C) 2020 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
index 100f5f2138339b56e058277c5f1af9c29f2922d7..7233a6ae515d7b61702d9f83e0deecc46c7f8793 100644 (file)
@@ -1,5 +1,5 @@
 /*
-SGBlog -- Git-based CGI blogging engine
+SGBlog -- Git-based CGI/inetd blogging/phlogging engine
 Copyright (C) 2020 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
@@ -15,7 +15,7 @@ You should have received a copy of the GNU Affero General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-// Git-based CGI blogging engine email to comments adder
+// Git-based CGI/inetd blogging/phlogging engine
 package main
 
 import (
index e98d65b9f08d25c50639b39af32aec232495f08b..a4a69fd261105b44f621e9d7384f0f7c61d6dd06 100644 (file)
@@ -1,5 +1,5 @@
 /*
-SGBlog -- Git-based CGI blogging engine
+SGBlog -- Git-based CGI/inetd blogging/phlogging engine
 Copyright (C) 2020 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
@@ -15,7 +15,6 @@ You should have received a copy of the GNU Affero General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-// Git-based CGI blogging engine
 package main
 
 import (
index 968555826bba8621a28e59578b0b859e6b626359..a91da3c9422338204a7617d66a7b2bf6c2308bcb 100644 (file)
@@ -1,5 +1,5 @@
 /*
-SGBlog -- Git-based CGI blogging engine
+SGBlog -- Git-based CGI/inetd blogging/phlogging engine
 Copyright (C) 2020 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
@@ -15,7 +15,6 @@ You should have received a copy of the GNU Affero General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-// Git-based CGI blogging engine
 package main
 
 import (
index f3d009ab464181d04d5df45e031da49dda66f6ff..06f1e37f0da977cc4e453e269632005e881ed52e 100644 (file)
@@ -1,5 +1,5 @@
 /*
-SGBlog -- Git-based CGI blogging engine
+SGBlog -- Git-based CGI/inetd blogging/phlogging engine
 Copyright (C) 2020 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
@@ -15,7 +15,7 @@ You should have received a copy of the GNU Affero General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-// Git-based CGI blogging engine
+// Git-based CGI/inetd blogging/phlogging engine
 package main
 
 import (
index de1739390dcf929d948e400044aa7268e4ddf3f3..86d1e8317876bf0524b1c14d8807c09615537de4 100644 (file)
--- a/common.go
+++ b/common.go
@@ -1,4 +1,4 @@
-// SGBlog -- Git-based CGI blogging engine
+// SGBlog -- Git-based CGI/inetd blogging/phlogging engine
 package sgblog
 
 const (