asp.net mvc 4 - Running IdentityServer3 behind an NGINX forward Proxy -


i attempting forward proxy , .net mvc application co-hosting identityserver3 behind nginx. proof of concept, running nginx in virtualbox vm on notebook. login process seems work until after i've authenticated user , i'm redirecting application. after turning on logging identityserver3 can see there no errors being returned, tokens expect created created , forth. notice when response message logon not set .aspnet.cookies cookie. believe problem.

i suspect sort of foolish setup issue in environment. have defined virtual machine's ip address goober.mydomain.com in windows hosts file. nginx config file follows. notice obvious doing wrong?

    user  nginx; worker_processes  1;  error_log  /var/log/nginx/error.log warn; pid        /var/run/nginx.pid;   events {     worker_connections  1024; }   http {      server {              large_client_header_buffers 4 32k;              location /phoenix {                     rewrite ^/phoenix(.*) /$1 break;                      proxy_pass http://usstp90000005/;             }              location /api/i19n {                     proxy_pass http://usstp90000005:83/;             }              location /api/login {                     proxy_pass http://usstp90000005:84/api/login;             }              location /api/users {                     proxy_pass http://usstp90000005:84/;             }              location /id {                      rewrite ^/id(.*) /$1 break;                      proxy_pass http://usstp90000005:84/;                      proxy_cookie_path   /identity /;             }              location /identity {                     proxy_pass http://usstp90000005:84/identity/;             }              location /templates {                     proxy_pass http://usstp90000005:84/templates/;             }              location /bundles {                     proxy_pass http://usstp90000005:84/bundles/;             }  }  #include /etc/nginx/conf.d/*.conf; #include       /etc/nginx/mime.types; #default_type  application/octet-stream;  log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '               '$status $body_bytes_sent "$http_referer" '               '"$http_user_agent" "$http_x_forwarded_for"';  access_log  /var/log/nginx/access.log  main;  sendfile        on; #tcp_nopush     on;  keepalive_timeout  65;  #gzip  on; 

i'm not familiar nginx, appear not doing ssl between & sites. cause of troubles, since identity server & client expect use ssl. might need disable ssl requirements, have nginx ssl between & browser.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -