Unverified Commit 6739a5d2 authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

nixos/postgrest: make unix-socket accessible for other services (#404596)

parents a1ed2917 0f9a499f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -245,6 +245,10 @@ in
      lib.optional (cfg.settings.admin-server-port != null && cfg.settings.server-host != "127.0.0.1")
        "The PostgREST admin server is potentially listening on a public host. This may expose sensitive information via the `/config` endpoint.";

    # Since we're using DynamicUser, we can't add the e.g. nginx user to
    # a postgrest group, so the unix socket must be world-readable to make it useful.
    services.postgrest.settings.service-unix-socket-mode = "666";

    systemd.services.postgrest = {
      description = "PostgREST";