Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lbr38 committed Dec 10, 2024
1 parent afa0476 commit cc31d4a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions docker/config/nginx/motionui.conf
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,23 @@ server {
}

# Go2rtc stream access
location ~ /api/stream.mjpeg {
location /api/stream.mjpeg {
proxy_pass http://127.0.0.1:1984;
proxy_http_version 1.1;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_read_timeout 86400;
}

# Go2rtc main page
location ~ /go2rtc {
proxy_pass http://127.0.0.1:1984/;
location /go2rtc {
rewrite ^/go2rtc/?(.*)$ /$1 break;
proxy_pass http://127.0.0.1:1984;
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_set_header X-Forwarded-Proto $scheme;
}

location ~ \.php$ {
Expand Down

0 comments on commit cc31d4a

Please sign in to comment.