Time for update to 1.4.4!
-
Guess its best to follow this
server { listen 80; server_name community.nodebb.org; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_redirect off; # Socket.io Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; gzip on; gzip_min_length 1000; gzip_proxied off; gzip_types text/plain application/xml text/javascript application/javascript application/x-javascript text/css application/json; location @nodebb { proxy_pass http://io_nodes; } location ~ ^/assets/(.*) { root /path/to/nodebb/; try_files /build/public/$1 /public/$1 @nodebb; } location /plugins/ { root /path/to/nodebb/build/public/; try_files $uri @nodebb; } location / { proxy_pass http://io_nodes; } }
Thanks @rod , will try this out. Any issues with 1.4.4 so far?
-
Sound great
Time to upgrade then
-
@Jenkler Do you have a "dev" setup that you test in before? I put together a simple outline of how I clone my production environment to a dev/test environment to which I test my updates first. If you care you may find my post here:
How To: Create & Manage a NodeBB Test / Dev Environment
Create & Manage a NodeBB Test/Dev Environment Table of Contents Summary Caveats Webserver Nginx NodeBB PRD -> DEV Adjustments to DEV Upgrading DEV NodeB...
NodeBB Community (community.nodebb.org)
I have not updated my post in a while but it should still be accurate.
-
Thanks, I will take a look at it Need to keep busy
-
Here is what I did for my changes when I went up to 1.4.x
Introducing the build system in v1.4.x
@julian said in Introducing the build system in v1.4.x: @teh_g Good idea, I will consider writing a short guide to changing the nginx config and verifying t...
NodeBB Community (community.nodebb.org)
-
Yeah! Updated to 1.4.4 + static content thru nginx... Cheers mates
Works great! Time to relax and play some games
-
@rod said in Time for update to 1.4.4!:
My understanding from what I have read is that the designers seem to want to remove serving the static content through the node.js engine
Yes and no... if you are using nginx or another reverse proxy, you may as well have nginx handle it... but NodeBB will always be a usable fallback if you don't wish to configure it. It's a tad slower, but nothing to really worry about unless you want to squeeze every ounce of performance from the machine/code
-
For what its worth I upgraded nodebb to 1.4.4 without changing the nginx config to handle the static content. I will do it in the near future but I need to change my docker setup. So don't be afraid to migrate without changing your reverse proxy settings.
Standard recommendations about doing backups (and test restores) applies.
-
I am also running docker! Needed to mount both my nodejs and nginx volumes to the nginx container. It works good, as it should. Nginx for static feels good