I have successfully setup gitea on a virtual server.
The current use case is to install etckeeper on any server in my lab and distribute any file in /etc to a remote server “gitea” on a daily basis.
My intention is to create an organisation “etckeeper” with multiple repositories; each repository represents one hostname (or FQDN).
Now there are 2 challenges:
- gitea server uses self-signed certificates, and when I try to push a repo I get this error:
fatal: unable to access 'https://gitea.example.com/etckeeper/hostname.example.com.git/': SSL certificate problem: self signed certificate
- Using workaround with option
-c http.sslVerify=falsesolves issue 1, but I need to enter username and password for authentication.
Can you please advise how to resolve problem 1?
And what is a potential solution for problem 2 for automated procedure in non-interactive mode pushing data to gitea?