Reverse Proxy issues after upgrade (Nginx)
After upgrading my fresh 2 project to the lastest fresh on my VPS client side js/Preact stopped working.
The error persist on default counter project as well.
I have tried dev and builds and it persists.
Error:
Uncaught ReferenceError: o is not defined
<anonymous> Preact
devtools.module.js:7:3
My nginx conf
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name fresh.abcdefg.org;
# SSL – Certbot managed
ssl_certificate /etc/letsencrypt/live/fresh.abcdefg.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/fresh.abcdefg.org/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
# Security headers
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
location / {
proxy_pass http://127.0.0.1:8999;
proxy_set_header Host fresh.abcdefg.org;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Host fresh.abcdefg.org;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; proxy_read_timeout 86400s; proxy_send_timeout 86400s; } }
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Host fresh.abcdefg.org;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; proxy_read_timeout 86400s; proxy_send_timeout 86400s; } }
1 Reply
This is a bug in Deno's installation code where it ends up with multiple copies of
preact or @preact/signals. To resolve this issue run deno install -r
This error is not related to reverse proxiesor anything like that. So you can rule these parts out