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 2 times, most recently from c25d7dc to b674132 Compare September 24, 2025 11:11
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 +74 to +78
MINIO_ENDPOINT = s3.ap-northeast-1.wasabisys.com
MINIO_BUCKET = trap-gitea-dev
MINIO_LOCATION = ap-northeast-1
MINIO_USE_SSL = true
MINIO_CHECKSUM_ALGORITHM = md5
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]セクションにあるべきです。

Suggested change
MINIO_ENDPOINT = s3.ap-northeast-1.wasabisys.com
MINIO_BUCKET = trap-gitea-dev
MINIO_LOCATION = ap-northeast-1
MINIO_USE_SSL = true
MINIO_CHECKSUM_ALGORITHM = md5
[storage.minio]
MINIO_ENDPOINT = s3.ap-northeast-1.wasabisys.com
MINIO_BUCKET = trap-gitea-dev
MINIO_LOCATION = ap-northeast-1
MINIO_USE_SSL = true
MINIO_CHECKSUM_ALGORITHM = md5

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のファイルを編集したあとは再暗号化をお願いします🙏

参考

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.

3 participants