add upstream setting instead
This commit is contained in:
parent
3f528a05fe
commit
48dcd2ba28
2 changed files with 4 additions and 8 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue