Skip to content

Conversation

@uni-kakurenbo
Copy link
Contributor

@uni-kakurenbo uni-kakurenbo commented Sep 24, 2025

  • app.ini にどうやって認証情報埋め込めばいいのかわからない

@uni-kakurenbo uni-kakurenbo marked this pull request as draft September 24, 2025 08:55
@github-actions
Copy link

Diff

No diff detected!

@uni-kakurenbo uni-kakurenbo force-pushed the migration/gitea-dev branch 3 times, most recently from b674132 to e5c0094 Compare September 24, 2025 11:25
containers:
- env:
- name: USER_GID
value: "996"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1002が正しいようです。該当箇所

Suggested change
value: "996"
value: "1002"

ports:
- containerPort: 3000
protocol: TCP
- containerPort: 2200
Copy link
Collaborator

@Kentaro1043 Kentaro1043 Oct 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2222番が正しいです
また、IngressはL7ロードバランサーで、http/httpsしかルーティングできないので、こういう書き方をしてホストのポートに直接アタッチする必要があります。

Suggested change
- containerPort: 2200
- containerPort: 2222
hostPort: 2222

Comment on lines 22 to 23
SSH_PORT = 2200
SSH_LISTEN_PORT = 2200
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

devは2222が正しいです

Suggested change
SSH_PORT = 2200
SSH_LISTEN_PORT = 2200
SSH_PORT = 2222
SSH_LISTEN_PORT = 2222

Comment on lines 12 to 14
- name: "2200"
port: 2200
targetPort: 2200
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ここは必要ないです

Suggested change
- name: "2200"
port: 2200
targetPort: 2200

Comment on lines 16 to 20
- kind: Rule
match: Host(`git-dev.trapti.tech`)
services:
- name: gitea-dev
port: 2200
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ここは必要ないです

kind: Deployment
metadata:
labels:
app: gitea-dev
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

この辺の名前から -dev を削除して欲しいです。(本番環境との設定との差異は内容だけにしたいため)

Suggested change
app: gitea-dev
app: gitea

REPOSITORY_AVATAR_UPLOAD_PATH = /data/gitea/repo-avatars

[attachment]
PATH = /data/gitea/attachments
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ここはS3に投げてるみたいです

Suggested change
PATH = /data/gitea/attachments
STORAGE_TYPE = minio

Comment on lines 12 to 13
GITEA__lfs__MINIO_ACCESS_KEY_ID: ENC[AES256_GCM,data:JhkdKHZsI3BPhVVNZo2WPL0Hqqg=,iv:izcJl5Y465qys/ujRTzHr7Xzoi+XzL3MNVscQ2y3AMY=,tag:hLdo4ZpeEwg9ECJj3cXPcw==,type:str]
GITEA__lfs__MINIO_SECRET_ACCESS_KEY: ENC[AES256_GCM,data:AAyFxipxE3fk3QJ8hbLLw9RBHg4Yy0Z0vZsKF9jJaiUQOVTu//pREg==,iv:gU1/eUj8ugWjvPZvncNCtoPfsC+USwSfFOVvZrkPUdQ=,tag:6dXKZ5+EQ+mCXxnI/VwfGw==,type:str]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これは[storage.minio]セクションにあるべきです。環境変数だとどうなるのか調べたところ、GITEA__storage_0X2E_minio__MINIO_ACCESS_KEY_IDと書くらしいです。わかりにくい...😢
Secretのファイルを編集したあとは再暗号化をお願いします🙏

参考

@uni-kakurenbo uni-kakurenbo force-pushed the migration/gitea-dev branch 4 times, most recently from abf1a42 to e5c0094 Compare January 6, 2026 14:56
@uni-kakurenbo uni-kakurenbo force-pushed the migration/gitea-dev branch 6 times, most recently from 3b1abd9 to 9c6fcca Compare January 6, 2026 15:12
@uni-kakurenbo uni-kakurenbo changed the title [in-progress] migrate: gitea-dev migrate: gitea-dev Jan 6, 2026
@uni-kakurenbo uni-kakurenbo marked this pull request as ready for review January 6, 2026 15:16
Comment on lines +16 to +20
- kind: Rule
match: Host(`git-dev.trapti.tech`)
services:
- name: gitea
port: 2222
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ここはIngressを通らないので必要なさそうです

Suggested change
- kind: Rule
match: Host(`git-dev.trapti.tech`)
services:
- name: gitea
port: 2222


[repository.upload]
TEMP_PATH = /data/gitea/uploads

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[repository.signing]が抜けてる気がします

[database]
PATH = /data/gitea/gitea.db
DB_TYPE = mysql
HOST = private.kmbk.tokyotech.org:33060
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tailscaleになってなさそうです

Suggested change
HOST = private.kmbk.tokyotech.org:33060
HOST = tailscale.kmbk.tokyotech.org:33060

Comment on lines +33 to +37
volumeMounts:
- name: storage
mountPath: /data
- name: config
mountPath: /app.ini
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

何故か開発環境にはなかったけど、timezoneをホストと合わせるのが良い気がします 該当箇所

@@ -0,0 +1,29 @@
apiVersion: v1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

現在Secretに関する新ルールのPRが作成中なので、それに合わせてファイル名をsecrets.enc.yamlに変更していただけると助かります🙏

ファイル名の変更時は最暗号化は必要ないです

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants