Skip to content

Commit

Permalink
added proxy_ssl_server_name on
Browse files Browse the repository at this point in the history
  • Loading branch information
enguerranws committed Sep 10, 2024
1 parent 2165a9c commit c9ac59d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions front/scalingo/nginx.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,15 @@ location /api {
}

location = /aide {
return 301 /aide/; # Rediriger vers la version avec le slash final
return 301 /aide/;
}

location /aide/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_ssl_server_name on;
proxy_pass https://immersion-facilitee.crisp.help/fr/;
proxy_redirect off;

rewrite ^/aide/(.*)$ /$1 break;
}

0 comments on commit c9ac59d

Please sign in to comment.