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

Installation #1

Open
houmanb opened this issue Dec 19, 2013 · 2 comments
Open

Installation #1

houmanb opened this issue Dec 19, 2013 · 2 comments

Comments

@houmanb
Copy link

houmanb commented Dec 19, 2013

Hi,
I'm a newbe in using nginx. I would really like to setup a test project using sso.
Is there a HOWTO about the installation of sso. I've already managed to install openresty and started nginx. I have a postgres DB and could rewrite your SQL code in order to load it into DB. I could easliy adapt your config in order to use ngx_postgres instead of drizzle. But I don't have any clue about how to install and have a look at your sso example.
Any help or docs would be appreciated.

Bye
B.

@maanas
Copy link
Owner

maanas commented Dec 19, 2013

I can help you along. If you can setup a dev server. I can spare an hour on weekend to get it going. I m not really sure about postgres. I believe openresty comes with drizzle. So you are good. I m not sure how you return json. As module heavily relies on json returns from the mysql.
my gtalk and skype id is m4manas

On 19-Dec-2013, at 8:49 PM, houmanb notifications@github.com wrote:

Hi,
I'm a newbe in using nginx. I would really like to setup a test project using sso.
Is there a HOWTO about the installation of sso. I've already managed to install openresty and started nginx. I have a postgres DB and could rewrite your SQL code in order to load it into DB. I could easliy adapt your config in order to use ngx_postgres instead of drizzle. But I don't have any clue about how to install and have a look at your sso example.
Any help or docs would be appreciated.

Bye
B.


Reply to this email directly or view it on GitHub.

@houmanb
Copy link
Author

houmanb commented Dec 19, 2013

Hi,
Thanks a lot, this was a prompt reply I didn't expected.
I'll setup a dev server incl. mysql (drizzle). I don't want to complicate
the situation by changing the environment.
I can walk the remaining part of the way on my own :-)

Regards

B.

I manage the connection/json return using the following config:

http {

upstream smarties {
postgres_server 127.0.0.1 dbname=smarties user=postgres;
}

server {
listen 8080;
server_name localhost;
location /public/auth {

postgres_pass smarties;
rds_json on;
set_unescape_uri $user $arg_user;
set_unescape_uri $pass $arg_pass;

postgres_escape $escaped_user $user;
postgres_escape $escaped_pass $pass;

postgres_query HEAD GET "SELECT * FROM
authenticate($escaped_user,$escaped_pass)";
postgres_rewrite no_rows 401;
}
}

On Thu, Dec 19, 2013 at 4:35 PM, maanas notifications@github.com wrote:

I can help you along. If you can setup a dev server. I can spare an hour
on weekend to get it going. I m not really sure about postgres. I believe
openresty comes with drizzle. So you are good. I m not sure how you return
json. As module heavily relies on json returns from the mysql.
my gtalk and skype id is m4manas

On 19-Dec-2013, at 8:49 PM, houmanb notifications@github.com wrote:

Hi,
I'm a newbe in using nginx. I would really like to setup a test project
using sso.
Is there a HOWTO about the installation of sso. I've already managed to
install openresty and started nginx. I have a postgres DB and could rewrite
your SQL code in order to load it into DB. I could easliy adapt your config
in order to use ngx_postgres instead of drizzle. But I don't have any clue
about how to install and have a look at your sso example.
Any help or docs would be appreciated.

Bye
B.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-30937895
.

Repository owner deleted a comment from houmanb Feb 12, 2020
Repository owner deleted a comment from houmanb Feb 12, 2020
Repository owner deleted a comment from houmanb Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants