go>> cgod>> 返回
项目作者: prologic

项目描述 :
circuits Gopher Daemon
高级语言: Python
项目地址: git://github.com/prologic/cgod.git
创建时间: 2015-06-12T12:38:43Z
项目社区:https://github.com/prologic/cgod

开源协议:Other

下载


cgod

cgod is a Gopher Daemon with a similar feature set to Gophernicus and Motsognir and is fully “Dockerized” with Docker. cgod is written in Python using the circuits Application Framework.

Full documentation can be found on Gopherspace at:

gopher://daisy.shortcircuit.net.au/1~prologic/projects/cgod

Installation

Either pull the prebuilt Docker image:

  1. $ docker pull prologic/cgod

Or install from the development repository:

  1. $ git clone https://github.com/prologic/cgod
  2. $ cd cgod
  3. $ pip install .

Usage

Using Docker:

  1. $ docker run -d 70:70 -v /var/gopher:/var/gopher -H domain.com -r /var/gopher

Or via a local install:

  1. # cgod -H domain.com -r /var/gopher

note

It is important to configure the -H/--hostname properly and set

this to the hostname that remote Gopher clients will connect to your Gopher server with.

For other configuration options:

  1. $ docker run prologic/cgod --help

or:

  1. $ cgod --help

A path to a configuration file can also be specified with the -c/--config option. The file format is INI-style and takes all of the same long options as the command-line.

Example Configuration:

  1. [globals]
  2. rootdir = '/var/gopher'
  3. host = 'domain.com'

Demo

A full production version of cgod can be found at the following Gopher URI:

gopher://daisy.shortcircuit.net.au

This is configured and managed with the following fig http://fig.sh configuration:

  1. cgod:
  2. image: prologic/cgod
  3. environment:
  4. - CGOD_HOST=arrow.shortcircuit.net.au
  5. - CGOD_ROOTDIR=/var/gopher
  6. volumes:
  7. - /home:/home
  8. - /var/gopher:/var/gopher
  9. ports:
  10. - "70:70"