Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx embed location docs needs correction #67

Closed
applecat opened this issue Jan 29, 2016 · 1 comment
Closed

Nginx embed location docs needs correction #67

applecat opened this issue Jan 29, 2016 · 1 comment

Comments

@applecat
Copy link

I try to work with centrifugo throught embed location on my site.

When I try to follow instructions in docs I have this errors in nginx logs:

[emerg] "keepalive_timeout" directive is duplicate in /etc/nginx/sites-enabled/site.com:76
[emerg] "proxy_read_timeout" directive is duplicate in /etc/nginx/sites-enabled/site.com:78

There is a directive duplication in docs:

location /centrifugo/connection {
        rewrite ^/centrifugo(.*)        $1 break;

        proxy_next_upstream error;
        keepalive_timeout 65;  <-- HERE
        proxy_read_timeout 60s;  <-- HERE
        gzip on;
        gzip_min_length 1000;
        gzip_proxied any;

        proxy_buffering off;
        keepalive_timeout 65;  <-- HERE
        proxy_pass http://centrifugo;
        proxy_read_timeout 60s;  <-- AND HERE
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Scheme $scheme;
        proxy_set_header Host $http_host;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
    }

After this duplicates removed — every thing works fine.

@applecat applecat changed the title Nginx embed location needs correction Nginx embed location docs needs correction Jan 29, 2016
@FZambia
Copy link
Member

FZambia commented Jan 29, 2016

Ah, you are right. Fixed, thanks a lot!

@FZambia FZambia closed this as completed Jan 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants