Edit caddyfile other than with nano in CLI

Hi there, [long story short my router reseted itself to factory, so I lost all the DNS, static IPs, port forwarding etc, spent 5 hours redoing everything, my eyes are now square]
Now after following my old topic here, I am left with one question :slight_smile:

How can I edit the caddy file from the caddy instance installed with danb35 script (except with nano on the truenas CLI) please ? Is there a way to easily do it with notepad on my windows pc and send it back via FTP / filezilla ? I have read access to the file through an SMB share, but no copy/paste write option. Also that would help me edit the .html files in the webpage subfolder. I don’t remember how I used to do it 10 months ago when I posted the things in my first post.

I have TrueNAS Core 13.0-U6.1 with a Caddy instance in a jail, that reverse proxies my domain name to my local ips

I just need one more edit on the caddyfile for another subdomain name before I’ll alow myself to go to bed…
Thanks !

use vi / vim in CLI?

1 Like

yeah the goal would be not to, and have a easier interface like copy the file on my windows desktop, edit in notepad++, then put it back in caddy

you could try your luck with vscode - Remote Development using SSH

I never personally used it for remote ssh editing.

No FreeBSD support last I checked. They rely not only on SSH but install an agent binary into your home or project directory.

You can copy & paste from and to an SSH session. Even complete config files.

1 Like

try your luck with sshfs

I’ll give a try with these propositions, thanks :slight_smile: In the meantime if there’s a way through Filezilla FTP, i’ll take it too ! thanks