OpenPrinting / OpenPrinting/ghostscript-printer-app

Allow setting `host-aliases` option when running as snap service

Open
#26 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PostScript
Stars
44
Forks
16
PR merge metrics
No merged PRs in 30d

Description

I am running a print server using the ghostscript-printer-app snap which has multiple hostnames (the mDNS name, print.local, and a local DNS name, print.intra.my.domain). Currently, the web interface and IPP(S) only works when using print.local or the raw IP address, and returns a 400 Bad Request when using print.intra.my.domain.

This should be fixable by running the server with -o host-aliases=print.intra.my.domain, but I can't find any way to set custom command-line flags for the server when running as a snap service. Is there any way to specify command-line flags (or any other way to set the host-aliases option) using the snap?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the snap service definition and the entry point that assembles the server command, then check how service configuration is exposed to users. Verify the change by configuring a custom host-aliases value through the snap and confirming that the web interface and IPP(S) accept the additional hostname.

Written by the indexing model from the issue text.

Assessment

Domain
devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.