Skip to content

UNIX socket for listen_addr #108

Description

webserver:
  listen_addr: "127.0.0.1"
  listen_port: 8080

can I have UNIX socket for speed and security(so that others cannot try to use it)?

e.g.,

webserver:
  listen_addr: "/tmp/ricky_certstream.sock" <--- the path must ends with ".sock"
  listen_port: 0 <--- when using UNIX socket, there's no port to use

When certstream starts:

  1. Read config,
  2. If the listen_addr is UNIX socket, check the existence of the file
  3. If the sock file is exist, then certstream is running, exit.
  4. Listen on sock file

Metadata

Metadata

Assignees

No one assigned

    Labels

    suggestionSuggestions on how to improve the project

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions