summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorMeaglith Ma <genedna@gmail.com>2014-04-23 12:29:53 +0800
committerMeaglith Ma <genedna@gmail.com>2014-04-23 12:29:53 +0800
commitee7bfe2ebe3a453beff5e8d4c1436061d321acfe (patch)
tree02575fe703fdcfaa2bd6450b852734d9305c9ce6 /conf
parentb270b34c98b10b0e4807048890e883b6b06a6461 (diff)
parentf0cdf30134e62be6bf5924735a6145769e495cfc (diff)
downloadgitea-ee7bfe2ebe3a453beff5e8d4c1436061d321acfe.tar.gz
gitea-ee7bfe2ebe3a453beff5e8d4c1436061d321acfe.zip
Add memcached and redis Docker supported
Diffstat (limited to 'conf')
-rw-r--r--conf/app.ini65
-rw-r--r--conf/gitignore/Android23
-rw-r--r--conf/gitignore/Java12
-rw-r--r--conf/gitignore/Objective-C7
-rw-r--r--conf/supervisor.ini8
5 files changed, 111 insertions, 4 deletions
diff --git a/conf/app.ini b/conf/app.ini
index abc27c39c4..25fd41091f 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -8,17 +8,24 @@ RUN_MODE = dev
[repository]
ROOT =
-LANG_IGNS = Google Go|C|C++|Python|Ruby|C Sharp
+SCRIPT_TYPE = bash
+LANG_IGNS = Google Go|C|C++|Python|Ruby|C Sharp|Java|Objective-C|Android
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)s://%(DOMAIN)s:%(HTTP_PORT)s/
HTTP_ADDR =
HTTP_PORT = 3000
+; Generate steps:
+; $ 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]
-; Either "mysql", "postgres" or "sqlite3"(binary release only), it's your choice
+; Either "mysql", "postgres" or "sqlite3", it's your choice
DB_TYPE = mysql
HOST = 127.0.0.1:3306
NAME = gogs
@@ -46,7 +53,7 @@ RESET_PASSWD_CODE_LIVE_MINUTES = 180
; User need to confirm e-mail for registration
REGISTER_EMAIL_CONFIRM = false
; Does not allow register and admin create account only
-DISENABLE_REGISTERATION = false
+DISABLE_REGISTRATION = false
; User must sign in to view anything.
REQUIRE_SIGNIN_VIEW = false
; Cache avatar as picture
@@ -62,6 +69,7 @@ SEND_BUFFER_LEN = 10
SUBJECT = %(APP_NAME)s
; Mail server
; Gmail: smtp.gmail.com:587
+; QQ: smtp.qq.com:25
HOST =
; Mail from address
FROM =
@@ -69,6 +77,55 @@ FROM =
USER =
PASSWD =
+[oauth]
+ENABLED = false
+
+[oauth.github]
+ENABLED = false
+CLIENT_ID =
+CLIENT_SECRET =
+SCOPES = https://api.github.com/user
+AUTH_URL = https://github.com/login/oauth/authorize
+TOKEN_URL = https://github.com/login/oauth/access_token
+
+; Get client id and secret from
+; https://console.developers.google.com/project
+[oauth.google]
+ENABLED = false
+CLIENT_ID =
+CLIENT_SECRET =
+SCOPES = https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile
+AUTH_URL = https://accounts.google.com/o/oauth2/auth
+TOKEN_URL = https://accounts.google.com/o/oauth2/token
+
+[oauth.qq]
+ENABLED = false
+CLIENT_ID =
+CLIENT_SECRET =
+SCOPES = all
+; QQ 互联
+; AUTH_URL = https://graph.qq.com/oauth2.0/authorize
+; TOKEN_URL = https://graph.qq.com/oauth2.0/token
+; Tencent weibo
+AUTH_URL = https://open.t.qq.com/cgi-bin/oauth2/authorize
+TOKEN_URL = https://open.t.qq.com/cgi-bin/oauth2/access_token
+
+[oauth.twitter]
+ENABLED = false
+CLIENT_ID =
+CLIENT_SECRET =
+SCOPES = all
+AUTH_URL = https://api.twitter.com/oauth/authorize
+TOKEN_URL = https://api.twitter.com/oauth/access_token
+
+[oauth.weibo]
+ENABLED = false
+CLIENT_ID =
+CLIENT_SECRET =
+SCOPES = all
+AUTH_URL = https://api.weibo.com/oauth2/authorize
+TOKEN_URL = https://api.weibo.com/oauth2/access_token
+
[cache]
; Either "memory", "redis", or "memcache", default is "memory"
ADAPTER = memory
diff --git a/conf/gitignore/Android b/conf/gitignore/Android
new file mode 100644
index 0000000000..37e8cf6cc2
--- /dev/null
+++ b/conf/gitignore/Android
@@ -0,0 +1,23 @@
+# Built application files
+*.apk
+*.ap_
+
+# Files for the Dalvik VM
+*.dex
+
+# Java class files
+*.class
+
+# Generated files
+bin/
+gen/
+
+# Gradle files
+.gradle/
+build/
+
+# Local configuration file (sdk path, etc)
+local.properties
+
+# Proguard folder generated by Eclipse
+proguard/ \ No newline at end of file
diff --git a/conf/gitignore/Java b/conf/gitignore/Java
new file mode 100644
index 0000000000..b7d7dc6d4e
--- /dev/null
+++ b/conf/gitignore/Java
@@ -0,0 +1,12 @@
+*.class
+
+# Mobile Tools for Java (J2ME)
+.mtj.tmp/
+
+# Package Files #
+*.jar
+*.war
+*.ear
+
+# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
+hs_err_pid* \ No newline at end of file
diff --git a/conf/gitignore/Objective-C b/conf/gitignore/Objective-C
new file mode 100644
index 0000000000..ce88458636
--- /dev/null
+++ b/conf/gitignore/Objective-C
@@ -0,0 +1,7 @@
+# CocoaPods
+#
+# We recommend against adding the Pods directory to your .gitignore. However
+# you should judge for yourself, the pros and cons are mentioned at:
+# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control?
+#
+# Pods/ \ No newline at end of file
diff --git a/conf/supervisor.ini b/conf/supervisor.ini
new file mode 100644
index 0000000000..0acd9ca0b3
--- /dev/null
+++ b/conf/supervisor.ini
@@ -0,0 +1,8 @@
+[program:gogs]
+user=git
+command = /home/git/gogs/start.sh
+directory = /home/git/gogs
+autostart = true
+stdout_logfile = /var/gogs.log
+stderr_logfile = /var/gogs-error.log
+environment=HOME="/home/git"