Yapılandırılmamış Nginx'i, Oynatım'ın önünde ters proxy olarak yanlıştır! ve aşağıdaki başlıklarıyla https geçen ayarlayın: -(https) Nginx -> (http) Oyna !. Ancak request.secure false
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Ssl https;
login()
[https://localhost/login
] Play iletilmekte olduğunu! 9000 numaralı bağlantı noktasında 'http' olarak. Ancak login.secure request() hala 'false'. Herhangi bir fikir ? GÜNCELLEME
: Burada sunucu conf geçerli: -
server {
listen 443;
server_name localhost;
ssl on;
ssl_certificate /home/aymer/play/key/localhost.crt;
ssl_certificate_key /home/aymer/play/key/localhost.key;
ssl_session_timeout 5m;
location ~ ^/(images|javascript|js|css|flash|media|static)/ {
root /home/aymer/play/playapp/public;
expires 30d;
}
location ~* (login|register)$ {
proxy_pass http://localhost:9000;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Ssl on;
}
location/{
rewrite ^/(.*) http://$host/$1 permanent;
}
}
Lütfen "server {}" yapılandırma işlemini tamamlayın. –