request header 더 큰 값 허용

This commit is contained in:
Lectom C Han
2025-12-10 11:13:22 +09:00
parent 3038a2978b
commit 761f948a62
5 changed files with 12 additions and 17 deletions

View File

@@ -19,9 +19,13 @@ FROM debian:trixie-slim
ARG APP_UID=1000
ARG APP_GID=1000
ENV TZ=Asia/Seoul
RUN groupadd -g ${APP_GID} appuser && \
useradd --create-home --shell /usr/sbin/nologin --uid ${APP_UID} --gid ${APP_GID} appuser
RUN ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && echo ${TZ} > /etc/timezone
WORKDIR /
COPY --from=builder /bin/geoip /usr/local/bin/geoip

View File

@@ -42,6 +42,7 @@ func main() {
app := fiber.New(fiber.Config{
DisableStartupMessage: true,
ReadBufferSize: 16 * 1024, // allow larger request headers (e.g., proxy cookies)
})
app.Get("/", func(c *fiber.Ctx) error {
@@ -145,9 +146,9 @@ func maybeStartScheduler() func() context.Context {
command := defaultJob
sched, err := schedule.Start(schedule.Config{
CronExpr: cronExpr,
Command: command,
Logger: log.Default(),
CronExpr: cronExpr,
Command: command,
Logger: log.Default(),
})
if err != nil {
log.Printf("scheduler not started (error=%v)", err)

View File

@@ -5,6 +5,8 @@ services:
args:
- APP_UID=${APP_UID:-1000}
- APP_GID=${APP_GID:-1000}
environment:
- TZ=Asia/Seoul
env_file:
- .env
depends_on:
@@ -38,6 +40,8 @@ services:
db:
image: postgres:17.7-trixie
environment:
- TZ=Asia/Seoul
env_file:
- .env
environment:

View File

@@ -1,7 +0,0 @@
status=failed
csv_path=import/user_program_info_20251208.csv
started_at=2025-12-09T18:47:58+09:00
finished_at=
rows_copied=0
rows_upserted=0
error=open import/user_program_info_20251208.csv: no such file or directory

View File

@@ -1,7 +0,0 @@
status=failed
csv_path=/update_data/user_program_info_20251209.csv
started_at=2025-12-10T10:27:51+09:00
finished_at=
rows_copied=0
rows_upserted=0
error=ERROR: relation "user_program_info_replica_import_tmp" already exists (SQLSTATE 42P07)