summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-04-05 15:17:57 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-04-05 15:17:57 +0800
commit493b0c5ac212a28f46938cf8dfb2efb79f658548 (patch)
tree073c9c244dff9a3efe33fb5e02fc71b62e44e327 /conf
parent75db79b4b6bcb8f61dd957c9bd21b32d4746f866 (diff)
downloadgitea-493b0c5ac212a28f46938cf8dfb2efb79f658548.tar.gz
gitea-493b0c5ac212a28f46938cf8dfb2efb79f658548.zip
add ssl support for web
Diffstat (limited to 'conf')
-rw-r--r--conf/app.ini5
1 files changed, 4 insertions, 1 deletions
diff --git a/conf/app.ini b/conf/app.ini
index abc27c39c4..f88c750e09 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -12,10 +12,13 @@ LANG_IGNS = Google Go|C|C++|Python|Ruby|C Sharp
LICENSES = Apache v2 License|GPL v2|MIT License|Affero GPL|Artistic License 2.0|BSD (3-Clause) License
[server]
+PROTOCOL = http
DOMAIN = localhost
-ROOT_URL = http://%(DOMAIN)s:%(HTTP_PORT)s/
+ROOT_URL = %(PROTOCOL)://%(DOMAIN)s:%(HTTP_PORT)s/
HTTP_ADDR =
HTTP_PORT = 3000
+CERT_FILE = cert.pem
+KEY_FILE = key.pem
[database]
; Either "mysql", "postgres" or "sqlite3"(binary release only), it's your choice