Skip to content

Instantly share code, notes, and snippets.

@pandada8
Last active July 26, 2017 05:49
Show Gist options
  • Save pandada8/ab5df23c5ba47b15cca92d66a1a4011d to your computer and use it in GitHub Desktop.
Save pandada8/ab5df23c5ba47b15cca92d66a1a4011d to your computer and use it in GitHub Desktop.
gogs setup guide
APP_NAME = panda
RUN_USER = git
RUN_MODE = prod
[attachment]
ENABLED = true
PATH = /home/pan/app/git-attachment
[session]
PROVIDER = file
[mailer]
ENABLED = true
FROM = [email protected]
USER = [email protected]
PASSWD = <REPLACE ME>
HOST = smtp.yandex.com:465
[service]
REGISTER_EMAIL_CONFIRM = false
DISABLE_REGISTRATION = true
ENABLE_NOTIFY_MAIL = true
ENABLE_CACHE_AVATAR = true
ENABLE_CAPTCHA = true
REQUIRE_SIGNIN_VIEW = false
[security]
SECRET_KEY = <REPLACE ME>
LOGIN_REMEMBER_DAYS = 180
INSTALL_LOCK = true
[database]
DB_TYPE = sqlite3
PATH = /home/pan/app/gogs/custom/db.sqlite3
HOST = 127.0.0.1:3000
NAME = gogs
PASSWD =
SSL_MODE = disable
[server]
HTTP_ADDR = 127.0.0.1
ROOT_URL = https://git.pandada8.me/
DOMAIN = git.pandada8.me
HTTP_PORT = 3000
DISABLE_SSH = false
SSH_PORT = 22
START_SSH_SERVER = false
OFFLINE_MODE = false
[repository]
ROOT = /home/pan/app/git-repo
[picture]
DISABLE_GRAVATAR = false
ENABLE_FEDERATED_AVATAR = true
[log]
MODE = console
LEVEL = Info
ROOT_PATH = /home/pan/app/gogs/log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment