projects:3dprint:octoprint
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| projects:3dprint:octoprint [2023/05/18 13:34] – [Autostart Octoprint as a Linux Service] jattie | projects:3dprint:octoprint [2023/05/18 19:26] (current) – ↷ Links adapted because of a move operation jattie | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| <WRAP center round info 60%> | <WRAP center round info 60%> | ||
| - | The long way is for if you care about the technical steps and want to reproduce it yourself. See the [[projects: | + | The long way is for if you care about the technical steps and want to reproduce it yourself. See the [[projects: |
| </ | </ | ||
| Line 539: | Line 539: | ||
| </ | </ | ||
| + | |||
| + | ===== Advanced Features ===== | ||
| + | |||
| + | ==== Enable .local network access ==== | ||
| + | |||
| + | to resolve the machine name with octo.local we need the avahi service. | ||
| + | |||
| + | * sudo apt install avahi-daemon | ||
| + | * systemctl restart avahi-daemon | ||
| + | * systemctl status avahi-daemon | ||
| + | |||
| + | |||
| ==== Make everything accessible on port 80 ==== | ==== Make everything accessible on port 80 ==== | ||
| Line 561: | Line 573: | ||
| </ | </ | ||
| - | < | + | < |
| global | global | ||
| log / | log / | ||
| Line 609: | Line 621: | ||
| http-request replace-path / | http-request replace-path / | ||
| server webcam1 | server webcam1 | ||
| - | |||
| </ | </ | ||
| + | |||
| + | * Restart the service | ||
| + | * Check the status after the edits and restart | ||
| + | |||
| + | <cli> | ||
| + | (venv) octo@octo: | ||
| + | (venv) octo@octo: | ||
| + | ● haproxy.service - HAProxy Load Balancer | ||
| + | | ||
| + | | ||
| + | Docs: man: | ||
| + | | ||
| + | Process: 16750 ExecStartPre=/ | ||
| + | Main PID: 16752 (haproxy) | ||
| + | Tasks: 9 (limit: 9209) | ||
| + | | ||
| + | CPU: 239ms | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | May 18 13:43:46 octo haproxy[10866]: | ||
| + | May 18 13:43:46 octo haproxy[10866]: | ||
| + | May 18 13:43:46 octo haproxy[10866]: | ||
| + | May 18 13:43:46 octo haproxy[10866]: | ||
| + | May 18 13:43:46 octo systemd[1]: haproxy.service: | ||
| + | May 18 13:43:46 octo systemd[1]: Stopped HAProxy Load Balancer. | ||
| + | May 18 13:43:46 octo systemd[1]: haproxy.service: | ||
| + | May 18 13:43:46 octo systemd[1]: Starting HAProxy Load Balancer... | ||
| + | May 18 13:43:46 octo haproxy[16752]: | ||
| + | May 18 13:43:46 octo systemd[1]: Started HAProxy Load Balancer. | ||
| + | (venv) octo@octo: | ||
| + | |||
| + | </ | ||
| + | |||
| + | We should now be able to access the server on the standard port 80, i.e. no port specification required. | ||
| ==== Setting up SSH access to your container ==== | ==== Setting up SSH access to your container ==== | ||
projects/3dprint/octoprint.1684416895.txt.gz · Last modified: by jattie
