The above command does 3 stream edits (using sed) that in turn replace placeholders for their production values. The command must be run as root on your Rockstor instance so if you don’t trust it don’t run it.
Once the new file is in place (/opt/rockstor/etc/nginx/nginx.conf) you will need to restart your Rockstor service via:
systemctl restart rockstor
or just restart your Rockstor machine.
See how that goes and let us know if it gets you up and running again.
Hope that helps.
EDIT: Sorry forgot to advise the following on the resulting file to remove group and other read access.
Phillip. you are such a lifesaver! Yesterday one of my devices said a HD died and I removed it in the web app (probably not the right thing to do) I tried to restart the system using the power button in the web app and lost access, I still had terminal access though. I searched the community and found this thread.
Copied the “workaround” and it’s back up recovered the missing HD and all is well.