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

how to properly stream everything behind nginx proxy? #858

Open
ralyodio opened this issue Dec 2, 2024 · 1 comment
Open

how to properly stream everything behind nginx proxy? #858

ralyodio opened this issue Dec 2, 2024 · 1 comment

Comments

@ralyodio
Copy link

ralyodio commented Dec 2, 2024

I am using docker and it appears to work but the nginx isn't setup properly for streaming (no data is coming through):

server {
    server_name	stream.profullstack.com;
    index index.html;
    root /home/ubuntu/www/profullstack.com/stream;

    add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
    add_header 'Last-Modified' '';
    if_modified_since off;
    expires -1;
    etag off;

    listen [::]:443 ssl http2; #managed by Certbot
    listen 443 ssl http2; #managed by Certbot
    ssl_certificate /etc/letsencrypt/live/stream.profullstack.com/fullchain.pem; #managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/stream.profullstack.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; #managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; #managed by Certbot

    #try_files $uri $uri/ /index.html;
    client_max_body_size 10M;

    location ~ /\. {
        deny all;
        return 403;
    }

    location /restreamer/ {
        proxy_pass http://127.0.0.1:8080/;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_cache_bypass $http_upgrade;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-Proto https;
        proxy_set_header X-Forwarded-For $remote_addr;
    }
}

what else do i need to add?

@ralyodio
Copy link
Author

ralyodio commented Dec 3, 2024

bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant