From 48dcd2ba283efa5cc5266f1626a14389ad2f6937 Mon Sep 17 00:00:00 2001 From: Alex Kelly Date: Sat, 18 Apr 2026 19:45:32 -0400 Subject: [PATCH] add upstream setting instead --- Dockerfile | 7 ------- nginx.conf | 5 ++++- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index ad3da36..c735fa4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,13 +18,6 @@ RUN curl -LO https://github.com/clojure/brew-install/releases/latest/download/li RUN git clone https://github.com/logseq/logseq.git --depth 1 \ && cd logseq \ && yarn install -WORKDIR /build/logseq -RUN git config --global --add safe.directory '*' \ - && git config --global user.email "builder@local" \ - && git config --global user.name "Docker Builder" \ - && git remote add 4shutosh https://github.com/4shutosh/logseq.git \ - && git fetch 4shutosh self_host/21_march_2026 \ - && git cherry-pick 477061ffb WORKDIR /build/logseq/deps/db-sync #build db-sync RUN yarn install \ diff --git a/nginx.conf b/nginx.conf index d34b7b9..e553121 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,3 +1,6 @@ +upstream logseq-sync { + server 127.0.0.1:8787; +} map $http_upgrade $connection_upgrade { default upgrade; '' close; @@ -7,7 +10,7 @@ server { server_name sync.yourdomain.com; client_max_body_size 100M; location / { - proxy_pass http://127.0.0.1:8787; + proxy_pass http://logseq-sync; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade;