aboutsummaryrefslogtreecommitdiff
path: root/data/gitea
diff options
context:
space:
mode:
authorSam Chudnick <sam@chudnick.com>2023-06-25 09:52:36 -0400
committerSam Chudnick <sam@chudnick.com>2023-06-25 09:52:36 -0400
commit95b73daa36b23565a8566f71f9b202d3459b685f (patch)
treecb17b021be70e7868d0ec235a761f0ecdc80f3f2 /data/gitea
Initial CommitHEADmaster
Diffstat (limited to 'data/gitea')
-rw-r--r--data/gitea/app.ini103
-rw-r--r--data/gitea/gitea.conf30
2 files changed, 133 insertions, 0 deletions
diff --git a/data/gitea/app.ini b/data/gitea/app.ini
new file mode 100644
index 0000000..84f9647
--- /dev/null
+++ b/data/gitea/app.ini
@@ -0,0 +1,103 @@
1APP_NAME = Gitea: Git with a cup of tea
2RUN_MODE = prod
3RUN_USER = git
4
5[repository]
6ROOT = /data/git/repositories
7ENABLE_PUSH_CREATE_USER = true
8DEFAULT_PUSH_CREATE_PRIVATE = false
9
10[repository.local]
11LOCAL_COPY_PATH = /data/gitea/tmp/local-repo
12
13[repository.upload]
14TEMP_PATH = /data/gitea/uploads
15
16[server]
17APP_DATA_PATH = /data/gitea
18DOMAIN = gitea.chudnick.com
19SSH_DOMAIN = gitea.chudnick.com
20HTTP_PORT = 3000
21ROOT_URL = https://gitea.chudnick.com/
22DISABLE_SSH = false
23SSH_PORT = 22
24SSH_LISTEN_PORT = 22
25LFS_START_SERVER = true
26LFS_JWT_SECRET =
27OFFLINE_MODE = false
28
29[database]
30PATH = /data/gitea/gitea.db
31DB_TYPE = sqlite3
32HOST = localhost:3306
33NAME = gitea
34USER = root
35PASSWD =
36LOG_SQL = false
37SCHEMA =
38SSL_MODE = disable
39CHARSET = utf8
40
41[indexer]
42ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve
43
44[session]
45PROVIDER_CONFIG = /data/gitea/sessions
46PROVIDER = file
47
48[picture]
49AVATAR_UPLOAD_PATH = /data/gitea/avatars
50REPOSITORY_AVATAR_UPLOAD_PATH = /data/gitea/repo-avatars
51DISABLE_GRAVATAR = false
52ENABLE_FEDERATED_AVATAR = true
53
54[attachment]
55PATH = /data/gitea/attachments
56
57[log]
58MODE = console
59LEVEL = info
60ROUTER = console
61ROOT_PATH = /data/gitea/log
62
63[security]
64INSTALL_LOCK = true
65SECRET_KEY =
66REVERSE_PROXY_LIMIT = 1
67REVERSE_PROXY_TRUSTED_PROXIES = *
68INTERNAL_TOKEN =
69PASSWORD_HASH_ALGO = pbkdf2
70
71[service]
72DISABLE_REGISTRATION = false
73REQUIRE_SIGNIN_VIEW = false
74REGISTER_EMAIL_CONFIRM = false
75ENABLE_NOTIFY_MAIL = false
76ALLOW_ONLY_EXTERNAL_REGISTRATION = false
77ENABLE_CAPTCHA = false
78DEFAULT_KEEP_EMAIL_PRIVATE = false
79DEFAULT_ALLOW_CREATE_ORGANIZATION = true
80DEFAULT_ENABLE_TIMETRACKING = true
81NO_REPLY_ADDRESS = noreply.localhost
82
83[lfs]
84PATH = /data/git/lfs
85
86[mailer]
87ENABLED = false
88
89[openid]
90ENABLE_OPENID_SIGNIN = true
91ENABLE_OPENID_SIGNUP = true
92
93[repository.pull-request]
94DEFAULT_MERGE_STYLE = merge
95
96[repository.signing]
97DEFAULT_TRUST_MODEL = committer
98
99[webhook]
100ALLOWED_HOST_LIST = jenkins.chudnick.com
101
102[metrics]
103ENABLED = true
diff --git a/data/gitea/gitea.conf b/data/gitea/gitea.conf
new file mode 100644
index 0000000..1b862a4
--- /dev/null
+++ b/data/gitea/gitea.conf
@@ -0,0 +1,30 @@
1server {
2 listen 443 ssl;
3 server_name gitea.chudnick.com;
4
5 ssl_certificate /etc/letsencrypt/live/chudnick.com/fullchain.pem;
6 ssl_certificate_key /etc/letsencrypt/live/chudnick.com/privkey.pem;
7 add_header Strict-Transport-Security "max-age=31536000" always;
8 ssl_stapling on;
9 ssl_stapling_verify on;
10
11 # Security / XSS Mitigation Headers
12 add_header X-Frame-Options "SAMEORIGIN";
13 add_header X-XSS-Protection "1; mode=block";
14 add_header X-Content-Type-Options "nosniff";
15
16 location / {
17 proxy_pass http://127.0.0.1:8003/;
18 }
19
20 # for docker image push
21 client_max_body_size 500M;
22
23}
24
25server {
26 listen 80;
27 listen [::]:80;
28 server_name gitea.chudnick.com;
29 return 301 https://$host$request_uri;
30}