|
|
@ -9,6 +9,63 @@ RUN_USER = git |
|
|
|
; Either "dev", "prod" or "test" |
|
|
|
; Either "dev", "prod" or "test" |
|
|
|
RUN_MODE = dev |
|
|
|
RUN_MODE = dev |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[server] |
|
|
|
|
|
|
|
PROTOCOL = http |
|
|
|
|
|
|
|
DOMAIN = localhost |
|
|
|
|
|
|
|
ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/ |
|
|
|
|
|
|
|
HTTP_ADDR = 0.0.0.0 |
|
|
|
|
|
|
|
HTTP_PORT = 3000 |
|
|
|
|
|
|
|
; Permission for unix socket |
|
|
|
|
|
|
|
UNIX_SOCKET_PERMISSION = 666 |
|
|
|
|
|
|
|
; Local (DMZ) URL for Gogs workers (such as SSH update) accessing web service. |
|
|
|
|
|
|
|
; In most cases you do not need to change the default value. |
|
|
|
|
|
|
|
; Alter it only if your SSH server node is not the same as HTTP node. |
|
|
|
|
|
|
|
LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/ |
|
|
|
|
|
|
|
; Disable SSH feature when not available |
|
|
|
|
|
|
|
DISABLE_SSH = false |
|
|
|
|
|
|
|
; Whether use builtin SSH server or not. |
|
|
|
|
|
|
|
START_SSH_SERVER = false |
|
|
|
|
|
|
|
; Domain name to be exposed in SSH clone URL |
|
|
|
|
|
|
|
SSH_DOMAIN = %(DOMAIN)s |
|
|
|
|
|
|
|
; Port number to be exposed in SSH clone URL |
|
|
|
|
|
|
|
SSH_PORT = 22 |
|
|
|
|
|
|
|
; Network interface builtin SSH server listens on |
|
|
|
|
|
|
|
SSH_LISTEN_HOST = 0.0.0.0 |
|
|
|
|
|
|
|
; Port number builtin SSH server listens on |
|
|
|
|
|
|
|
SSH_LISTEN_PORT = %(SSH_PORT)s |
|
|
|
|
|
|
|
; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'. |
|
|
|
|
|
|
|
SSH_ROOT_PATH = |
|
|
|
|
|
|
|
; Choose the ciphers to support for SSH connections |
|
|
|
|
|
|
|
SSH_SERVER_CIPHERS = aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, arcfour256, arcfour128 |
|
|
|
|
|
|
|
; Directory to create temporary files when test publick key using ssh-keygen, |
|
|
|
|
|
|
|
; default is system temporary directory. |
|
|
|
|
|
|
|
SSH_KEY_TEST_PATH = |
|
|
|
|
|
|
|
; Path to ssh-keygen, default is 'ssh-keygen' and let shell find out which one to call. |
|
|
|
|
|
|
|
SSH_KEYGEN_PATH = ssh-keygen |
|
|
|
|
|
|
|
; Indicate whether to check minimum key size with corresponding type |
|
|
|
|
|
|
|
MINIMUM_KEY_SIZE_CHECK = false |
|
|
|
|
|
|
|
; Disable CDN even in "prod" mode |
|
|
|
|
|
|
|
OFFLINE_MODE = false |
|
|
|
|
|
|
|
DISABLE_ROUTER_LOG = false |
|
|
|
|
|
|
|
; Generate steps: |
|
|
|
|
|
|
|
; $ ./gogs cert -ca=true -duration=8760h0m0s -host=myhost.example.com |
|
|
|
|
|
|
|
; |
|
|
|
|
|
|
|
; Or from a .pfx file exported from the Windows certificate store (do |
|
|
|
|
|
|
|
; not forget to export the private key): |
|
|
|
|
|
|
|
; $ openssl pkcs12 -in cert.pfx -out cert.pem -nokeys |
|
|
|
|
|
|
|
; $ openssl pkcs12 -in cert.pfx -out key.pem -nocerts -nodes |
|
|
|
|
|
|
|
CERT_FILE = custom/https/cert.pem |
|
|
|
|
|
|
|
KEY_FILE = custom/https/key.pem |
|
|
|
|
|
|
|
; Upper level of template and static file path |
|
|
|
|
|
|
|
; default is the path where Gogs is executed |
|
|
|
|
|
|
|
STATIC_ROOT_PATH = |
|
|
|
|
|
|
|
; Default path for App data |
|
|
|
|
|
|
|
APP_DATA_PATH = data |
|
|
|
|
|
|
|
; Application level GZIP support |
|
|
|
|
|
|
|
ENABLE_GZIP = false |
|
|
|
|
|
|
|
; Landing page for non-logged users, can be "home" or "explore" |
|
|
|
|
|
|
|
LANDING_PAGE = home |
|
|
|
|
|
|
|
|
|
|
|
[repository] |
|
|
|
[repository] |
|
|
|
; Root path for storing repositories's data, default is "~/<username>/gogs-repositories" |
|
|
|
; Root path for storing repositories's data, default is "~/<username>/gogs-repositories" |
|
|
|
ROOT = |
|
|
|
ROOT = |
|
|
@ -67,63 +124,6 @@ CUSTOM_URL_SCHEMES = |
|
|
|
; Separate extensions with a comma. To render files w/o extension as markdown, just put a comma |
|
|
|
; Separate extensions with a comma. To render files w/o extension as markdown, just put a comma |
|
|
|
FILE_EXTENSIONS = .md,.markdown,.mdown,.mkd |
|
|
|
FILE_EXTENSIONS = .md,.markdown,.mdown,.mkd |
|
|
|
|
|
|
|
|
|
|
|
[server] |
|
|
|
|
|
|
|
PROTOCOL = http |
|
|
|
|
|
|
|
DOMAIN = localhost |
|
|
|
|
|
|
|
ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/ |
|
|
|
|
|
|
|
HTTP_ADDR = 0.0.0.0 |
|
|
|
|
|
|
|
HTTP_PORT = 3000 |
|
|
|
|
|
|
|
; Permission for unix socket |
|
|
|
|
|
|
|
UNIX_SOCKET_PERMISSION = 666 |
|
|
|
|
|
|
|
; Local (DMZ) URL for Gogs workers (such as SSH update) accessing web service. |
|
|
|
|
|
|
|
; In most cases you do not need to change the default value. |
|
|
|
|
|
|
|
; Alter it only if your SSH server node is not the same as HTTP node. |
|
|
|
|
|
|
|
LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/ |
|
|
|
|
|
|
|
; Disable SSH feature when not available |
|
|
|
|
|
|
|
DISABLE_SSH = false |
|
|
|
|
|
|
|
; Whether use builtin SSH server or not. |
|
|
|
|
|
|
|
START_SSH_SERVER = false |
|
|
|
|
|
|
|
; Domain name to be exposed in SSH clone URL |
|
|
|
|
|
|
|
SSH_DOMAIN = %(DOMAIN)s |
|
|
|
|
|
|
|
; Port number to be exposed in SSH clone URL |
|
|
|
|
|
|
|
SSH_PORT = 22 |
|
|
|
|
|
|
|
; Network interface builtin SSH server listens on |
|
|
|
|
|
|
|
SSH_LISTEN_HOST = 0.0.0.0 |
|
|
|
|
|
|
|
; Port number builtin SSH server listens on |
|
|
|
|
|
|
|
SSH_LISTEN_PORT = %(SSH_PORT)s |
|
|
|
|
|
|
|
; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'. |
|
|
|
|
|
|
|
SSH_ROOT_PATH = |
|
|
|
|
|
|
|
; Choose the ciphers to support for SSH connections |
|
|
|
|
|
|
|
SSH_SERVER_CIPHERS = aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, arcfour256, arcfour128 |
|
|
|
|
|
|
|
; Directory to create temporary files when test publick key using ssh-keygen, |
|
|
|
|
|
|
|
; default is system temporary directory. |
|
|
|
|
|
|
|
SSH_KEY_TEST_PATH = |
|
|
|
|
|
|
|
; Path to ssh-keygen, default is 'ssh-keygen' and let shell find out which one to call. |
|
|
|
|
|
|
|
SSH_KEYGEN_PATH = ssh-keygen |
|
|
|
|
|
|
|
; Indicate whether to check minimum key size with corresponding type |
|
|
|
|
|
|
|
MINIMUM_KEY_SIZE_CHECK = false |
|
|
|
|
|
|
|
; Disable CDN even in "prod" mode |
|
|
|
|
|
|
|
OFFLINE_MODE = false |
|
|
|
|
|
|
|
DISABLE_ROUTER_LOG = false |
|
|
|
|
|
|
|
; Generate steps: |
|
|
|
|
|
|
|
; $ ./gogs cert -ca=true -duration=8760h0m0s -host=myhost.example.com |
|
|
|
|
|
|
|
; |
|
|
|
|
|
|
|
; Or from a .pfx file exported from the Windows certificate store (do |
|
|
|
|
|
|
|
; not forget to export the private key): |
|
|
|
|
|
|
|
; $ openssl pkcs12 -in cert.pfx -out cert.pem -nokeys |
|
|
|
|
|
|
|
; $ openssl pkcs12 -in cert.pfx -out key.pem -nocerts -nodes |
|
|
|
|
|
|
|
CERT_FILE = custom/https/cert.pem |
|
|
|
|
|
|
|
KEY_FILE = custom/https/key.pem |
|
|
|
|
|
|
|
; Upper level of template and static file path |
|
|
|
|
|
|
|
; default is the path where Gogs is executed |
|
|
|
|
|
|
|
STATIC_ROOT_PATH = |
|
|
|
|
|
|
|
; Default path for App data |
|
|
|
|
|
|
|
APP_DATA_PATH = data |
|
|
|
|
|
|
|
; Application level GZIP support |
|
|
|
|
|
|
|
ENABLE_GZIP = false |
|
|
|
|
|
|
|
; Landing page for non-logged users, can be "home" or "explore" |
|
|
|
|
|
|
|
LANDING_PAGE = home |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[http] |
|
|
|
[http] |
|
|
|
; Value for Access-Control-Allow-Origin header, default is not to present |
|
|
|
; Value for Access-Control-Allow-Origin header, default is not to present |
|
|
|
ACCESS_CONTROL_ALLOW_ORIGIN = |
|
|
|
ACCESS_CONTROL_ALLOW_ORIGIN = |
|
|
|