Edit yaml config file

Team,

i want to edit the SearNXG yaml file.

I know where it is but how do I access it to make changes?

/mnt/.ix-apps/app_mounts/searxng/config /etc/searxng

A stupid question but I do not know it.

Thanks

I believe nano or vi are installed, so you could use them to open the file and edit it

Thanks a lot for responding.

When I understand it correctly I open System - Shell and type in

nano /mnt/.ix-apps/app_mounts/searxng/config/settings.yml

or

nano /etc/searxng/config/settings.yml?

Would it possible to download the file, edit and upload?

When I try to connect the server via Filezilla I get the error message

FATAL ERROR: No supported authentication methods available (server sent: publickey)

the command is most likely

sudo nano /mnt/.ix-apps/app_mounts/searxng/config/settings.yml
or 
sudo vi /mnt/.ix-apps/app_mounts/searxng/config/settings.yml

Downloading the file, editing it and uploading it will most likely not be possible since the .ix-apps dataset is hidden

1 Like

Ok.

Sounds not good not to use FTP…

Thx

Neuro

If it is the built in app, it will revert back to the GUI settings after a stop/start of the app wiping out your customizations. The official apps are not customizable except through what is exposed though the GUI. You will have to use the convert to custom app or create a custom app, options if you wish to customize the yamil. Either method will work.

2 Likes

I agree with you…tested it last night…:face_with_bags_under_eyes:

Does it make sense to move the data to another place /mnt/tank/xyz/searchnxg/ ?

As an option to converting an existing app to the custom one, what I did on some of my apps I wanted (and as a test) was to make a docker_apps dataset on my data pool. Then within that dataset, I made a dataset for each app I wanted. This makes it easy to snapshot individual apps if I want.
I then followed the outline that Techno Tim put together that is based on a Truenas forums discussion. It works good and you have full control over the app and they show up in the Truenas GUI apps page if you make the custom link for it so it is easy to read the logs and see the status etc without having to resort to another manager.. I use Watchtower to keep the apps setup this way updated and that also works well.

Run Truenas Docker Like a Pro

How I Run Docker on TrueNAS Like a Pro | Techno Tim

1 Like

Thankx @PhilD13 for your hint!!

Hi,

I would like to share a bit of my experience.

I followed what Techno Tim suggested, but during a TrueNAS upgrade, it broke…. to solve it I had to make some changes to how TrueNAS imports the YAML files.

I ended up with a different setup:

  • The YAML files are now managed in a private GitHub repository.

  • I have a container running Visual Studio Code where I manage and update the YAML files (validating and pushing them to GitHub).

  • I have Dockhand installed on TrueNAS to manage all my containers.

  • In Dockhand, I connected GitHub and retrieved the YAML files to create and sync (if changed) configurations in my containers.

  • To do: Create a webhook to automatically resync the container when GitHub receives updated YAML files. However, for this, I will need to expose my Dockhand to the internet. :hot_face:

With this setup I have a strong interface (dockhand) and a better tool to edit the YAML files (also an extra backup of the files in GitHub)

I hope this helps you and other users.

1 Like