Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

nginx代理confluence 遇到的问题

陈土锋 January 28, 2021

我用nginx代理confluence,发现如果用域名访问的话,编辑文件保存之后新增的内容不会实时刷新到页面上,需要手动点击浏览器的刷新按钮才会把新内容刷新出来。

但是如果用ip+port访问的话,新增内容保存之后会实时刷新出来。

我的nginx配置如下:

server {
listen 80;
server_name xxxx.com;

location / {
proxy_pass http://localhost:8090;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 15s;
proxy_read_timeout 30s;
proxy_temp_file_write_size 64k;
proxy_buffer_size 64k;
proxy_buffers 16 32k;
proxy_busy_buffers_size 64k;
proxy_http_version 1.1;
proxy_set_header Connection "";

client_max_body_size 100m;
}

access_log /data/logs/xxxx.com.log access;
}

1 answer

0 votes
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 5, 2021

Hello @陈土锋 , welcome.

Versions of Confluence Server after 6.0 have another service that enables collaborative editing. You may want to add this location block to your nginx server configuration and reload nginx, as described in the Confluence + nginx documetation:

    location /synchrony {
 client_max_body_size 100m;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://localhost:8091/synchrony;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
    }

 This may the cause of the problem you are experiencing.

Cheers,
Daniel | Atlassian Support

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events