|
|
@ -18,8 +18,11 @@ DOMAIN = localhost |
|
|
|
ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/ |
|
|
|
ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/ |
|
|
|
HTTP_ADDR = |
|
|
|
HTTP_ADDR = |
|
|
|
HTTP_PORT = 3000 |
|
|
|
HTTP_PORT = 3000 |
|
|
|
CERT_FILE = cert.pem |
|
|
|
; Generate steps: |
|
|
|
KEY_FILE = key.pem |
|
|
|
; $ cd path/to/gogs/custom/https |
|
|
|
|
|
|
|
; $ go run $GOROOT/src/pkg/crypto/tls/generate_cert.go -ca=true -duration=8760h0m0s -host=myhost.example.com |
|
|
|
|
|
|
|
CERT_FILE = custom/https/cert.pem |
|
|
|
|
|
|
|
KEY_FILE = custom/https/key.pem |
|
|
|
|
|
|
|
|
|
|
|
[database] |
|
|
|
[database] |
|
|
|
; Either "mysql", "postgres" or "sqlite3", it's your choice |
|
|
|
; Either "mysql", "postgres" or "sqlite3", it's your choice |
|
|
|