From 5f88cf598a6a1eabb9b8174d14a5f6df374f76fc Mon Sep 17 00:00:00 2001 From: beseira13 Date: Tue, 24 Feb 2026 15:45:22 -0300 Subject: [PATCH] cambi ngix --- nginx.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nginx.conf b/nginx.conf index 51e20da..e2a866e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -26,6 +26,19 @@ server { proxy_ssl_session_reuse off; } + # Proxy for Colombia API to avoid CORS + location /api-colombia/ { + proxy_pass https://ws-posvirtual-colombia.sial.cl/; + proxy_set_header Host ws-posvirtual-colombia.sial.cl; + 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; + + # SSL settings + proxy_ssl_server_name on; + proxy_ssl_session_reuse off; + } + # Error handling error_page 500 502 503 504 /50x.html; location = /50x.html {