- install git
- create a git user for ssh push/pull
- wget https://dl.gogs.io/0.11.19/linux_amd64.tar.gz and untar
- put the config into the /custom/conf/app.ini
- change the path in the config
<app>/gogs web
Last active
July 26, 2017 05:49
-
-
Save pandada8/ab5df23c5ba47b15cca92d66a1a4011d to your computer and use it in GitHub Desktop.
gogs setup guide
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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