Skip to content

gogs job from gogs/5.5.3

Github source: 842970b or master branch

Properties

authentication

A list of authentication backends to add

Example
authentication: |+
  - type:
      name: LDAP
      id: 101
      type: ldap_bind_dn
      is_activated: true
      is_default: true
    config:
      host: 10.244.0.100
      port: 389
      security_protocol: 0
      skip_verify: true
      bind_dn: cn=binduser,dc=example,dc=org
      bind_password: bindpassword
      user_base: dc=example,dc=org
      attribute_username: uid
      attribute_name: givenName
      attribute_surname: sn
      attribute_mail: mail
      attributes_in_bind:
      filter: (&(objectClass=inetOrgPerson)(|(uid=%s)(mail=%s)))
      admin_filter:
      group_enabled: false
      group_dn:
      group_filter:
      group_member_uid:
      user_uid:
  - type:
      name: GMail
      id: 102
      type: smtp
      is_activated: true
      is_default: false
    config:
      auth: PLAIN
      host: smtp.gmail.com
      port: 587
      allowed_domains:
      tls: true
      skip_verify: false

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

domain

Domain name of your server. Defaults to current IP.

Example
git.example.com

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.