Skip to content

gogs job from gogs/5.4.0

Github source: ca84293 or master branch

Properties

databases

address

The database address

Default
127.0.0.1

databases

A list of databases and associated properties to create

Default
[]
Example
databases: |+
  - name: gogs
    citext: true
    tag: gogs

port

The database port

Default
5432

roles

A list of database roles and associated properties to create

Default
[]
Example
roles: |+
  - name: gogs
    password: MyGogsPassword
    tag: gogs

type

The database type you choose, either mysql, postgres, mssql or sqlite3.

Default
postgres

gogs

admin

Admin user for gogs

Default
gogs

domain

Domain name of your server. Defaults to current IP.

Example
git.example.com

email

Email for admin account

Default

password

Password for admin user

port

Port that gogs listen on

Default
"8080"

protocol

Default
http

secret_key

Global secret key for your server security

ssh_port

Port for Gogs SSH

Default
"2222"

start_ssh_server

Start SSH Server

Default
"true"

tls_cert

Certificat TLS for gogs web

tls_key

Private key TLS for gogs web

Templates

Templates are rendered and placed onto corresponding instances during the deployment process. This job's templates will be placed into /var/vcap/jobs/gogs/ directory (learn more).

  • bin/bbr/backup (from bbr/backup.sh.erb)
  • bin/bbr/restore (from bbr/restore.sh.erb)
  • bin/gogs_ctl (from bin/gogs_ctl)
  • bin/monit_debugger (from bin/monit_debugger)
  • config/app.ini (from config/app.ini.erb)
  • config/gogs.crt (from config/gogs.crt.erb)
  • config/gogs.key (from config/gogs.key.erb)
  • data/properties.sh (from data/properties.sh.erb)
  • env/HOME (from env/HOME)
  • env/PATH (from env/PATH)
  • env/USER (from env/USER)
  • helpers/ctl_setup.sh (from helpers/ctl_setup.sh)
  • helpers/ctl_utils.sh (from helpers/ctl_utils.sh)

Packages

Packages are compiled and placed onto corresponding instances during the deployment process. Packages will be placed into /var/vcap/packages/ directory.