aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDon Delmar Davis <don@suspectdevices.com>2021-01-04 09:26:01 -0800
committerDon Delmar Davis <don@suspectdevices.com>2021-01-04 09:26:01 -0800
commit4153ffd50376a0741c1038493abf506dde618743 (patch)
tree1cf50e8c0fb8f60b870d341f66a94165b01056e2
parent2ea5001f4ea7fab95179abaa0e0db4c874dacbfe (diff)
Document mirror process
-rw-r--r--README.md6
-rw-r--r--app.ini92
2 files changed, 97 insertions, 1 deletions
diff --git a/README.md b/README.md
index 385f201..12e3f43 100644
--- a/README.md
+++ b/README.md
@@ -34,10 +34,14 @@ postgres@shelly:~$ createdb gitea -O git
### Initial configuration
Once gitea is installed go to myservername:3000 and navigate to the login in the upper right corner. Fill in the database,username, and dbpassword. Replace localhost with your servers fqdn. Create admin user (remember password here)
+## Testing it out.
+
## references
* [https://gitlab.com/packaging/gitea](https://gitlab.com/packaging/gitea)
* [https://bryangilbert.com/post/devops/how-to-setup-gitea-ubuntu/](https://bryangilbert.com/post/devops/how-to-setup-gitea-ubuntu/)
* [https://luxagraf.net/src/gitea-nginx-postgresql-ubuntu-1804](https://luxagraf.net/src/gitea-nginx-postgresql-ubuntu-1804)
-* [https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token) \ No newline at end of file
+* [https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token)
+* [https://jpmens.net/2019/04/15/i-mirror-my-github-repositories-to-gitea/](https://jpmens.net/2019/04/15/i-mirror-my-github-repositories-to-gitea/)
+* \ No newline at end of file
diff --git a/app.ini b/app.ini
new file mode 100644
index 0000000..be825fc
--- /dev/null
+++ b/app.ini
@@ -0,0 +1,92 @@
+APP_NAME = SuspectDevices Git Server
+RUN_USER = gitea
+RUN_MODE = prod
+
+[oauth2]
+JWT_SECRET = Ry_69vLV8cY6Y38yQcX05ziVFyvM67_PJ1Wl62PFOgQ
+
+[security]
+INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE2MDk3MzA0MDl9.ROoecRrzK_sA26ii44DnuZVASXjd9XrMfVWHj7uswHc
+INSTALL_LOCK = true
+SECRET_KEY = GMNBSvRWZneskimvMBfAU9qy5mi7CYgXzYS4NPkEi94jWJLHiSFTdFWFaLrn3Cwt
+
+[database]
+DB_TYPE = postgres
+HOST = 127.0.0.1:5432
+NAME = gitea
+USER = git
+PASSWD = W3r3N3ts
+SCHEMA =
+SSL_MODE = disable
+CHARSET = utf8
+PATH = /var/lib/gitea/data/gitea.db
+LOG_SQL = false
+
+[repository]
+ROOT = /var/lib/gitea/gitea-repositories
+
+[server]
+SSH_DOMAIN = shelly.suspectdevices.com
+DOMAIN = shelly.suspectdevices.com
+HTTP_PORT = 3000
+ROOT_URL = http://shelly.suspectdevices.com:3000/
+DISABLE_SSH = false
+SSH_PORT = 22
+LFS_START_SERVER = true
+LFS_CONTENT_PATH = /var/lib/gitea/data/lfs
+LFS_JWT_SECRET = WzRc3-xJvmTleu3p6FrAYK3n9D5d7vYZjR8Cuv19FYM
+OFFLINE_MODE = false
+
+[mailer]
+ENABLED = true
+HOST = localhost:53
+FROM = Git Server <root@suspectdevices.com>
+USER =
+PASSWD =
+
+[service]
+REGISTER_EMAIL_CONFIRM = false
+ENABLE_NOTIFY_MAIL = false
+DISABLE_REGISTRATION = false
+ALLOW_ONLY_EXTERNAL_REGISTRATION = false
+ENABLE_CAPTCHA = false
+REQUIRE_SIGNIN_VIEW = false
+DEFAULT_KEEP_EMAIL_PRIVATE = false
+DEFAULT_ALLOW_CREATE_ORGANIZATION = true
+DEFAULT_ENABLE_TIMETRACKING = true
+NO_REPLY_ADDRESS = noreply.localhost
+
+[picture]
+DISABLE_GRAVATAR = false
+ENABLE_FEDERATED_AVATAR = true
+
+[openid]
+ENABLE_OPENID_SIGNIN = true
+ENABLE_OPENID_SIGNUP = true
+
+[session]
+PROVIDER = file
+
+[log]
+MODE = console
+LEVEL = info
+ROOT_PATH = /var/lib/gitea/log
+REDIRECT_MACARON_LOG = true
+MACARON = console
+ROUTER = console
+
+[cron]
+; Enable running cron tasks periodically.
+ENABLED = true
+; Run cron tasks when Gitea starts.
+RUN_AT_START = true
+
+; Update mirrors
+[cron.update_mirrors]
+SCHEDULE = @every 2m
+
+[mirror]
+; Default interval as a duration between each check
+DEFAULT_INTERVAL = 1h
+; Min interval as a duration must be > 1m
+MIN_INTERVAL = 2m