From 7741c06dc3ac1078e65b01d1f07497f3049f6927 Mon Sep 17 00:00:00 2001 From: casjay Date: Sat, 3 Oct 2026 10:21:41 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20use=20dynamic=20protocol=20place?= =?UTF-8?q?holder=20in=20gitea=20app.ini=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace hardcoded `PROTOCOL = http` with `REPLACE_SERVER_PROTO` in the `[server]` section - Keeps PROTOCOL consistent with ROOT_URL, which already uses the placeholder - Lets the entrypoint set the protocol at runtime instead of forcing http AGENTS.md rootfs/tmp/etc/gitea/app.ini --- AGENTS.md | 3 +++ rootfs/tmp/etc/gitea/app.ini | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 AGENTS.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..3fb0e24 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,3 @@ +# gitea + +Read `AI.md` and `IDEA.md` before acting on this project. diff --git a/rootfs/tmp/etc/gitea/app.ini b/rootfs/tmp/etc/gitea/app.ini index d281661..1b78bc4 100644 --- a/rootfs/tmp/etc/gitea/app.ini +++ b/rootfs/tmp/etc/gitea/app.ini @@ -5,7 +5,7 @@ RUN_MODE = prod ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; [server] -PROTOCOL = http +PROTOCOL = REPLACE_SERVER_PROTO HTTP_ADDR = 0.0.0.0 HTTP_PORT = 80 ROOT_URL = REPLACE_SERVER_PROTO://REPLACE_SERVER_NAME