improve https support
This commit is contained in:
parent
d7296c69df
commit
0dcb32eed6
3 changed files with 13 additions and 3 deletions
|
@ -93,8 +93,9 @@ The following code has been tested with Debian 8, it should work on Ubuntu as we
|
|||
* `gitea_root_url`: Root URL used to access your web app (full URL)
|
||||
* `gitea_protocol`: Listening protocol (http/https)
|
||||
* `gitea_http_listen`: Bind address
|
||||
* `gitea_http_port`: Bind port
|
||||
* `gitea_http_port`: Bind port (redirect from `80` will be activated if value is `443` - Default: `3000`)
|
||||
* `gitea_disable_http_git`: Disable the use of Git over HTTP ? (true/false)
|
||||
* `gitea_http_letsencrypt_mail` Enable Let`s Encrypt if a email address is given
|
||||
|
||||
### SSH configuration
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ gitea_root_url: http://localhost:3000
|
|||
gitea_protocol: http
|
||||
gitea_http_listen: 127.0.0.1
|
||||
gitea_http_port: 3000
|
||||
# gitea_http_letsencrypt_mail: - required
|
||||
gitea_disable_http_git: false
|
||||
gitea_offline_mode: true
|
||||
|
||||
|
|
|
@ -35,8 +35,16 @@ PROTOCOL = {{ gitea_protocol }}
|
|||
DOMAIN = {{ gitea_http_domain }}
|
||||
ROOT_URL = {{ gitea_root_url }}
|
||||
; The address to listen on. Either a IPv4/IPv6 address or the path to a unix socket.
|
||||
HTTP_ADDR = {{ gitea_http_listen }}
|
||||
HTTP_PORT = {{ gitea_http_port }}
|
||||
HTTP_ADDR = {{ gitea_http_listen }}
|
||||
HTTP_PORT = {{ gitea_http_port }}
|
||||
{% if gitea_http_port == 443 %}
|
||||
PORT_TO_REDIRECT = 80
|
||||
{% endif %}
|
||||
{% if gitea_http_letsencrypt_mail is defined %}
|
||||
ENABLE_LETSENCRYPT = true
|
||||
LETSENCRYPT_ACCEPTTOS = true
|
||||
LETSENCRYPT_EMAIL = {{ gitea_http_letsencrypt_mail }}
|
||||
{% endif %}
|
||||
; Disable SSH feature when not available
|
||||
DISABLE_SSH = false
|
||||
; Whether to use the builtin SSH server or not.
|
||||
|
|
Loading…
Reference in a new issue