Last active
April 7, 2023 00:42
-
-
Save ethanjli/091dda8588fdf277f7f3d952a84b75f7 to your computer and use it in GitHub Desktop.
Demo Caddyfile for use on a PlanktoScope with Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
auto_https disable_redirects | |
} | |
:80 { | |
redir /admin/cockpit /admin/cockpit/ | |
handle /admin/cockpit/* { | |
reverse_proxy host.docker.internal:9090 | |
} | |
handle_path /ps/streams/camera/preview.mjpg { | |
rewrite * /stream.mjpg | |
reverse_proxy host.docker.internal:8000 | |
} | |
handle_path /ps/streams/segmenter/object.mjpg { | |
rewrite * /object.mjpg | |
reverse_proxy host.docker.internal:8001 | |
} | |
redir /admin/ps/node-red/v2 /admin/ps/node-red/v2/ | |
handle /admin/ps/node-red/v2/* { | |
reverse_proxy host.docker.internal:1880 | |
} | |
redir / /ps/node-red/v2/ui | |
redir /ps/node-red/v2 /ps/node-red/v2/ | |
handle /ps/node-red/v2/* { | |
reverse_proxy host.docker.internal:1880 | |
} | |
redir /ps/data /ps/data/ | |
handle_path /ps/data/* { | |
file_server browse { | |
root /planktoscope-data | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment