fix: resolve Mixed Content (Failed to fetch) in hosted HTTPS environment via /api-wpp reverse proxy

This commit is contained in:
2026-10-15 13:08:16 -03:00
parent bdb781ed01
commit 91eedc220b
6 changed files with 212 additions and 96 deletions
+11
View File
@@ -24,6 +24,17 @@ server {
try_files $uri $uri/ /index.html;
}
# Proxy reverso para WPPConnect (Resolve Mixed Content HTTPS -> HTTP)
location /api-wpp/ {
proxy_pass http://www.c2wpp.c2sistemas.com.br:22700/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host www.c2wpp.c2sistemas.com.br:22700;
proxy_cache_bypass $http_upgrade;
proxy_read_timeout 90s;
}
# Cache de assets estáticos
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 1y;