os-git-backup does not work with http:// Gitea server
Important notices Before you add a new report, we ask you kindly to acknowledge the following:
- [x] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
- [x] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
- [x] The title contains the plugin to which this issue belongs
Describe the bug I'm setting up a git backup of my OPNsense router to a self-hosted Gitea server on my local network. The Gitea server does not have https set up. Ideally I would just configure os-git-backup with the following data:
URL = http://local-ip-address:port/username/router-config.git Branch = main SSH private key = NOTHING User Name = username Password = my-pass
Unfortunately, it seems that os-git-backup requires https, so this doesn't work. I also tried SSH but I'm having trouble getting the authentication to work, so that's why I'd like for http to be possible.
workaround: you can edit the GitSettings.xml file to allow http and https
using nano
nano /usr/local/opnsense/mvc/app/models/OPNsense/Backup/GitSettings.xml
change the value of the url mask (should be line 20) to read
/^((https?)|(ssh))?:\/\/.*[^\/]$/
(add a question mark after the https, that will make the s optional)
This issue has been automatically timed-out (after 180 days of inactivity).
For more information about the policies for this repository, please read https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md for further details.
If someone wants to step up and work on this issue, just let us know, so we can reopen the issue and assign an owner to it.