Replies: 4 comments 2 replies
-
Well, I hope you didn't get banned for searching Google for how to generate your own self-signed certificate. |
Beta Was this translation helpful? Give feedback.
-
I've figured it out, so this is my 2 cents to this great project. So, we've just installed self-hosted standalone ztnet at debian 12, according to official documentation: https://ztnet.network/installation/linux Our LAN ip is 192.168.0.10, our local domain name is ztnet.mydomain.lan, our ztnet web ui is at http://192.168.0.10:3000 We need to make web ui listen only on 127.0.0.1:3000, for this we edit /opt/ztnet/server.js and change line Next, we need to edit /opt/ztnet/.env to reflect our changes, according to environment variables in documentation about NEXTAUTH Configuration: https://ztnet.network/installation/options#nextauth-configuration: At third step we install caddy according to its official documentation: https://caddyserver.com/docs/install#debian-ubuntu-raspbian. Hope this guide will be helpful for others and not consist of rude mistakes. If you won't add A record for ztnet.mydomain.lan in dns, you could change NEXTAUTH_URL to https://192.168.0.10 and do the same in Caddyfile - it would work too. |
Beta Was this translation helpful? Give feedback.
-
Thx for the write-up and applogize for not chiming in earlier, been super busy.
Just a tip. |
Beta Was this translation helpful? Give feedback.
-
Thanks again for that great software! Using .env file is more convenient, agreed, I don't guess it earlier. |
Beta Was this translation helpful? Give feedback.
-
Hi All!
First of all - big thanks for this great software, I've test it with pleasure! One thing I can't catch from docs or examples: how can I add self-signed certificate with debian self-hosted installation? Is it possible? If I missed some docs, please, point me to, if not - show me the way, how to do it?
Beta Was this translation helpful? Give feedback.
All reactions