I tested nethserver-gitea-0.0.7-1.ns7.noarch with gitea-1.5.0-2.el7.x86_64 and it works like a charm!
I ran a test vm with domainname domain.local so I’d like to add a domain property to change the original domain like config setprop gitea domain mydomain.com.
I changed /etc/e-smith/templates/etc/gitea/app.ini/01variables to use a domain property if available
{
use NethServer::Password;
use esmith::ConfigDB;
my $Confdb = esmith::ConfigDB->open;
my $gitea = $Confdb->get('gitea') or die "No gitea db entry found\n";
$giteaDomain = $DomainName || 'localdomain';
$giteaFQDN = $gitea->prop('domain') || $SystemName . '.' . $DomainName;
$giteaKey = substr( (esmith::util::genRandomHash()), 0, 20 );
$giteaInternalToken = esmith::util::genRandomHash() . esmith::util::genRandomHash();
$giteaMysqlPassword = NethServer::Password::store('gitea');
my $sshd = $Confdb->get('sshd') or die "No sshd db entry found\n";
...
I pushed the nethserver-gitea repo as a test and it just worked!
I tested with local LDAP and could login as user and watch the repos.
I recognized that the mail address shows only the user name and the Full Name is missing but maybe it’s not really needed.


