53 lines
1.4 KiB
Plaintext
53 lines
1.4 KiB
Plaintext
; App name that shows on every page title
|
|
APP_NAME = Gogs: Go Git Service
|
|
; Change it if you run locally
|
|
RUN_USER = cloudron
|
|
; Either "dev", "prod" or "test", default is "dev"
|
|
RUN_MODE = prod
|
|
|
|
[repository]
|
|
ROOT = /app/data
|
|
SCRIPT_TYPE = bash
|
|
|
|
[server]
|
|
PROTOCOL = https
|
|
DOMAIN = ##HOSTNAME
|
|
ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s/
|
|
HTTP_ADDR =
|
|
HTTP_PORT = 3000
|
|
; Disable SSH feature when not available
|
|
DISABLE_SSH = false
|
|
SSH_PORT = ##SSH_PORT
|
|
; Landing page for non-logged users, can be "home" or "explore"
|
|
LANDING_PAGE = explore
|
|
|
|
[database]
|
|
; Either "mysql", "postgres" or "sqlite3", it's your choice
|
|
DB_TYPE = mysql
|
|
HOST = ##MYSQL_HOST:##MYSQL_PORT
|
|
NAME = ##MYSQL_DATABASE
|
|
USER = ##MYSQL_USERNAME
|
|
PASSWD = ##MYSQL_PASSWORD
|
|
|
|
[mailer]
|
|
ENABLED = true
|
|
; Name displayed in mail title
|
|
SUBJECT = %(APP_NAME)s
|
|
; Mail server
|
|
; Gmail: smtp.gmail.com:587
|
|
; QQ: smtp.qq.com:25
|
|
; Note, if the port ends with "465", SMTPS will be used. Using STARTTLS on port 587 is recommended per RFC 6409. If the server supports STARTTLS it will always be used.
|
|
HOST = ##MAIL_SERVER
|
|
; Do not verify the certificate of the server. Only use this for self-signed certificates
|
|
SKIP_VERIFY =
|
|
; Use client certificate
|
|
USE_CERTIFICATE = false
|
|
CERT_FILE =
|
|
KEY_FILE =
|
|
; Mail from address, RFC 5322. This can be just an email address, or the "Name" <email@example.com> format
|
|
FROM = ##MAIL_FROM
|
|
; Mailer user name and password
|
|
USER =
|
|
PASSWD =
|
|
|