feat: Listen on Unix Socket #808
                
     Open
            
            
          
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
This pull request adds support for running the server on a Unix socket in addition to the existing TCP host:port option. The configuration, startup logic, and documentation have been updated to support this new mode while keeping validation strict to ensure only one listening method is used.
Server listening mode enhancements
socket-pathconfiguration property inconfig.go, with validation to ensure that only one ofsocket-pathorhost:portis specified. [1] [2]glance.goto handle Unix socket creation and cleanup, and to select between TCP and Unix socket based on configuration. [1] [2]Documentation updates
docs/configuration.mdto document the newsocket-pathoption.Why Unix sockets?
The main motivation for this feature is to simplify reverse proxy setups. For example, a proxy (such as Caddy or Nginx) can be configured to talk directly to the server over a Unix domain socket instead of a TCP port. This avoids the need to open or manage additional firewall rules, which is especially convenient in NixOS environments or when running in containers.
More generally, Unix sockets provide: