Browse Source

Ajuste de configuração sapl.conf com CORs

pull/3465/head
Leandro Roberto 3 years ago
parent
commit
50b0ec83a9
  1. 12
      docker/config/nginx/sapl.conf

12
docker/config/nginx/sapl.conf

@ -13,6 +13,11 @@ server {
location /api/ {
add_header 'Access-Control-Allow-Origin' '*';
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://sapl_server;
}
location /static/ {
@ -25,17 +30,12 @@ server {
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
if (!-f $request_filename) {
proxy_pass http://sapl_server;
break;
}
}
error_page 500 502 503 504 /500.html;
location = /500.html {
root /var/interlegis/sapl/sapl/static/;

Loading…
Cancel
Save