Skip to content
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

Support external CUPS server #366

Closed
Tracked by #5
horcsinbalint opened this issue Nov 28, 2023 · 2 comments · May be fixed by #394
Closed
Tracked by #5

Support external CUPS server #366

horcsinbalint opened this issue Nov 28, 2023 · 2 comments · May be fixed by #394
Assignees
Labels
enhancement New feature or request server-config Issues with deployment and containerization

Comments

@horcsinbalint
Copy link
Member

It is sometimes better to have a CUPS server that is located on a different server. (Like when the CUPS server is running nearby the printer on a different floor.) There is currently no supported method of setting the IP address and port of the CUPS server for commands lp and lpstat in mars. It could be beneficial to add an additional field in .env which allows arbitrary command line arguments to be inserted in front of the -d and -W directive respectively.

@horcsinbalint horcsinbalint added the enhancement New feature or request label Nov 28, 2023
@horcsinbalint horcsinbalint self-assigned this Nov 28, 2023
@kdmnk
Copy link
Contributor

kdmnk commented Dec 18, 2023

Added to #5

@kdmnk kdmnk mentioned this issue Dec 18, 2023
3 tasks
@kdmnk kdmnk closed this as completed Dec 18, 2023
@kdmnk kdmnk closed this as not planned Won't fix, can't repro, duplicate, stale Dec 18, 2023
@kdmnk kdmnk mentioned this issue Dec 18, 2023
7 tasks
@horcsinbalint
Copy link
Member Author

My original description did not fully show the importance of supporting external CUPS servers.

We have deployed a Raspberry PI next to the printer and connected the printer and RPI with a USB cable. The CUPS server is running on the RPI, so Mars needs to connect to that CUPS server. We have made a secure connection between the RPI and Mars's PHP FPM (with something similar to a VPN).

The changes had two main goals. One of them was to make our systems more resilient against attacks. A less important one was that from now on printers without networking capabilities would be also a great option for the dormitory.

Similarly to #364, the changes that were done in the deployment branch seem to allow these settings. And I also plan to make the proper changes on the upstream development branch. Unfortunately, I did not have enough time to do it yet.

Therefore, I would like to reopen this issue for a potential second round of evaluation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request server-config Issues with deployment and containerization
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants