This commit is contained in:
2025-10-29 10:46:21 +01:00
parent 2de3dc30bf
commit ac27a9ab36
5 changed files with 111 additions and 14 deletions
+8
View File
@@ -27,6 +27,14 @@ cat <<PROXY >> /etc/nginx/conf.d/default.conf
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto \$scheme;
}
location /download/ {
proxy_pass ${API_PROXY_PASS_TRIMMED};
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
fi
+1 -1
View File
@@ -48,7 +48,7 @@ module.exports = {
open: true,
proxy: [
{
context: ['/api'],
context: ['/api', '/download'],
target: 'http://127.0.0.1:3000',
changeOrigin: true,
secure: false,