-
Notifications
You must be signed in to change notification settings - Fork 4
[in-progress] migrate: gitea-dev #1181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
DiffNo diff detected! |
c25d7dc to
b674132
Compare
b674132 to
e5c0094
Compare
| containers: | ||
| - env: | ||
| - name: USER_GID | ||
| value: "996" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1002が正しいようです。該当箇所
| value: "996" | |
| value: "1002" |
| ports: | ||
| - containerPort: 3000 | ||
| protocol: TCP | ||
| - containerPort: 2200 |
There was a problem hiding this comment.
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しかルーティングできないので、こういう書き方をしてホストのポートに直接アタッチする必要があります。
| - containerPort: 2200 | |
| - containerPort: 2222 | |
| hostPort: 2222 |
| SSH_PORT = 2200 | ||
| SSH_LISTEN_PORT = 2200 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
devは2222が正しいです
| SSH_PORT = 2200 | |
| SSH_LISTEN_PORT = 2200 | |
| SSH_PORT = 2222 | |
| SSH_LISTEN_PORT = 2222 |
| - name: "2200" | ||
| port: 2200 | ||
| targetPort: 2200 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここは必要ないです
| - name: "2200" | |
| port: 2200 | |
| targetPort: 2200 |
| - kind: Rule | ||
| match: Host(`git-dev.trapti.tech`) | ||
| services: | ||
| - name: gitea-dev | ||
| port: 2200 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この辺の名前から -dev を削除して欲しいです。(本番環境との設定との差異は内容だけにしたいため)
| app: gitea-dev | |
| app: gitea |
| REPOSITORY_AVATAR_UPLOAD_PATH = /data/gitea/repo-avatars | ||
|
|
||
| [attachment] | ||
| PATH = /data/gitea/attachments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここはS3に投げてるみたいです
| PATH = /data/gitea/attachments | |
| STORAGE_TYPE = 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この辺の設定は[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 | |
| [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 |
| 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] |
There was a problem hiding this comment.
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のファイルを編集したあとは再暗号化をお願いします🙏
app.iniにどうやって認証情報埋め込めばいいのかわからない