Add postgres support, clean code, code review

This commit is contained in:
Unknown 2014-03-17 14:03:58 -04:00
parent 9d3b003add
commit e51afe4621
19 changed files with 1124 additions and 303 deletions

View file

@ -1,10 +1,12 @@
# App name that shows on every page title
APP_NAME = Gogs: Go Git Service
# !!MUST CHANGE TO YOUR USER NAME!!
RUN_USER = lunny
[repository]
ROOT = /Users/%(RUN_USER)s/git/gogs-repositories
LANG_IGNS=Google Go|C|Python|Ruby
LICENSES=Apache v2 License|GPL v2|MIT License|BSD (3-Clause) License
LANG_IGNS=Google Go|C|Python|Ruby|C Sharp
LICENSES=Apache v2 License|GPL v2|MIT License|Affero GPL|BSD (3-Clause) License
[server]
DOMAIN = gogits.org
@ -12,11 +14,15 @@ HTTP_ADDR =
HTTP_PORT = 3000
[database]
# Either "mysql" or "postgres", it's your choice
DB_TYPE = mysql
HOST =
NAME = gogs
USER = root
PASSWD =
# For "postgres" only, either "disable" or "verify-full"
SSL_MODE = disable
[security]
# !!CHANGE THIS TO KEEP YOUR USER DATA SAFE!!
USER_PASSWD_SALT = !#@FDEWREWR&*(