Support Unix domain sockets for proxy server listener (#1865)

This commit is contained in:
LINKIWI
2023-05-06 02:35:06 -07:00
committed by GitHub
parent e35007b3a2
commit e5aa5974e1
3 changed files with 30 additions and 5 deletions
+6
View File
@@ -131,6 +131,12 @@ StorageType = "memory"
# The PORT must be a number or a number prefixed by ":"
Port = ":3000"
# UnixSocket sets a Unix domain socket path that the proxy listens on.
# This option, when specified, takes precedence over TCP port configuration.
# Defaults to empty (i.e. listen on a TCP port only)
# Env override: ATHENS_UNIX_SOCKET
UnixSocket = ""
# The endpoint for a package registry in case of a proxy cache miss
# NOTE: Currently no registries have been implemented
# Env override: ATHENS_GLOBAL_ENDPOINT