gogs #12

  • By cmars
  • Latest version (#12)
  • trusty, xenial
  • Stable

Description

A painless self-hosted Git service.


Juju reactive charm layer for Gogs

Build

In this directory:

$ charm build

Deploy

Gogs needs a PostgreSQL database.

$ juju deploy cs:~cmars/gogs
$ juju deploy postgresql
$ juju add-relation gogs postgresql:db

Browse to port 3000 on the gogs workload.

HTTP reverse proxying is also supported, and recommended for TLS termination.

$ juju deploy haproxy
$ juju add-relation gogs haproxy
$ juju expose haproxy

Then configure the gogs public host name.

$ juju set-config gogs host=https://git.shlub.com

License

Copyright 2016 Cmars Technologies, LLC.

The copyright file contains the software license for this charm.

Refer the Gogs website for more information on the software
installed by this charm.

Contact

Email: charmed at cmars.tech
IRC: cmars on FreeNode

Configuration

http_port
(int) HTTP port for web application
3000
title
(string) App name that shows up on every page title
Go Git Service
ssh_port
(int) SSH port for git repository access
3022
host
(string) External host name
force_private
(boolean) Force every new repository to be private
run_mode
(string) Either "dev", "prod" or "test"
prod