Skip to content
Discussion options

You must be logged in to vote

Hey @daitangio this configuration works for me:

events {
    worker_connections 1024;
}

http {
    upstream campfire {
        # Change to the URL of the Campfire instance to proxy to; e.g. "127.0.0.1:4000" instead of "campfire:80"
        server campfire:80;
    }

    server {
        listen 80;
        # Change to your DNS entry; e.g. "chat.example.com" instead of "localhost"
        server_name localhost;

        location /cable {
            proxy_pass http://campfire;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP 

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@daitangio
Comment options

Answer selected by daitangio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants