request header 더 큰 값 허용
This commit is contained in:
@@ -19,9 +19,13 @@ FROM debian:trixie-slim
|
|||||||
ARG APP_UID=1000
|
ARG APP_UID=1000
|
||||||
ARG APP_GID=1000
|
ARG APP_GID=1000
|
||||||
|
|
||||||
|
ENV TZ=Asia/Seoul
|
||||||
|
|
||||||
RUN groupadd -g ${APP_GID} appuser && \
|
RUN groupadd -g ${APP_GID} appuser && \
|
||||||
useradd --create-home --shell /usr/sbin/nologin --uid ${APP_UID} --gid ${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 /
|
WORKDIR /
|
||||||
|
|
||||||
COPY --from=builder /bin/geoip /usr/local/bin/geoip
|
COPY --from=builder /bin/geoip /usr/local/bin/geoip
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ func main() {
|
|||||||
|
|
||||||
app := fiber.New(fiber.Config{
|
app := fiber.New(fiber.Config{
|
||||||
DisableStartupMessage: true,
|
DisableStartupMessage: true,
|
||||||
|
ReadBufferSize: 16 * 1024, // allow larger request headers (e.g., proxy cookies)
|
||||||
})
|
})
|
||||||
|
|
||||||
app.Get("/", func(c *fiber.Ctx) error {
|
app.Get("/", func(c *fiber.Ctx) error {
|
||||||
@@ -145,9 +146,9 @@ func maybeStartScheduler() func() context.Context {
|
|||||||
command := defaultJob
|
command := defaultJob
|
||||||
|
|
||||||
sched, err := schedule.Start(schedule.Config{
|
sched, err := schedule.Start(schedule.Config{
|
||||||
CronExpr: cronExpr,
|
CronExpr: cronExpr,
|
||||||
Command: command,
|
Command: command,
|
||||||
Logger: log.Default(),
|
Logger: log.Default(),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("scheduler not started (error=%v)", err)
|
log.Printf("scheduler not started (error=%v)", err)
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ services:
|
|||||||
args:
|
args:
|
||||||
- APP_UID=${APP_UID:-1000}
|
- APP_UID=${APP_UID:-1000}
|
||||||
- APP_GID=${APP_GID:-1000}
|
- APP_GID=${APP_GID:-1000}
|
||||||
|
environment:
|
||||||
|
- TZ=Asia/Seoul
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -38,6 +40,8 @@ services:
|
|||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres:17.7-trixie
|
image: postgres:17.7-trixie
|
||||||
|
environment:
|
||||||
|
- TZ=Asia/Seoul
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -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)
|
|
||||||
Reference in New Issue
Block a user