File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,36 @@ http {
199199 proxy_pass http ://127.0.0.1:9110 /;
200200 }
201201
202+ location /zenoh/ {
203+ proxy_hide_header Access-Control-Allow-Origin;
204+
205+ rewrite ^/zenoh( /.*) $ $1 break ;
206+ proxy_http_version 1.1;
207+ proxy_set_header Host $host ;
208+
209+ include cors.conf;
210+ proxy_pass http ://127.0.0.1:7117 /;
211+
212+ # Required for WebSockets
213+ proxy_set_header Upgrade $http_upgrade ;
214+ proxy_set_header Connection "Upgrade" ;
215+ }
216+
217+ location /zenoh-api/ {
218+ proxy_hide_header Access-Control-Allow-Origin;
219+
220+ rewrite ^/zenoh-api( /.*) $ $1 break ;
221+ proxy_http_version 1.1;
222+ proxy_set_header Host $host ;
223+
224+ include cors.conf;
225+ proxy_pass http ://127.0.0.1:7118 /;
226+
227+ # Required for WebSockets
228+ proxy_set_header Upgrade $http_upgrade ;
229+ proxy_set_header Connection "Upgrade" ;
230+ }
231+
202232 location / {
203233 root /home/pi/frontend;
204234 try_files $uri $uri / /index .html;
You can’t perform that action at this time.
0 commit comments