summaryrefslogtreecommitdiff
path: root/nginx-test
diff options
context:
space:
mode:
authorMarkus Krogh <markus@nordu.net>2017-06-02 14:32:39 +0200
committerMarkus Krogh <markus@nordu.net>2017-06-02 14:32:39 +0200
commitbe5d914b73a264960770419e1e10d00b5fceb47f (patch)
tree391171cce91c021359a7b4966485bd679ceee117 /nginx-test
parent934702f61f1cbdbf001ebb598c22c75efa247645 (diff)
Uwsgi and ready for deployment
Diffstat (limited to 'nginx-test')
-rw-r--r--nginx-test/pwman.dev.conf25
1 files changed, 25 insertions, 0 deletions
diff --git a/nginx-test/pwman.dev.conf b/nginx-test/pwman.dev.conf
index 12af816..2804b61 100644
--- a/nginx-test/pwman.dev.conf
+++ b/nginx-test/pwman.dev.conf
@@ -27,3 +27,28 @@ server {
proxy_set_header AFFILIATION 'employee@nordu.net';
}
}
+
+server {
+ listen 80;
+ server_name uwsgi.pwman.dev;
+
+
+ location /sso/ {
+ include uwsgi_params;
+ uwsgi_pass pwman:8000;
+ }
+
+ location /sso/accounts/login-federated/ {
+ include uwsgi_params;
+ uwsgi_pass pwman:8000;
+ uwsgi_param HTTP_X_REMOTE_USER 'markus@nordu.net';
+ uwsgi_param HTTP_GIVENNAME 'Markus';
+ uwsgi_param HTTP_SN 'Krogh';
+ uwsgi_param HTTP_MAIL 'markus@nordu.net';
+ uwsgi_param HTTP_AFFILIATION 'employee@nordu.net';
+ }
+
+ location /sso/static/ {
+ alias /opt/pwman/;
+ }
+}