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.

Assessment

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

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.

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?

Dominant language
PostScript
Stars
44
Forks
26
Avg merge
9h 17m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from OpenPrinting/ghostscript-printer-app

All issues in OpenPrinting/ghostscript-printer-app

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.