-
Notifications
You must be signed in to change notification settings - Fork 87
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
Improve remote access support #2815
Improve remote access support #2815
Conversation
0ce272b
to
0c94b1e
Compare
2e74ab6
to
58ef4a2
Compare
@patrickelectric @voorloopnul can you give this a try? I have a cockpit branch at https://github.com/bluerobotics/cockpit/compare/master...Williangalvani:cockpit:remote_access?expand=1 with the changes and a stun server. it is deployed at williangalvani/cockpit:remote2 |
58ef4a2
to
5600e0a
Compare
rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to submit it 🤦
logging.info(f"file '{filename}' not found ({e}):, a new one will be created") | ||
with open(filename, "w", encoding="utf-8") as f: | ||
logging.info(f"updating nginx route for {name}") | ||
f.write(text) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the context is different we need to erase it and then writing to it no ?
@@ -101,7 +101,7 @@ find /usr/blueos/userdata -type f -exec chmod a+rw {} \; | |||
PRIORITY_SERVICES=( | |||
'autopilot',0,"nice --19 $SERVICES_PATH/ardupilot_manager/main.py" | |||
'cable_guy',0,"$SERVICES_PATH/cable_guy/main.py" | |||
'video',0,"nice --19 mavlink-camera-manager --default-settings BlueROVUDP --mavlink tcpout:127.0.0.1:5777 --mavlink-system-id $MAV_SYSTEM_ID --gst-feature-rank omxh264enc=0,v4l2h264enc=250,x264enc=260 --log-path /var/logs/blueos/services/mavlink-camera-manager --verbose" | |||
'video',0,"nice --19 mavlink-camera-manager --default-settings BlueROVUDP --mavlink tcpout:127.0.0.1:5777 --mavlink-system-id $MAV_SYSTEM_ID --gst-feature-rank omxh264enc=0,v4l2h264enc=250,x264enc=260 --log-path /var/logs/blueos/services/mavlink-camera-manager --stun-server stun://stun.l.google.com:19302 --verbose" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joaoantoniocardoso Will this affect cockpit usage in an environment where cockpit is used locally but internet is available ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not if they use the filter, which is the default, right?
reviving #1842 as a fallback for remote control
This introduces a new optional
works_in_relative_paths
to the services metadata.These will use a relative path (under
/extensionv2/
) to load the extension in the browser.This allows them to be used seamlessly behind a webserver with ssl.