mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
ssl et ngix possiblement la cause du probleme
This commit is contained in:
parent
a2de9a07ec
commit
1216039269
1 changed files with 9 additions and 0 deletions
|
|
@ -9,6 +9,9 @@ upstream backend {
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
|
||||||
|
#FOR PROD
|
||||||
|
#listen 443 ssl; # Listen for SSL at port 443 as well
|
||||||
|
|
||||||
location /api {
|
location /api {
|
||||||
rewrite /backend/(.*) /$1 break;
|
rewrite /backend/(.*) /$1 break;
|
||||||
proxy_pass http://backend;
|
proxy_pass http://backend;
|
||||||
|
|
@ -28,4 +31,10 @@ server {
|
||||||
proxy_pass http://frontend;
|
proxy_pass http://frontend;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#FOR PROD
|
||||||
|
# If a user tries to come through http, redirect them through https
|
||||||
|
#if ($scheme != "https") {
|
||||||
|
# return 301 https://$host$request_uri;
|
||||||
|
#}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue