Browse files

add info about postgresql authentication config

  • Loading branch information...
1 parent 53cf635 commit d4ca1b1d5933ce6efdbf55754e31d9d24cdfccac @mapleoin mapleoin committed Mar 14, 2012
Showing with 24 additions and 4 deletions.
  1. +24 −4 README.server.markdown
@@ -1,5 +1,4 @@
-Server setup
+## Server setup
The server is using in Python, using the Flask web framework and SQLAlchemy for the models.
@@ -35,6 +34,9 @@ You can check that the unittests run fine
```$ ./ test```
+### Setup the database
Install and setup postgresql-server for your distribution, then turn it
on. Create the popcorn user and database.
@@ -52,6 +54,25 @@ $ createdb popcorn --owner=popcorn
If you've set different values here than the default, edit `DB_ENGINE` in
`popcorn/` and set them there as well
+Setup the database to use md5 authentication for local users by editing your system's `pg_hba.conf` file and replacing these lines:
+# "local" is for Unix domain socket connections only
+local all all ident sameuser
+# IPv4 local connections:
+host all all ident sameuser
+with these:
+# "local" is for Unix domain socket connections only
+local all all md5
+# IPv4 local connections:
+host all all md5
Initialize the database (installs tables and initial data).
```$ ./server/popcorn-server init_db
@@ -70,8 +91,7 @@ You can now point your browser to (there won't be
much to see).
+## Client
In order to test the client, you will need to have the `python-rpm`
package installed. It's easier to do this from outside the virtualenv,

0 comments on commit d4ca1b1

Please sign in to comment.