|
|
|
@ -323,6 +323,19 @@ if [ $INSTALL_NGINX = "True" ]; then
|
|
|
|
proxy_pass http://127.0.0.1:$OE_PORT;
|
|
|
|
proxy_pass http://127.0.0.1:$OE_PORT;
|
|
|
|
add_header Cache-Control "public, no-transform";
|
|
|
|
add_header Cache-Control "public, no-transform";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# WebSocket support
|
|
|
|
|
|
|
|
location /websocket {
|
|
|
|
|
|
|
|
proxy_pass http://127.0.0.1:$OE_PORT;
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# cache some static data in memory for 60mins.
|
|
|
|
# cache some static data in memory for 60mins.
|
|
|
|
location ~ /[a-zA-Z0-9_-]*/static/ {
|
|
|
|
location ~ /[a-zA-Z0-9_-]*/static/ {
|
|
|
|
proxy_cache_valid 200 302 60m;
|
|
|
|
proxy_cache_valid 200 302 60m;
|
|
|
|
|