Advertisement
Guest User

Untitled

a guest
Apr 20th, 2017
570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.57 KB | None | 0 0
  1. user: postgres
  2. password: postgres
  3. host: 192.168.99.100
  4. port: 5432
  5. database: test_db
  6.  
  7. var pg = require('pg');
  8. var conString =
  9. "postgres://postgres:postgres@192.168.99.100:5432/test_db";
  10.  
  11. var client = new pg.Client(conString);
  12. client.connect();
  13.  
  14. psql -U postgres -d test_db -h 192.168.99.100 -W
  15.  
  16. # TYPE DATABASE USER ADDRESS METHOD
  17.  
  18. # "local" is for Unix domain socket connections only
  19. local all all trust
  20. # IPv4 local connections:
  21. host all all 127.0.0.1/32 trust
  22. # IPv6 local connections:
  23. host all all ::1/128 trust
  24. # Allow replication connections from localhost, by a user with the
  25. # replication privilege.
  26. #local replication postgres trust
  27. #host replication postgres 127.0.0.1/32 trust
  28. #host replication postgres ::1/128 trust
  29.  
  30. host all all all md5
  31.  
  32. #------------------------------------------------------------------------------
  33. # CONNECTIONS AND AUTHENTICATION
  34. #------------------------------------------------------------------------------
  35.  
  36. # - Connection Settings -
  37.  
  38. listen_addresses = '*'
  39. # comma-separated list of
  40. addresses;
  41. # defaults to 'localhost'; use '*'
  42. for all
  43. # (change requires restart)
  44. #port = 5432 # (change requires restart)
  45. max_connections = 100 # (change requires restart)
  46. #superuser_reserved_connections = 3 # (change requires restart)
  47. #unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories
  48. # (change requires restart)
  49. #unix_socket_group = '' # (change requires restart)
  50. #unix_socket_permissions = 0777 # begin with 0 to use octal notation
  51. # (change requires restart)
  52. #bonjour = off # advertise server via Bonjour
  53. # (change requires restart)
  54. #bonjour_name = '' # defaults to the computer name
  55. # (change requires restart)
  56.  
  57. # - Security and Authentication -
  58.  
  59. #authentication_timeout = 1min # 1s-600s
  60. #ssl = off # (change requires restart)
  61. #ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed SSL ciphers
  62. # (change requires restart)
  63. #ssl_prefer_server_ciphers = on # (change requires restart)
  64. #ssl_ecdh_curve = 'prime256v1' # (change requires restart)
  65. #ssl_cert_file = 'server.crt' # (change requires restart)
  66. #ssl_key_file = 'server.key' # (change requires restart)
  67. #ssl_ca_file = '' # (change requires restart)
  68. #ssl_crl_file = '' # (change requires restart)
  69. #password_encryption = on
  70. #db_user_namespace = off
  71. #row_security = on
  72.  
  73. # GSSAPI using Kerberos
  74. #krb_server_keyfile = ''
  75. #krb_caseins_users = off
  76.  
  77. # - TCP Keepalives -
  78. # see "man 7 tcp" for details
  79.  
  80. #tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds;
  81. # 0 selects the system default
  82. #tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds;
  83. # 0 selects the system default
  84. #tcp_keepalives_count = 0 # TCP_KEEPCNT;
  85. # 0 selects the system default
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement