Security & setup warnings

After fixing a few things in my Nextcloud system. I notice a few errors messages when login to my Admin panel, I have attached a screen shot below so you can what I’m talking about.

Not sure were to start to get rid of some of these errors… thanks in advanced

I would really like to fix the fist one because I feel it’s the most important one

Then put it behind a reverse proxy to provide HTTPS. For one way to do it, see:

The mimetype and missing optional indicies error is pretty easy to fix.
All you have to do is access the shell from the nextcloud app from the truenas apps page and type the command from the message.
As far as i can remember the strict transport security was a pain in the a** because i couldn’t find where to add it.

Hi Dan thank you for the fast reply, is it a simple process? took a quick look at the link you provided seems there’s a lot to fix this error. Do I follow all the steps on that page to correct this?

Thank you, do I access the shell from my TrueNas system? And if so what command do I need to run?

you access it from the truenas gui. If you select nextcloud you should see 2 or three container (depending if you’ve deployed your nextcloud with redis) running on the right side of the screen on a tile labeled “workload”, select the nextcloud one and open its shell (left of the three tiny icons)
and then you have to type:

occ maintenance:repair --include-expensive
occ db:add-missing-indices

those commands may take a while to finish, but it will tell you when each one is done.

By any chance do you have a screen shot?

since the only truenas native app i’m using is scrutiny i can only share a screenshot of that. I manage all my apps via portainer. but yes i can share a screenshot how it looks for scrutiny.

Thank you brother this is all new to me

I did not know the shell existed there . Thank you I will see if I can fit it

just make sure to access the right shell, nextcloud , not the database or if it exists redis.

1 Like

Aw see what you’re saying I will run those commands now.

Do I have to add occ to the beginning of the command?

I will post how it goes

Work like a charm I was able to fix that error message thank you for helping me with this one for starters…

Hi Dan I will try to figure this one out :slight_smile: