- 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
* 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
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
/*
-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
/*
-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
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 (
/*
-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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-// Git-based CGI blogging engine
package main
import (
/*
-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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-// Git-based CGI blogging engine
package main
import (
/*
-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
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 (
-// SGBlog -- Git-based CGI blogging engine
+// SGBlog -- Git-based CGI/inetd blogging/phlogging engine
package sgblog
const (