add upstream setting instead
This commit is contained in:
parent
3f528a05fe
commit
48dcd2ba28
2 changed files with 4 additions and 8 deletions
|
|
@ -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