Skip to content

Commit

Permalink
chore(postgres): default value for listen_addresses is already localhost
Browse files Browse the repository at this point in the history
This is true after #160
  • Loading branch information
shivaraj-bh committed Mar 27, 2024
1 parent 18d5c1d commit ecc4094
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion example/share-services/northwind/services.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ in
services.postgres."northwind" = {
imports = [ globalSocket ];
enable = true;
listen_addresses = "127.0.0.1";
initialDatabases = [
{
name = "sample";
Expand Down
1 change: 0 additions & 1 deletion example/simple/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

services.postgres."pg1" = {
enable = true;
listen_addresses = "127.0.0.1";
initialDatabases = [
{
name = dbName;
Expand Down
2 changes: 0 additions & 2 deletions nix/postgres/postgres_test.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{ pkgs, config, ... }: {
services.postgres."pg1" = {
enable = true;
listen_addresses = "127.0.0.1";
initialScript.before = "CREATE USER bar;";
initialScript.after = "CREATE DATABASE foo OWNER bar;";
};
services.postgres."pg2" = {
enable = true;
socketDir = "./test/new/socket/path";
port = 5433;
listen_addresses = "127.0.0.1";
# INFO: pg1 creates $USER database while pg2 doesn't because `initialDatabases` is present
initialDatabases = [
{
Expand Down

0 comments on commit ecc4094

Please sign in to comment.