fix: resolve Mixed Content (Failed to fetch) in hosted HTTPS environment via /api-wpp reverse proxy
This commit is contained in:
+11
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user