Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/postgresql: change option enableTCPIP to actually mean TCP/IP. #353707

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Nov 4, 2024

  1. nixos/postgresql: change option enableTCPIP to actually mean TCP/IP.

    Setting the option `services.postgresql.enableTCPIP` to `false` did not
    disable TCP/IP. Instead, this makes PostgreSQL listen on `localhost`.
    
    This was confusing, as a security minded user may want to disable TCP/IP
    entirely, even for localhost.
    
    It also prevented running multiple instances of PostgreSQL on the same
    host without manually assigning distinct TCP/IP ports.
    
    This commit adds a new option, `services.postgres.listenAddresses`, that
    defaults to `localhost`.
    
    The default behaviour of `services.postgresql` is maintained: the
    service listens on localhost using TCP/IP with the new default
    `enableTCPIP = null`.
    
    A warning informs users that setting `enableTCPIP = true` now only
    listens on localhost. Setting `listenAddresses` is now required to
    listen on all or multiple interfaces. This option follows the upstream
    PostgreSQL syntax for `liste_addresses`.
    hoh committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    aa8d671 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2024

  1. Configuration menu
    Copy the full SHA
    eb007a3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b3dbad3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2b3a2f4 View commit details
    Browse the repository at this point in the history