Repository navigation
How to configure reverse proxy (Nginx / Caddy) for custom short-domain routing in FlexQR? #4
Answered
by
bitzin-dev
bitzin-dev
asked this question in
Q&A
|
When deploying FlexQR to a custom production domain with SSL, what is the recommended reverse proxy configuration to forward dynamic QR redirects properly with headers? |
Answered by
bitzin-dev
Nov 26, 2026
Replies: 1 comment
|
Here is the verified production reverse proxy configuration for Nginx: server {
listen 80;
server_name flexqr.exe.xyz;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
server_name flexqr.exe.xyz;
ssl_certificate /etc/letsencrypt/live/flexqr.exe.xyz/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/flexqr.exe.xyz/privkey.pem;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
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;
proxy_cache_bypass $http_upgrade;
}
}Key points:
|
0 replies
Answer selected by
bitzin-dev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is the verified production reverse proxy configuration for Nginx: